Commit 23e6ec23 authored by jkvis's avatar jkvis

Updated library build

parent a2c01ee9
CC = gcc
CFLAGS = -O3 -fomit-frame-pointer -funroll-loops -march=native
CPPFLAGS = -DNDEBUG -Wall -Wextra
TARGETS = sais-lite-lcp
SOURCES = sais-lite-lcp/sais.c
OBJECTS = $(SOURCES:.c=.o)
.PHONY: clean
lib$(TARGETS:./%=%).a: $(OBJECTS)
ar rcs $@ $<
clean:
rm -f $(OBJECTS) lib$(TARGETS:./%=%).a
%.o: %.c
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment