First stab at autogen.sh

This commit is contained in:
Pim van Pelt
2019-01-03 20:47:34 +01:00
parent 1db8c1a0bf
commit 34cc6d5de2
6 changed files with 108 additions and 2 deletions

View File

@ -14,10 +14,11 @@ SRCDIR = src
INCDIR = include
OBJDIR = build
LIBDIR = libs
TESTDIR = tests
BINDIR = .
SRCS := $(shell find -L $(SRCDIR) $(LIBDIR) -type f -name '*.c' | egrep -v 'deps/|build/' )
INCS := $(shell find -L $(SRCDIR) $(LIBDIR) $(INCDIR) -type d -name 'include'| egrep -v 'deps/|build/' )
SRCS := $(shell find -L $(SRCDIR) $(LIBDIR) $(TESTDIR) -type f -name '*.c' | egrep -v 'deps/|build/' )
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))
RM = rm -f