Follow symlinks for SRC/INC

This commit is contained in:
Pim van Pelt
2018-04-22 16:57:16 +02:00
parent bad1fc3951
commit e6f02daa60

View File

@ -16,8 +16,8 @@ OBJDIR = build
LIBDIR = libs
BINDIR = .
SRCS := $(shell find $(SRCDIR) $(LIBDIR) -type f -name '*.c')
INCS := $(shell find $(SRCDIR) $(LIBDIR) $(INCDIR) -type d -name 'include')
SRCS := $(shell find -L $(SRCDIR) $(LIBDIR) -type f -name '*.c')
INCS := $(shell find -L $(SRCDIR) $(LIBDIR) $(INCDIR) -type d -name 'include')
INCFLAGS := $(patsubst %,-I %, $(INCS))
OBJS := $(patsubst %.c, build/%.o, $(SRCS))
RM = rm -f