The $(BIN) target needed to include the dependencies for header files included via main.cpp
BIN = ../bin/ipdf
+
all : $(BIN)
single : DEF = -DREAL=0
tests/% : tests/%.cpp ../obj/tests/%.o $(LINKOBJ)
+-include $(DEPS)
+
runtests : tests/runtests.sh
cd tests; ./runtests.sh
$(BIN) : $(LINKOBJ) ../obj/$(MAIN)
+ echo $(LINKOBJ)
@mkdir -p $(dir $@)
$(CXX) -o $(BIN) $(LINKOBJ) ../obj/$(MAIN) $(LIB) $(MAINRPATH)
+-include $(DEPS)
+
../obj/%.o : %.cpp
@mkdir -p $(dir $@)
$(CXX) $(CFLAGS) $(DEF) -c -MMD -o $@ $<