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

25 lines
707 B
Makefile

OBJECTS = RemoteControlAppD.o RemoteControlCallsignData.o RemoteControlConfig.o RemoteControlLinkData.o RemoteControlRemoteControlHandler.o \
RemoteControlRepeaterData.o RemoteControlStarNetGroup.o RemoteControlStarNetUser.o
.PHONY: all
all: remotecontrold
remotecontrold: $(OBJECTS) ../Common/Common.a
$(CXX) $(OBJECTS) ../Common/Common.a $(LDFLAGS) $(LIBS) -o remotecontrold
-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 remotecontrold $(BINDIR)
.PHONY: clean
clean:
$(RM) remotecontrold *.o *.d *.bak *~
../Common/Common.a: