Ensure sources are unique
This commit is contained in:
2
Makefile
2
Makefile
@ -17,7 +17,7 @@ LIBDIR = libs
|
|||||||
TESTDIR = tests
|
TESTDIR = tests
|
||||||
BINDIR = .
|
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/' )
|
INCS := $(shell find -L $(SRCDIR) $(LIBDIR) $(TESTDIR) $(INCDIR) -type d -name 'include'| egrep -v 'deps/|build/' )
|
||||||
INCFLAGS := $(patsubst %,-I %, $(INCS))
|
INCFLAGS := $(patsubst %,-I %, $(INCS))
|
||||||
OBJS := $(patsubst %.c, build/%.o, $(SRCS))
|
OBJS := $(patsubst %.c, build/%.o, $(SRCS))
|
||||||
|
Reference in New Issue
Block a user