mirror of
https://github.com/g4klx/ircDDBGateway.git
synced 2025-12-06 05:32:02 +01:00
patch for openwrt
This commit is contained in:
parent
828fd275a7
commit
3cf02e25bd
|
|
@ -1,3 +1,5 @@
|
|||
include ../common.mk
|
||||
|
||||
OBJECTS = AMBEData.o AnnouncementUnit.o APRSCollector.o APRSWriter.o APRSWriterThread.o AudioUnit.o CacheManager.o CallsignList.o \
|
||||
CallsignServer.o CCITTChecksum.o CCSData.o CCSHandler.o CCSProtocolHandler.o ConnectData.o DCSHandler.o DCSProtocolHandler.o \
|
||||
DCSProtocolHandlerPool.o DDData.o DDHandler.o DExtraHandler.o DExtraProtocolHandler.o DExtraProtocolHandlerPool.o \
|
||||
|
|
|
|||
17
Makefile
17
Makefile
|
|
@ -1,19 +1,6 @@
|
|||
export DATADIR := "/usr/share/ircddbgateway"
|
||||
export LOGDIR := "/var/log"
|
||||
export CONFDIR := "/etc"
|
||||
export BINDIR := "/usr/bin"
|
||||
include common.mk
|
||||
|
||||
# Add -DDCS_LINK to the end of the CFLAGS line below to add DCS linking to StarNet
|
||||
# Add -DDEXTRA_LINK to the end of the CFLAGS line below to add DExtra linking to StarNet
|
||||
|
||||
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
|
||||
all: ircDDBGateway/ircddbgatewayd
|
||||
|
||||
ircDDBGateway/ircddbgatewayd: Common/Common.a ircDDB/IRCDDB.a
|
||||
make -C ircDDBGateway
|
||||
|
|
|
|||
27
common.mk
Normal file
27
common.mk
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
|
||||
# Add -DDCS_LINK to the end of the CFLAGS line below to add DCS linking to StarNet
|
||||
# Add -DDEXTRA_LINK to the end of the CFLAGS line below to add DExtra linking to StarNet
|
||||
|
||||
ifeq ($(OPENWRT),1)
|
||||
DATADIR := "/etc/mmdvm/ircddbgateway"
|
||||
LOGDIR := "/var/log/mmdvm"
|
||||
CONFDIR := "/etc"
|
||||
BINDIR := "/usr/bin"
|
||||
|
||||
CFLAGS += -DLOG_DIR='$(LOGDIR)' -DCONF_DIR='$(CONFDIR)' -DDATA_DIR='$(DATADIR)'
|
||||
LIBS += -lwxbase_u
|
||||
LDFLAGS :=
|
||||
|
||||
else
|
||||
DATADIR := "/usr/share/ircddbgateway"
|
||||
LOGDIR := "/var/log"
|
||||
CONFDIR := "/etc"
|
||||
BINDIR := "/usr/bin"
|
||||
|
||||
CXX := $(shell wx-config --cxx)
|
||||
CFLAGS := -O2 -Wall $(shell wx-config --cxxflags) -DLOG_DIR='$(LOGDIR)' -DCONF_DIR='$(CONFDIR)' -DDATA_DIR='$(DATADIR)'
|
||||
GUILIBS := $(shell wx-config --libs adv,core,base)
|
||||
LIBS := $(shell wx-config --libs base)
|
||||
LDFLAGS :=
|
||||
|
||||
endif
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
include ../common.mk
|
||||
|
||||
OBJECTS = IRCClient.o IRCDDBApp.o IRCDDBClient.o IRCDDB.o IRCDDBMultiClient.o IRCMessage.o IRCMessageQueue.o IRCProtocol.o IRCReceiver.o \
|
||||
IRCutils.o
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
include ../common.mk
|
||||
|
||||
OBJECTS = IRCDDBGatewayAppD.o IRCDDBGatewayStatusData.o IRCDDBGatewayThread.o IRCDDBGatewayThreadHelper.o
|
||||
|
||||
all: ircddbgatewayd
|
||||
|
|
|
|||
Loading…
Reference in a new issue