Follow symlinks for SRC/INC
This commit is contained in:
4
Makefile
4
Makefile
@ -16,8 +16,8 @@ OBJDIR = build
|
|||||||
LIBDIR = libs
|
LIBDIR = libs
|
||||||
BINDIR = .
|
BINDIR = .
|
||||||
|
|
||||||
SRCS := $(shell find $(SRCDIR) $(LIBDIR) -type f -name '*.c')
|
SRCS := $(shell find -L $(SRCDIR) $(LIBDIR) -type f -name '*.c')
|
||||||
INCS := $(shell find $(SRCDIR) $(LIBDIR) $(INCDIR) -type d -name 'include')
|
INCS := $(shell find -L $(SRCDIR) $(LIBDIR) $(INCDIR) -type d -name 'include')
|
||||||
INCFLAGS := $(patsubst %,-I %, $(INCS))
|
INCFLAGS := $(patsubst %,-I %, $(INCS))
|
||||||
OBJS := $(patsubst %.c, build/%.o, $(SRCS))
|
OBJS := $(patsubst %.c, build/%.o, $(SRCS))
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
|
Reference in New Issue
Block a user