Commit 0d099896 authored by jkvis's avatar jkvis

Updated gesa build

parent efec88d2
CC = gcc
CFLAGS = -O0 -march=native -Iinclude/ -Ilib/sais-lite-lcp/
CPPFLAGS = -DNDEBUG -Wall -Wextra
SOURCES = $(shell find src/ -name '*.c')
OBJECTS = $(SOURCES:.c=.o)
DEPS = $(OBJECTS:.o=.d)
LIBS = sais-lite-lcp
.PHONY: all clean
libgesa.a: lib/lib$(LIBS).a $(OBJECTS)
ar rcs $@ $<
clean:
rm -f $(OBJECTS) libgesa.a
lib/lib$(LIBS).a:
$(MAKE) -wC lib/
%.o: %.c
$(CC) $(CFLAGS) $(CPPFLAGS) -MMD -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