mirror of
https://github.com/g4klx/ircDDBGateway.git
synced 2025-12-06 05:32:02 +01:00
This forces make to check if dependency (eg ../Common/Common.a) is more recent than the target
24 lines
518 B
Makefile
24 lines
518 B
Makefile
OBJECTS = VoiceStore.o VoiceTransmit.o
|
|
|
|
.PHONY: all
|
|
all: voicetransmitd
|
|
|
|
voicetransmitd: $(OBJECTS) ../Common/Common.a
|
|
$(CXX) $(OBJECTS) ../Common/Common.a $(LDFLAGS) $(LIBS) -o voicetransmitd
|
|
|
|
-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 voicetransmitd $(BINDIR)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
$(RM) voicetransmitd *.o *.d *.bak *~
|
|
|
|
../Common/Common.a:
|