diff --git a/Makefile b/Makefile index 7c5d28e..267466c 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ LIBDIR = libs TESTDIR = tests BINDIR = . -SRCS := $(shell find -L $(SRCDIR) $(LIBDIR) $(TESTDIR) -type f -name '*.c' | egrep -v 'deps/|build/' ) src/tests_autogen.c +SRCS := $(shell (echo src/tests_autogen.c; find -L $(SRCDIR) $(LIBDIR) $(TESTDIR) -type f -name '*.c' | egrep -v 'deps/|build/') | sort | uniq ) INCS := $(shell find -L $(SRCDIR) $(LIBDIR) $(TESTDIR) $(INCDIR) -type d -name 'include'| egrep -v 'deps/|build/' ) INCFLAGS := $(patsubst %,-I %, $(INCS)) OBJS := $(patsubst %.c, build/%.o, $(SRCS))