ircDDBGateway/TimerControl/MakefileGUI
Geoffrey Merck F4FXL - KC3FRA dcb5b4b455 Add empty targets for dependencies in sub make file
This forces make to check if dependency (eg ../Common/Common.a) is more
recent than the target
2018-11-11 18:35:30 +01:00

27 lines
815 B
Plaintext

OBJECTS = TimerControlApp.o TimerControlConfig.o TimerControlFrame.o TimerControlItemFile.o TimerControlPreferences.o \
TimerControlRemoteControlHandler.o TimerControlRemoteSet.o TimerControlRepeaterPanel.o TimerControlThread.o \
TimerControlThreadHelper.o
.PHONY: all
all: timercontrol
timercontrol: $(OBJECTS) ../GUICommon/GUICommon.a ../Common/Common.a
$(CXX) $(OBJECTS) ../GUICommon/GUICommon.a ../Common/Common.a $(LDFLAGS) $(GUILIBS) -o timercontrol
-include $(OBJECTS:.o=.d)
%.o: %.cpp
$(CXX) $(CFLAGS) -I../Common -I../GUICommon -c -o $@ $<
$(CXX) -MM $(CFLAGS) -I../Common -I../GUICommon $< > $*.d
.PHONY: install
install:
install -g bin -o root -m 0775 timercontrol $(BINDIR)
.PHONY: clean
clean:
$(RM) timercontrol *.o *.d *.bak *~
../GUICommon/GUICommon.a:
../Common/Common.a: