2018-05-16 23:15:11 +02:00
|
|
|
OBJECTS = StarNetServerAppD.o StarNetServerConfig.o StarNetServerThread.o StarNetServerThreadHelper.o
|
2018-05-15 20:32:38 +02:00
|
|
|
|
2018-11-11 17:13:17 +01:00
|
|
|
.PHONY: all
|
2018-05-16 23:15:11 +02:00
|
|
|
all: starnetserverd
|
2018-05-15 20:32:38 +02:00
|
|
|
|
2018-11-11 18:35:30 +01:00
|
|
|
starnetserverd: $(OBJECTS) ../Common/Common.a ../ircDDB/IRCDDB.a
|
2018-05-16 23:15:11 +02:00
|
|
|
$(CXX) $(OBJECTS) ../Common/Common.a ../ircDDB/IRCDDB.a $(LDFLAGS) $(LIBS) -o starnetserverd
|
2018-05-15 20:32:38 +02:00
|
|
|
|
2018-11-11 17:13:17 +01:00
|
|
|
-include $(OBJECTS:.o=.d)
|
|
|
|
|
|
2018-05-15 20:32:38 +02:00
|
|
|
%.o: %.cpp
|
2018-05-16 23:15:11 +02:00
|
|
|
$(CXX) -DwxUSE_GUI=0 $(CFLAGS) -I../Common -I../ircDDB -c -o $@ $<
|
2018-11-11 17:13:17 +01:00
|
|
|
$(CXX) -MM -DwxUSE_GUI=0 $(CFLAGS) -I../Common -I../ircDDB $< > $*.d
|
2018-05-15 20:32:38 +02:00
|
|
|
|
2018-11-11 17:13:17 +01:00
|
|
|
.PHONY: install
|
2018-05-15 22:19:47 +02:00
|
|
|
install:
|
2018-05-16 23:15:11 +02:00
|
|
|
install -g bin -o root -m 0775 starnetserverd $(BINDIR)
|
2018-05-15 22:19:47 +02:00
|
|
|
|
2018-11-11 17:13:17 +01:00
|
|
|
.PHONY: clean
|
2018-05-15 20:32:38 +02:00
|
|
|
clean:
|
2018-05-16 23:15:11 +02:00
|
|
|
$(RM) starnetserverd *.o *.d *.bak *~
|
2018-05-15 20:32:38 +02:00
|
|
|
|
2018-11-11 18:35:30 +01:00
|
|
|
../Common/Common.a:
|
|
|
|
|
../ircDDB/IRCDDB.a:
|