ircDDBGateway/RemoteControl/MakefileGUI
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

25 lines
829 B
Plaintext

OBJECTS = RemoteControlApp.o RemoteControlCallsignData.o RemoteControlConfig.o RemoteControlFrame.o RemoteControlLinkData.o \
RemoteControlPreferences.o RemoteControlRemoteControlHandler.o RemoteControlRemoteSet.o RemoteControlRepeaterData.o \
RemoteControlRepeaterPanel.o RemoteControlStarNetGroup.o RemoteControlStarNetPanel.o RemoteControlStarNetUser.o
.PHONY: all
all: remotecontrol
remotecontrol: $(OBJECTS)
$(CXX) $(OBJECTS) ../GUICommon/GUICommon.a ../Common/Common.a $(LDFLAGS) $(GUILIBS) -o remotecontrol
-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 remotecontrol $(BINDIR)
.PHONY: clean
clean:
$(RM) remotecontrol *.o *.d *.bak *~