ircDDBGateway/TimerControl/Makefile
Geoffrey Merck F4FXL - KC3FRA e66484340b Add generation of dependency files
Generate dependency files so that when changing one file only stuff
dependant on that file gets rebuilt. Avoid cleaning the whole thing on
every small change
2018-11-11 17:13:17 +01:00

24 lines
596 B
Makefile

OBJECTS = TimerControlAppD.o TimerControlConfig.o TimerControlItemFile.o TimerControlRemoteControlHandler.o TimerControlThread.o \
TimerControlThreadHelper.o
.PHONY: all
all: timercontrold
timercontrold: $(OBJECTS)
$(CXX) $(OBJECTS) ../Common/Common.a $(LDFLAGS) $(LIBS) -o timercontrold
-include $(OBJECTS:.o=.d)
%.o: %.cpp
$(CXX) -DwxUSE_GUI=0 $(CFLAGS) -I../Common -c -o $@ $<
$(CXX) -MM -DwxUSE_GUI=0 $(CFLAGS) -I../Common $< > $*.d
.PHONY: install
install:
install -g bin -o root -m 0775 timercontrold $(BINDIR)
.PHONY: clean
clean:
$(RM) timercontrold *.o *.d *.bak *~