diff --git a/MakefileGUI b/MakefileGUI new file mode 100644 index 0000000..a7e006a --- /dev/null +++ b/MakefileGUI @@ -0,0 +1,76 @@ +export DATADIR := "/usr/share/ircddbgateway" +export LOGDIR := "/var/log" +export CONFDIR := "/etc" +export BINDIR := "/usr/bin" + +export CXX := $(shell wx-config --cxx) +export CFLAGS := -O2 -Wall $(shell wx-config --cxxflags) -DLOG_DIR='$(LOGDIR)' -DCONF_DIR='$(CONFDIR)' -DDATA_DIR='$(DATADIR)' +export GUILIBS := $(shell wx-config --libs adv,core,base) +export LIBS := $(shell wx-config --libs base) +export LDFLAGS := + +all: ircDDBGateway/ircddbgatewayd ircDDBGatewayConfig/ircddbgatewayconfig APRSTransmit/aprstransmitd RemoteControl/remotecontrold \ + StarNetServer/starnetserverd TextTransmit/texttransmitd TimerControl/timercontrold TimeServer/timeserverd VoiceTransmit/voicetransmitd + +ircDDBGateway/ircddbgatewayd: GUICommon/GUICommon.a Common/Common.a ircDDB/IRCDDB.a + make -C ircDDBGateway -f MakefileGUI + +ircDDBGatewayConfig/ircddbgatewayconfig: GUICommon/GUICommon.a Common/Common.a + make -C ircDDBGatewayConfig + +APRSTransmit/aprstransmitd: Common/Common.a + make -C APRSTransmit + +RemoteControl/remotecontrold: Common/Common.a + make -C RemoteControl + +StarNetServer/starnetserverd: Common/Common.a ircDDB/IRCDDB.a + make -C StarNetServer + +TextTransmit/texttransmitd: Common/Common.a + make -C TextTransmit + +TimerControl/timercontrold: Common/Common.a GUICommon/GUICommon.a + make -C TimerControl + +TimeServer/timeserverd: Common/Common.a GUICommon/GUICommon.a + make -C TimeServer + +VoiceTransmit/voicetransmitd: Common/Common.a + make -C VoiceTransmit + +GUICommon/GUICommon.a: + make -C GUICommon + +Common/Common.a: + make -C Common + +ircDDB/IRCDDB.a: + make -C ircDDB + +install: all + make -C Data install + make -C APRSTransmit install + make -C ircDDBGateway install + make -C RemoteControl install + make -C StarNetServer install + make -C TextTransmit install + make -C TimerControl install + make -C TimeServer install + make -C VoiceTransmit install + make -C ircDDBGatewayConfig install + +clean: + make -C Common clean + make -C ircDDB clean + make -C GUICommon clean + make -C APRSTransmit clean + make -C ircDDBGateway clean + make -C RemoteControl clean + make -C StarNetServer clean + make -C TextTransmit clean + make -C TimerControl clean + make -C TimeServer clean + make -C VoiceTransmit clean + make -C ircDDBGatewayConfig clean + diff --git a/ircDDBGateway/MakefileGUI b/ircDDBGateway/MakefileGUI new file mode 100644 index 0000000..8ebf8fa --- /dev/null +++ b/ircDDBGateway/MakefileGUI @@ -0,0 +1,17 @@ +OBJECTS = IRCDDBGatewayApp.o IRCDDBGatewayFrame.o IRCDDBGatewayLogRedirect.o IRCDDBGatewayStatusData.o IRCDDBGatewayThread.o \ + IRCDDBGatewayThreadHelper.o + +all: ircddbgateway + +ircddbgateway: $(OBJECTS) + $(CXX) $(OBJECTS) ../GUICommon/GUICommon.a ../Common/Common.a ../ircDDB/IRCDDB.a $(LDFLAGS) $(GUILIBS) -o ircddbgateway + +%.o: %.cpp + $(CXX) $(CFLAGS) -I../Common -I../GUICommon -I../ircDDB -c -o $@ $< + +install: + install -g bin -o root -m 0775 ircddbgateway $(BINDIR) + +clean: + $(RM) ircddbgateway *.o *.d *.bak *~ +