forked from g4klx/ircDDBGateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MakefileGUI
95 lines (76 loc) · 3.06 KB
/
MakefileGUI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
ifeq ($(TARGET), opendv)
export DATADIR := "/usr/share/opendv"
export LOGDIR := "/var/log/opendv"
export CONFDIR := "/etc"
export BINDIR := "/usr/sbin"
else
export DATADIR := "/usr/share/ircddbgateway"
export LOGDIR := "/var/log"
export CONFDIR := "/etc"
export BINDIR := "/usr/bin"
endif
# 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
# Add -DUSE_GPS to the end of the CFLAGS line to enable the use of gpsd, and add -lgps to
# end of the LIBS and GUILIBS lines.
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,net)
export LDFLAGS :=
.PHONY: all
all: ircDDBGateway/ircddbgateway ircDDBGatewayConfig/ircddbgatewayconfig APRSTransmit/aprstransmitd RemoteControl/remotecontrol \
StarNetServer/starnetserver TextTransmit/texttransmitd TimerControl/timercontrol TimeServer/timeserver VoiceTransmit/voicetransmitd
ircDDBGateway/ircddbgateway: GUICommon/GUICommon.a Common/Common.a ircDDB/IRCDDB.a force
$(MAKE) -C ircDDBGateway -f MakefileGUI
ircDDBGatewayConfig/ircddbgatewayconfig: GUICommon/GUICommon.a Common/Common.a force
$(MAKE) -C ircDDBGatewayConfig
APRSTransmit/aprstransmitd: Common/Common.a force
$(MAKE) -C APRSTransmit
RemoteControl/remotecontrol: Common/Common.a force
$(MAKE) -C RemoteControl -f MakefileGUI
StarNetServer/starnetserver: Common/Common.a ircDDB/IRCDDB.a force
$(MAKE) -C StarNetServer -f MakefileGUI
TextTransmit/texttransmitd: Common/Common.a force
$(MAKE) -C TextTransmit
TimerControl/timercontrol: Common/Common.a GUICommon/GUICommon.a force
$(MAKE) -C TimerControl -f MakefileGUI
TimeServer/timeserver: Common/Common.a GUICommon/GUICommon.a force
$(MAKE) -C TimeServer -f MakefileGUI
VoiceTransmit/voicetransmitd: Common/Common.a force
$(MAKE) -C VoiceTransmit
GUICommon/GUICommon.a: force
$(MAKE) -C GUICommon
Common/Common.a: force
$(MAKE) -C Common
ircDDB/IRCDDB.a: force
$(MAKE) -C ircDDB
.PHONY: install
install: all
$(MAKE) -C Data install
$(MAKE) -C APRSTransmit install
$(MAKE) -C ircDDBGateway -f MakefileGUI install
$(MAKE) -C RemoteControl -f MakefileGUI install
$(MAKE) -C StarNetServer -f MakefileGUI install
$(MAKE) -C TextTransmit install
$(MAKE) -C TimerControl -f MakefileGUI install
$(MAKE) -C TimeServer -f MakefileGUI install
$(MAKE) -C VoiceTransmit install
$(MAKE) -C ircDDBGatewayConfig install
.PHONY: clean
clean:
$(MAKE) -C Common clean
$(MAKE) -C ircDDB clean
$(MAKE) -C GUICommon clean
$(MAKE) -C APRSTransmit clean
$(MAKE) -C ircDDBGateway -f MakefileGUI clean
$(MAKE) -C RemoteControl -f MakefileGUI clean
$(MAKE) -C StarNetServer -f MakefileGUI clean
$(MAKE) -C TextTransmit clean
$(MAKE) -C TimerControl -f MakefileGUI clean
$(MAKE) -C TimeServer -f MakefileGUI clean
$(MAKE) -C VoiceTransmit clean
$(MAKE) -C ircDDBGatewayConfig clean
.PHONY: force
force:
true;