-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefileGUIPi
41 lines (32 loc) · 1.17 KB
/
MakefileGUIPi
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
export DATADIR := "/usr/share/dstarrepeater"
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)' -DGPIO
export GUILIBS := $(shell wx-config --libs adv,core,base) -lasound -lusb-1.0 -lwiringPi
export LIBS := $(shell wx-config --libs base) -lasound -lwiringPi
export LDFLAGS :=
all: DStarRepeater/dstarrepeater DStarRepeaterConfig/dstarrepeaterconfig
DStarRepeater/dstarrepeater: GUICommon/GUICommon.a Common/Common.a force
$(MAKE) -C DStarRepeater -f MakefileGUI
DStarRepeaterConfig/dstarrepeaterconfig: GUICommon/GUICommon.a Common/Common.a force
$(MAKE) -C DStarRepeaterConfig
GUICommon/GUICommon.a: force
$(MAKE) -C GUICommon
Common/Common.a: force
$(MAKE) -C Common
.PHONY: install
install: all
$(MAKE) -C Data install
$(MAKE) -C DStarRepeater -f MakefileGUI install
$(MAKE) -C DStarRepeaterConfig install
.PHONY: clean
clean:
$(MAKE) -C Common clean
$(MAKE) -C GUICommon clean
$(MAKE) -C DStarRepeater clean
$(MAKE) -C DStarRepeaterConfig clean
.PHONY: force
force:
@true