ircDDBGateway/TextTransmit/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

23 lines
460 B
Makefile

OBJECTS = TextTransmit.o
.PHONY: all
all: texttransmitd
texttransmitd: $(OBJECTS)
$(CXX) $(OBJECTS) ../Common/Common.a $(LDFLAGS) $(LIBS) -o texttransmitd
-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 texttransmitd $(BINDIR)
.PHONY: clean
clean:
$(RM) texttransmitd *.o *.d *.bak *~