diff options
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile index a1a3f287..d6c6bb0f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -3,21 +3,27 @@ BASEDIR=.. include $(BASEDIR)/config.mk +include config.mk +CFLAGS+=-I$(BASEDIR)/$(DWB_LIB_DIRS) -DEPS=$(patsubst %.o, %.d, $(OBJ)) +DEPS=$(patsubst %.o, %.d, $(OBJ)) + +OBJ += $(BASEDIR)/$(OBJLIB) + +DOBJ += $(BASEDIR)/exar/exar.do all: $(TARGET) $(TARGET): $(OBJ) - @echo "$(CC) $@" + @echo $(CC) -o $@ @$(CC) $(OBJ) -o $(TARGET) $(LDFLAGS) -include $(OBJ:.o=.d) -include $(DOBJ:.do=.dd) %.o: %.c %.h config.h dwb.h - @echo "${CC} $<" + @echo $(CC) $< @$(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS) debug: $(DTARGET) |