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
27 lines
870 B
Plaintext
27 lines
870 B
Plaintext
OBJECTS = StarNetServerApp.o StarNetServerCallsignSet.o StarNetServerConfig.o StarNetServerFrame.o StarNetServerIrcDDBSet.o \
|
|
StarNetServerLogRedirect.o StarNetServerMiscellaneousSet.o StarNetServerPreferences.o StarNetServerThread.o \
|
|
StarNetServerThreadHelper.o
|
|
|
|
.PHONY: all
|
|
all: starnetserver
|
|
|
|
starnetserver: $(OBJECTS) ../GUICommon/GUICommon.a ../Common/Common.a
|
|
$(CXX) $(OBJECTS) ../GUICommon/GUICommon.a ../Common/Common.a ../ircDDB/IRCDDB.a $(LDFLAGS) $(GUILIBS) -o starnetserver
|
|
|
|
-include $(OBJECTS:.o=.d)
|
|
|
|
%.o: %.cpp
|
|
$(CXX) $(CFLAGS) -I../Common -I../GUICommon -I../ircDDB -c -o $@ $<
|
|
$(CXX) -MM $(CFLAGS) -I../Common -I../GUICommon -I../ircDDB $< > $*.d
|
|
|
|
.PHONY: install
|
|
install:
|
|
install -g bin -o root -m 0775 starnetserver $(BINDIR)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
$(RM) starnetserver *.o *.d *.bak *~
|
|
|
|
../GUICommon/GUICommon.a:
|
|
../Common/Common.a:
|