mirror of
https://github.com/g4klx/ircDDBGateway.git
synced 2026-01-01 14:10:03 +01:00
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
23 lines
460 B
Makefile
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 *~
|
|
|