add linux server compile

This commit is contained in:
Shawn Chain 2019-12-09 14:36:43 +08:00
parent fd4228b74f
commit d8192a9c7f
2 changed files with 71 additions and 1 deletions

View file

@ -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"

70
Makefile.linux Normal file
View file

@ -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