mirror of
https://github.com/g4klx/ircDDBGateway.git
synced 2026-01-08 17:29:58 +01:00
Add makefiles to build a GUI version under Linux.
This commit is contained in:
parent
460d0dc873
commit
f2e06a86d9
76
MakefileGUI
Normal file
76
MakefileGUI
Normal file
|
|
@ -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
|
||||
|
||||
17
ircDDBGateway/MakefileGUI
Normal file
17
ircDDBGateway/MakefileGUI
Normal file
|
|
@ -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 *~
|
||||
|
||||
Loading…
Reference in a new issue