From d8192a9c7f761ff9b96d5269f7353a66bbb4f3bd Mon Sep 17 00:00:00 2001 From: Shawn Chain Date: Mon, 9 Dec 2019 14:36:43 +0800 Subject: [PATCH] add linux server compile --- GlobalDefines.h | 2 +- Makefile.linux | 70 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 Makefile.linux diff --git a/GlobalDefines.h b/GlobalDefines.h index adc4397..e17c85a 100644 --- a/GlobalDefines.h +++ b/GlobalDefines.h @@ -1,7 +1,7 @@ #ifndef __GLOBAL_DEFS__ #define __GLOBAL_DEFS__ -#if defined(__APPLE__) +#if defined(__APPLE__) || defined(LINUX) #define DATA_DIR "/opt/mmdvm/conf/dstar" #define LOG_DIR "/opt/mmdvm/logs" #define CONF_DIR "/opt/mmdvm/conf" diff --git a/Makefile.linux b/Makefile.linux new file mode 100644 index 0000000..08e14e1 --- /dev/null +++ b/Makefile.linux @@ -0,0 +1,70 @@ +# export CXX ?= $(shell wx-config --cxx) +# export CFLAGS ?= -O2 -Wall $(shell wx-config --cxxflags) -DLOG_LOCALTIME=1 -DLINUX=1 +# export GUILIBS ?= $(shell wx-config --libs adv,core,base) +# export LIBS ?= $(shell wx-config --libs base) +# export LDFLAGS ?= + +all: ircDDBGateway/ircddbgatewayd + +ircDDBGateway/ircddbgatewayd: Common/Common.a ircDDB/IRCDDB.a + $(MAKE) -C ircDDBGateway + +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 +