Line 0
Link Here
|
|
|
1 |
--- ./Makefile.linux.orig 2018-10-08 14:15:21 UTC |
2 |
+++ ./Makefile.linux |
3 |
@@ -1,5 +1,5 @@ |
4 |
# |
5 |
-# Makefile for Linux version of Dire Wolf. |
6 |
+# Makefile for FreeBSD version of Dire Wolf. |
7 |
# |
8 |
|
9 |
|
10 |
@@ -13,7 +13,7 @@ all : $(APPS) direwolf.desktop direwolf |
11 |
@echo " sudo make install" |
12 |
@echo " " |
13 |
|
14 |
-CC := gcc |
15 |
+CC := clang |
16 |
|
17 |
# Just for fun, let's see how clang compares to gcc. First install like this: |
18 |
# sudo apt-get update |
19 |
@@ -32,14 +32,14 @@ CC := gcc |
20 |
# we will inherit options already set in build environment. |
21 |
# Explanation - https://github.com/wb2osz/direwolf/pull/38 |
22 |
|
23 |
-CFLAGS += -O3 -pthread -Igeotranz -D_XOPEN_SOURCE=600 -D_DEFAULT_SOURCE=1 -Wall |
24 |
+CFLAGS += -O3 -I${LOCALBASE}/include -pthread -Igeotranz -D_DEFAULT_SOURCE=1 -Wall |
25 |
|
26 |
# That was fine for a recent Ubuntu and Raspbian Jessie. |
27 |
# However, Raspbian wheezy was then missing declaration for strsep and definition of fd_set. |
28 |
|
29 |
CFLAGS += -D_BSD_SOURCE |
30 |
|
31 |
-LDFLAGS += -lm -lpthread -lrt |
32 |
+LDFLAGS += -lm -lpthread -lrt -L${LOCALBASE}/lib |
33 |
|
34 |
|
35 |
|
36 |
@@ -95,7 +95,7 @@ LDFLAGS += -lm -lpthread -lrt |
37 |
# If the compiler is generating code for the i386 target, we can |
38 |
# get much better results by telling it we have at least a Pentium 3. |
39 |
|
40 |
-arch := $(shell echo | gcc -E -dM - | grep __i386__) |
41 |
+arch := $(shell echo | ${CC} -E -dM - | grep __i386__) |
42 |
ifneq ($(arch),) |
43 |
CFLAGS += -march=pentium3 |
44 |
endif |
45 |
@@ -152,7 +152,7 @@ endif |
46 |
# |
47 |
|
48 |
|
49 |
-useffast := $(shell gcc --help -v 2>/dev/null | grep ffast-math) |
50 |
+useffast := $(shell ${CC} --help -v 2>/dev/null | grep ffast-math) |
51 |
ifneq ($(useffast),) |
52 |
CFLAGS += -ffast-math |
53 |
endif |
54 |
@@ -215,7 +215,7 @@ endif |
55 |
# and the compiler target defaults. |
56 |
# |
57 |
|
58 |
-neon := $(shell cat /proc/cpuinfo | grep neon) |
59 |
+#neon := $(shell cat /proc/cpuinfo | grep neon) |
60 |
ifneq ($(neon),) |
61 |
CFLAGS += -mfpu=neon |
62 |
endif |
63 |
@@ -266,8 +266,8 @@ endif |
64 |
ifneq ($(alsa),) |
65 |
CFLAGS += -DUSE_ALSA |
66 |
LDFLAGS += -lasound |
67 |
-ifeq ($(wildcard /usr/include/alsa/asoundlib.h),) |
68 |
-$(error /usr/include/alsa/asoundlib.h does not exist. Install it with "sudo apt-get install libasound2-dev" or "sudo yum install alsa-lib-devel" ) |
69 |
+ifeq ($(wildcard ${LOCALBASE}/include/alsa/asoundlib.h),) |
70 |
+$(error ${LOCALBASE}/include/alsa/asoundlib.h does not exist. Install it with "sudo apt-get install libasound2-dev" or "sudo yum install alsa-lib-devel" ) |
71 |
endif |
72 |
endif |
73 |
|
74 |
@@ -276,7 +276,7 @@ endif |
75 |
# Finding libgps.so* is more difficult because it |
76 |
# is in different places on different operating systems. |
77 |
|
78 |
-enable_gpsd := $(wildcard /usr/include/gps.h) |
79 |
+enable_gpsd := $(wildcard ${LOCALBASE}/include/gps.h) |
80 |
ifneq ($(enable_gpsd),) |
81 |
CFLAGS += -DENABLE_GPSD |
82 |
LDFLAGS += -lgps |
83 |
@@ -285,7 +285,7 @@ endif |
84 |
|
85 |
# Enable hamlib support if header file is present. |
86 |
|
87 |
-enable_hamlib := $(wildcard /usr/include/hamlib/rig.h /usr/local/include/hamlib/rig.h) |
88 |
+enable_hamlib := $(wildcard ${LOCALBASE}/include/hamlib/rig.h /usr/local/include/hamlib/rig.h) |
89 |
ifneq ($(enable_hamlib),) |
90 |
CFLAGS += -DUSE_HAMLIB |
91 |
LDFLAGS += -lhamlib |
92 |
@@ -297,18 +297,18 @@ endif |
93 |
# If, for some reason, can obtain the libudev-dev package, or |
94 |
# don't want to install it, comment out the next 3 lines. |
95 |
|
96 |
-#ifeq ($(wildcard /usr/include/libudev.h),) |
97 |
-#$(error /usr/include/libudev.h does not exist. Install it with "sudo apt-get install libudev-dev" or "sudo yum install libudev-devel" ) |
98 |
+#ifeq ($(wildcard ${LOCALBASE}/include/libudev.h),) |
99 |
+#$(error ${LOCALBASE}/include/libudev.h does not exist. Install it with "sudo apt-get install libudev-dev" or "sudo yum install libudev-devel" ) |
100 |
#endif |
101 |
|
102 |
|
103 |
# Enable cm108 PTT support if libudev header file is present. |
104 |
|
105 |
-enable_cm108 := $(wildcard /usr/include/libudev.h) |
106 |
-ifneq ($(enable_cm108),) |
107 |
-CFLAGS += -DUSE_CM108 |
108 |
-LDFLAGS += -ludev |
109 |
-endif |
110 |
+#enable_cm108 := $(wildcard ${LOCALBASE}/include/libudev.h) |
111 |
+#ifneq ($(enable_cm108),) |
112 |
+#CFLAGS += -DUSE_CM108 |
113 |
+#LDFLAGS += -ludev |
114 |
+#endif |
115 |
|
116 |
|
117 |
# Name of current directory. |
118 |
@@ -535,12 +535,17 @@ direwolf.conf : generic.conf |
119 |
# Something built from source and installed locally would normally go in /usr/local/... |
120 |
# If not specified on the make command line, this is our default. |
121 |
|
122 |
-DESTDIR ?= /usr/local |
123 |
+INSTALLDIR ?= ${PREFIX} |
124 |
+SHAREDIR ?= ${INSTALLDIR}/share |
125 |
+DATADIR ?= ${SHAREDIR}/direwolf |
126 |
+DOCSDIR ?= ${SHAREDIR}/doc/direwolf |
127 |
+EXAMPLESDIR ?= ${SHAREDIR}/examples/direwolf |
128 |
+MANDIR ?= ${INSTALLDIR}/man |
129 |
|
130 |
# However, if you are preparing a "binary" DEB or RPM package, the installation location |
131 |
# would normally be /usr/... instead. In this case, use a command line like this: |
132 |
# |
133 |
-# make DESTDIR=/usr install |
134 |
+# make INSTALLDIR=/usr install |
135 |
|
136 |
|
137 |
|
138 |
@@ -560,22 +565,22 @@ direwolf.desktop : |
139 |
@echo '[Desktop Entry]' > $@ |
140 |
@echo 'Type=Application' >> $@ |
141 |
ifneq ($(wildcard /usr/bin/lxterminal),) |
142 |
- @echo "Exec=lxterminal -t \"Dire Wolf\" -e \"$(DESTDIR)/bin/direwolf\"" >> $@ |
143 |
+ @echo "Exec=lxterminal -t \"Dire Wolf\" -e \"$(INSTALLDIR)/bin/direwolf\"" >> $@ |
144 |
else ifneq ($(wildcard /usr/bin/lxterm),) |
145 |
- @echo "Exec=lxterm -hold -title \"Dire Wolf\" -bg white -e \"$(DESTDIR)/bin/direwolf\"" >> $@ |
146 |
+ @echo "Exec=lxterm -hold -title \"Dire Wolf\" -bg white -e \"$(INSTALLDIR)/bin/direwolf\"" >> $@ |
147 |
else |
148 |
- @echo "Exec=xterm -hold -title \"Dire Wolf\" -bg white -e \"$(DESTDIR)/bin/direwolf\"" >> $@ |
149 |
+ @echo "Exec=xterm -hold -title \"Dire Wolf\" -bg white -e \"$(INSTALLDIR)/bin/direwolf\"" >> $@ |
150 |
endif |
151 |
@echo 'Name=Dire Wolf' >> $@ |
152 |
@echo 'Comment=APRS Soundcard TNC' >> $@ |
153 |
- @echo 'Icon=$(DESTDIR)/share/direwolf/pixmaps/dw-icon.png' >> $@ |
154 |
- @echo "Path=$(HOME)" >> $@ |
155 |
+ @echo 'Icon=$(DATADIR)/pixmaps/dw-icon.png' >> $@ |
156 |
+# @echo "Path=$(HOME)" >> $@ |
157 |
@echo '#Terminal=true' >> $@ |
158 |
@echo 'Categories=HamRadio' >> $@ |
159 |
@echo 'Keywords=Ham Radio;APRS;Soundcard TNC;KISS;AGWPE;AX.25' >> $@ |
160 |
|
161 |
|
162 |
-# Installation into $(DESTDIR), usually /usr/local/... or /usr/... |
163 |
+# Installation into $(DESTDIR)$(INSTALLDIR), usually /usr/local/... or /usr/... |
164 |
# Needs to be run as root or with sudo. |
165 |
|
166 |
|
167 |
@@ -585,102 +590,107 @@ install : $(APPS) direwolf.conf tocalls. |
168 |
# Applications, not installed with package manager, normally go in /usr/local/bin. |
169 |
# /usr/bin is used instead when installing from .DEB or .RPM package. |
170 |
# |
171 |
- $(INSTALL) -D --mode=755 direwolf $(DESTDIR)/bin/direwolf |
172 |
- $(INSTALL) -D --mode=755 decode_aprs $(DESTDIR)/bin/decode_aprs |
173 |
- $(INSTALL) -D --mode=755 text2tt $(DESTDIR)/bin/text2tt |
174 |
- $(INSTALL) -D --mode=755 tt2text $(DESTDIR)/bin/tt2text |
175 |
- $(INSTALL) -D --mode=755 ll2utm $(DESTDIR)/bin/ll2utm |
176 |
- $(INSTALL) -D --mode=755 utm2ll $(DESTDIR)/bin/utm2ll |
177 |
- $(INSTALL) -D --mode=755 aclients $(DESTDIR)/bin/aclients |
178 |
- $(INSTALL) -D --mode=755 log2gpx $(DESTDIR)/bin/log2gpx |
179 |
- $(INSTALL) -D --mode=755 gen_packets $(DESTDIR)/bin/gen_packets |
180 |
- $(INSTALL) -D --mode=755 atest $(DESTDIR)/bin/atest |
181 |
- $(INSTALL) -D --mode=755 ttcalc $(DESTDIR)/bin/ttcalc |
182 |
- $(INSTALL) -D --mode=755 kissutil $(DESTDIR)/bin/kissutil |
183 |
- $(INSTALL) -D --mode=755 cm108 $(DESTDIR)/bin/cm108 |
184 |
- $(INSTALL) -D --mode=755 dwespeak.sh $(DESTDIR)/bin/dwspeak.sh |
185 |
+ $(BSD_INSTALL_PROGRAM) direwolf $(DESTDIR)$(INSTALLDIR)/bin/direwolf |
186 |
+ $(BSD_INSTALL_PROGRAM) decode_aprs $(DESTDIR)$(INSTALLDIR)/bin/decode_aprs |
187 |
+ $(BSD_INSTALL_PROGRAM) text2tt $(DESTDIR)$(INSTALLDIR)/bin/text2tt |
188 |
+ $(BSD_INSTALL_PROGRAM) tt2text $(DESTDIR)$(INSTALLDIR)/bin/tt2text |
189 |
+ $(BSD_INSTALL_PROGRAM) ll2utm $(DESTDIR)$(INSTALLDIR)/bin/ll2utm |
190 |
+ $(BSD_INSTALL_PROGRAM) utm2ll $(DESTDIR)$(INSTALLDIR)/bin/utm2ll |
191 |
+ $(BSD_INSTALL_PROGRAM) aclients $(DESTDIR)$(INSTALLDIR)/bin/aclients |
192 |
+ $(BSD_INSTALL_PROGRAM) log2gpx $(DESTDIR)$(INSTALLDIR)/bin/log2gpx |
193 |
+ $(BSD_INSTALL_PROGRAM) gen_packets $(DESTDIR)$(INSTALLDIR)/bin/gen_packets |
194 |
+ $(BSD_INSTALL_PROGRAM) atest $(DESTDIR)$(INSTALLDIR)/bin/atest |
195 |
+ $(BSD_INSTALL_PROGRAM) ttcalc $(DESTDIR)$(INSTALLDIR)/bin/ttcalc |
196 |
+ $(BSD_INSTALL_PROGRAM) kissutil $(DESTDIR)$(INSTALLDIR)/bin/kissutil |
197 |
+ $(BSD_INSTALL_PROGRAM) cm108 $(DESTDIR)$(INSTALLDIR)/bin/cm108 |
198 |
+ $(BSD_INSTALL_SCRIPT) dwespeak.sh $(DESTDIR)$(INSTALLDIR)/bin/dwspeak.sh |
199 |
# |
200 |
# Telemetry Toolkit executables. Other .conf and .txt files will go into doc directory. |
201 |
# |
202 |
- $(INSTALL) -D --mode=755 telemetry-toolkit/telem-balloon.pl $(DESTDIR)/bin/telem-balloon.pl |
203 |
- $(INSTALL) -D --mode=755 telemetry-toolkit/telem-bits.pl $(DESTDIR)/bin/telem-bits.pl |
204 |
- $(INSTALL) -D --mode=755 telemetry-toolkit/telem-data.pl $(DESTDIR)/bin/telem-data.pl |
205 |
- $(INSTALL) -D --mode=755 telemetry-toolkit/telem-data91.pl $(DESTDIR)/bin/telem-data91.pl |
206 |
- $(INSTALL) -D --mode=755 telemetry-toolkit/telem-eqns.pl $(DESTDIR)/bin/telem-eqns.pl |
207 |
- $(INSTALL) -D --mode=755 telemetry-toolkit/telem-parm.pl $(DESTDIR)/bin/telem-parm.pl |
208 |
- $(INSTALL) -D --mode=755 telemetry-toolkit/telem-seq.sh $(DESTDIR)/bin/telem-seq.sh |
209 |
- $(INSTALL) -D --mode=755 telemetry-toolkit/telem-unit.pl $(DESTDIR)/bin/telem-unit.pl |
210 |
- $(INSTALL) -D --mode=755 telemetry-toolkit/telem-volts.py $(DESTDIR)/bin/telem-volts.py |
211 |
+ $(BSD_INSTALL_SCRIPT) telemetry-toolkit/telem-balloon.pl $(DESTDIR)$(INSTALLDIR)/bin/telem-balloon.pl |
212 |
+ $(BSD_INSTALL_SCRIPT) telemetry-toolkit/telem-bits.pl $(DESTDIR)$(INSTALLDIR)/bin/telem-bits.pl |
213 |
+ $(BSD_INSTALL_SCRIPT) telemetry-toolkit/telem-data.pl $(DESTDIR)$(INSTALLDIR)/bin/telem-data.pl |
214 |
+ $(BSD_INSTALL_SCRIPT) telemetry-toolkit/telem-data91.pl $(DESTDIR)$(INSTALLDIR)/bin/telem-data91.pl |
215 |
+ $(BSD_INSTALL_SCRIPT) telemetry-toolkit/telem-eqns.pl $(DESTDIR)$(INSTALLDIR)/bin/telem-eqns.pl |
216 |
+ $(BSD_INSTALL_SCRIPT) telemetry-toolkit/telem-parm.pl $(DESTDIR)$(INSTALLDIR)/bin/telem-parm.pl |
217 |
+ $(BSD_INSTALL_SCRIPT) telemetry-toolkit/telem-seq.sh $(DESTDIR)$(INSTALLDIR)/bin/telem-seq.sh |
218 |
+ $(BSD_INSTALL_SCRIPT) telemetry-toolkit/telem-unit.pl $(DESTDIR)$(INSTALLDIR)/bin/telem-unit.pl |
219 |
+ $(BSD_INSTALL_SCRIPT) telemetry-toolkit/telem-volts.py $(DESTDIR)$(INSTALLDIR)/bin/telem-volts.py |
220 |
# |
221 |
# Misc. data such as "tocall" to system mapping. |
222 |
# |
223 |
- $(INSTALL) -D --mode=644 tocalls.txt $(DESTDIR)/share/direwolf/tocalls.txt |
224 |
- $(INSTALL) -D --mode=644 symbols-new.txt $(DESTDIR)/share/direwolf/symbols-new.txt |
225 |
- $(INSTALL) -D --mode=644 symbolsX.txt $(DESTDIR)/share/direwolf/symbolsX.txt |
226 |
+ mkdir -p $(DESTDIR)${DATADIR} |
227 |
+ $(BSD_INSTALL_DATA) tocalls.txt $(DESTDIR)$(DATADIR)/tocalls.txt |
228 |
+ $(BSD_INSTALL_DATA) symbols-new.txt $(DESTDIR)$(DATADIR)/symbols-new.txt |
229 |
+ $(BSD_INSTALL_DATA) symbolsX.txt $(DESTDIR)$(DATADIR)/symbolsX.txt |
230 |
# |
231 |
# For desktop icon. |
232 |
# |
233 |
- $(INSTALL) -D --mode=644 dw-icon.png $(DESTDIR)/share/direwolf/pixmaps/dw-icon.png |
234 |
- $(INSTALL) -D --mode=644 direwolf.desktop $(DESTDIR)/share/applications/direwolf.desktop |
235 |
+ mkdir -p $(DESTDIR)${DATADIR}/pixmaps |
236 |
+ mkdir -p $(DESTDIR)${SHAREDIR}/applications |
237 |
+ $(BSD_INSTALL_DATA) dw-icon.png $(DESTDIR)$(DATADIR)/pixmaps/dw-icon.png |
238 |
+ $(BSD_INSTALL_DATA) direwolf.desktop $(DESTDIR)$(SHAREDIR)/applications/direwolf.desktop |
239 |
# |
240 |
# Documentation. Various plain text files and PDF. |
241 |
# |
242 |
- $(INSTALL) -D --mode=644 CHANGES.md $(DESTDIR)/share/doc/direwolf/CHANGES.md |
243 |
- $(INSTALL) -D --mode=644 LICENSE-dire-wolf.txt $(DESTDIR)/share/doc/direwolf/LICENSE-dire-wolf.txt |
244 |
- $(INSTALL) -D --mode=644 LICENSE-other.txt $(DESTDIR)/share/doc/direwolf/LICENSE-other.txt |
245 |
+ $(BSD_INSTALL_DATA) CHANGES.md $(DESTDIR)$(DATADIR)/CHANGES.md |
246 |
+ $(BSD_INSTALL_DATA) LICENSE-dire-wolf.txt $(DESTDIR)$(DATADIR)/LICENSE-dire-wolf.txt |
247 |
+ $(BSD_INSTALL_DATA) LICENSE-other.txt $(DESTDIR)$(DATADIR)/LICENSE-other.txt |
248 |
# |
249 |
# ./README.md is an overview for the project main page. |
250 |
# Maybe we could stick it in some other place. |
251 |
# doc/README.md contains an overview of the PDF file contents and is more useful here. |
252 |
# |
253 |
- $(INSTALL) -D --mode=644 doc/README.md $(DESTDIR)/share/doc/direwolf/README.md |
254 |
- $(INSTALL) -D --mode=644 doc/2400-4800-PSK-for-APRS-Packet-Radio.pdf $(DESTDIR)/share/doc/direwolf/2400-4800-PSK-for-APRS-Packet-Radio.pdf |
255 |
- $(INSTALL) -D --mode=644 doc/A-Better-APRS-Packet-Demodulator-Part-1-1200-baud.pdf $(DESTDIR)/share/doc/direwolf/A-Better-APRS-Packet-Demodulator-Part-1-1200-baud.pdf |
256 |
- $(INSTALL) -D --mode=644 doc/A-Better-APRS-Packet-Demodulator-Part-2-9600-baud.pdf $(DESTDIR)/share/doc/direwolf/A-Better-APRS-Packet-Demodulator-Part-2-9600-baud.pdf |
257 |
- $(INSTALL) -D --mode=644 doc/A-Closer-Look-at-the-WA8LMF-TNC-Test-CD.pdf $(DESTDIR)/share/doc/direwolf/A-Closer-Look-at-the-WA8LMF-TNC-Test-CD.pdf |
258 |
- $(INSTALL) -D --mode=644 doc/APRS-Telemetry-Toolkit.pdf $(DESTDIR)/share/doc/direwolf/APRS-Telemetry-Toolkit.pdf |
259 |
- $(INSTALL) -D --mode=644 doc/APRStt-Implementation-Notes.pdf $(DESTDIR)/share/doc/direwolf/APRStt-Implementation-Notes.pdf |
260 |
- $(INSTALL) -D --mode=644 doc/APRStt-interface-for-SARTrack.pdf $(DESTDIR)/share/doc/direwolf/APRStt-interface-for-SARTrack.pdf |
261 |
- $(INSTALL) -D --mode=644 doc/APRStt-Listening-Example.pdf $(DESTDIR)/share/doc/direwolf/APRStt-Listening-Example.pdf |
262 |
- $(INSTALL) -D --mode=644 doc/Bluetooth-KISS-TNC.pdf $(DESTDIR)/share/doc/direwolf/Bluetooth-KISS-TNC.pdf |
263 |
- $(INSTALL) -D --mode=644 doc/Going-beyond-9600-baud.pdf $(DESTDIR)/share/doc/direwolf/Going-beyond-9600-baud.pdf |
264 |
- $(INSTALL) -D --mode=644 doc/Raspberry-Pi-APRS.pdf $(DESTDIR)/share/doc/direwolf/Raspberry-Pi-APRS.pdf |
265 |
- $(INSTALL) -D --mode=644 doc/Raspberry-Pi-APRS-Tracker.pdf $(DESTDIR)/share/doc/direwolf/Raspberry-Pi-APRS-Tracker.pdf |
266 |
- $(INSTALL) -D --mode=644 doc/Raspberry-Pi-SDR-IGate.pdf $(DESTDIR)/share/doc/direwolf/Raspberry-Pi-SDR-IGate.pdf |
267 |
- $(INSTALL) -D --mode=644 doc/Successful-APRS-IGate-Operation.pdf $(DESTDIR)/share/doc/direwolf/Successful-APRS-IGate-Operation.pdf |
268 |
- $(INSTALL) -D --mode=644 doc/User-Guide.pdf $(DESTDIR)/share/doc/direwolf/User-Guide.pdf |
269 |
- $(INSTALL) -D --mode=644 doc/WA8LMF-TNC-Test-CD-Results.pdf $(DESTDIR)/share/doc/direwolf/WA8LMF-TNC-Test-CD-Results.pdf |
270 |
+ mkdir -p $(DESTDIR)${DOCSDIR} |
271 |
+ $(BSD_INSTALL_DATA) doc/README.md $(DESTDIR)$(DOCSDIR)/README.md |
272 |
+ $(BSD_INSTALL_DATA) doc/2400-4800-PSK-for-APRS-Packet-Radio.pdf $(DESTDIR)$(DOCSDIR)/2400-4800-PSK-for-APRS-Packet-Radio.pdf |
273 |
+ $(BSD_INSTALL_DATA) doc/A-Better-APRS-Packet-Demodulator-Part-1-1200-baud.pdf $(DESTDIR)$(DOCSDIR)/A-Better-APRS-Packet-Demodulator-Part-1-1200-baud.pdf |
274 |
+ $(BSD_INSTALL_DATA) doc/A-Better-APRS-Packet-Demodulator-Part-2-9600-baud.pdf $(DESTDIR)$(DOCSDIR)/A-Better-APRS-Packet-Demodulator-Part-2-9600-baud.pdf |
275 |
+ $(BSD_INSTALL_DATA) doc/A-Closer-Look-at-the-WA8LMF-TNC-Test-CD.pdf $(DESTDIR)$(DOCSDIR)/A-Closer-Look-at-the-WA8LMF-TNC-Test-CD.pdf |
276 |
+ $(BSD_INSTALL_DATA) doc/APRS-Telemetry-Toolkit.pdf $(DESTDIR)$(DOCSDIR)/APRS-Telemetry-Toolkit.pdf |
277 |
+ $(BSD_INSTALL_DATA) doc/APRStt-Implementation-Notes.pdf $(DESTDIR)$(DOCSDIR)/APRStt-Implementation-Notes.pdf |
278 |
+ $(BSD_INSTALL_DATA) doc/APRStt-interface-for-SARTrack.pdf $(DESTDIR)$(DOCSDIR)/APRStt-interface-for-SARTrack.pdf |
279 |
+ $(BSD_INSTALL_DATA) doc/APRStt-Listening-Example.pdf $(DESTDIR)$(DOCSDIR)/APRStt-Listening-Example.pdf |
280 |
+ $(BSD_INSTALL_DATA) doc/Bluetooth-KISS-TNC.pdf $(DESTDIR)$(DOCSDIR)/Bluetooth-KISS-TNC.pdf |
281 |
+ $(BSD_INSTALL_DATA) doc/Going-beyond-9600-baud.pdf $(DESTDIR)$(DOCSDIR)/Going-beyond-9600-baud.pdf |
282 |
+ $(BSD_INSTALL_DATA) doc/Raspberry-Pi-APRS.pdf $(DESTDIR)$(DOCSDIR)/Raspberry-Pi-APRS.pdf |
283 |
+ $(BSD_INSTALL_DATA) doc/Raspberry-Pi-APRS-Tracker.pdf $(DESTDIR)$(DOCSDIR)/Raspberry-Pi-APRS-Tracker.pdf |
284 |
+ $(BSD_INSTALL_DATA) doc/Raspberry-Pi-SDR-IGate.pdf $(DESTDIR)$(DOCSDIR)/Raspberry-Pi-SDR-IGate.pdf |
285 |
+ $(BSD_INSTALL_DATA) doc/Successful-APRS-IGate-Operation.pdf $(DESTDIR)$(DOCSDIR)/Successful-APRS-IGate-Operation.pdf |
286 |
+ $(BSD_INSTALL_DATA) doc/User-Guide.pdf $(DESTDIR)$(DOCSDIR)/User-Guide.pdf |
287 |
+ $(BSD_INSTALL_DATA) doc/WA8LMF-TNC-Test-CD-Results.pdf $(DESTDIR)$(DOCSDIR)/WA8LMF-TNC-Test-CD-Results.pdf |
288 |
# |
289 |
# Various sample config and other files go into examples under the doc directory. |
290 |
# When building from source, these can be put in home directory with "make install-conf". |
291 |
# When installed from .DEB or .RPM package, the user will need to copy these to |
292 |
# the home directory or other desired location. |
293 |
# |
294 |
- $(INSTALL) -D --mode=644 direwolf.conf $(DESTDIR)/share/doc/direwolf/examples/direwolf.conf |
295 |
- $(INSTALL) -D --mode=755 dw-start.sh $(DESTDIR)/share/doc/direwolf/examples/dw-start.sh |
296 |
- $(INSTALL) -D --mode=644 sdr.conf $(DESTDIR)/share/doc/direwolf/examples/sdr.conf |
297 |
- $(INSTALL) -D --mode=644 telemetry-toolkit/telem-m0xer-3.txt $(DESTDIR)/share/doc/direwolf/examples/telem-m0xer-3.txt |
298 |
- $(INSTALL) -D --mode=644 telemetry-toolkit/telem-balloon.conf $(DESTDIR)/share/doc/direwolf/examples/telem-balloon.conf |
299 |
- $(INSTALL) -D --mode=644 telemetry-toolkit/telem-volts.conf $(DESTDIR)/share/doc/direwolf/examples/telem-volts.conf |
300 |
+ mkdir -p $(DESTDIR)${EXAMPLESDIR} |
301 |
+ $(BSD_INSTALL_DATA) direwolf.conf $(DESTDIR)$(EXAMPLESDIR)/direwolf.conf |
302 |
+ $(BSD_INSTALL_SCRIPT) dw-start.sh $(DESTDIR)$(EXAMPLESDIR)/dw-start.sh |
303 |
+ $(BSD_INSTALL_DATA) sdr.conf $(DESTDIR)$(EXAMPLESDIR)/sdr.conf |
304 |
+ $(BSD_INSTALL_DATA) telemetry-toolkit/telem-m0xer-3.txt $(DESTDIR)$(EXAMPLESDIR)/telem-m0xer-3.txt |
305 |
+ $(BSD_INSTALL_DATA) telemetry-toolkit/telem-balloon.conf $(DESTDIR)$(EXAMPLESDIR)/telem-balloon.conf |
306 |
+ $(BSD_INSTALL_DATA) telemetry-toolkit/telem-volts.conf $(DESTDIR)$(EXAMPLESDIR)/telem-volts.conf |
307 |
# |
308 |
# "man" pages |
309 |
# |
310 |
- $(INSTALL) -D --mode=644 man1/aclients.1 $(DESTDIR)/share/man/man1/aclients.1 |
311 |
- $(INSTALL) -D --mode=644 man1/atest.1 $(DESTDIR)/share/man/man1/atest.1 |
312 |
- $(INSTALL) -D --mode=644 man1/decode_aprs.1 $(DESTDIR)/share/man/man1/decode_aprs.1 |
313 |
- $(INSTALL) -D --mode=644 man1/direwolf.1 $(DESTDIR)/share/man/man1/direwolf.1 |
314 |
- $(INSTALL) -D --mode=644 man1/gen_packets.1 $(DESTDIR)/share/man/man1/gen_packets.1 |
315 |
- $(INSTALL) -D --mode=644 man1/kissutil.1 $(DESTDIR)/share/man/man1/kissutil.1 |
316 |
- $(INSTALL) -D --mode=644 man1/ll2utm.1 $(DESTDIR)/share/man/man1/ll2utm.1 |
317 |
- $(INSTALL) -D --mode=644 man1/log2gpx.1 $(DESTDIR)/share/man/man1/log2gpx.1 |
318 |
- $(INSTALL) -D --mode=644 man1/text2tt.1 $(DESTDIR)/share/man/man1/text2tt.1 |
319 |
- $(INSTALL) -D --mode=644 man1/tt2text.1 $(DESTDIR)/share/man/man1/tt2text.1 |
320 |
- $(INSTALL) -D --mode=644 man1/utm2ll.1 $(DESTDIR)/share/man/man1/utm2ll.1 |
321 |
+ $(BSD_INSTALL_MAN) man1/aclients.1 $(DESTDIR)$(MANDIR)/man1/aclients.1 |
322 |
+ $(BSD_INSTALL_MAN) man1/atest.1 $(DESTDIR)$(MANDIR)/man1/atest.1 |
323 |
+ $(BSD_INSTALL_MAN) man1/decode_aprs.1 $(DESTDIR)$(MANDIR)/man1/decode_aprs.1 |
324 |
+ $(BSD_INSTALL_MAN) man1/direwolf.1 $(DESTDIR)$(MANDIR)/man1/direwolf.1 |
325 |
+ $(BSD_INSTALL_MAN) man1/gen_packets.1 $(DESTDIR)$(MANDIR)/man1/gen_packets.1 |
326 |
+ $(BSD_INSTALL_MAN) man1/kissutil.1 $(DESTDIR)$(MANDIR)/man1/kissutil.1 |
327 |
+ $(BSD_INSTALL_MAN) man1/ll2utm.1 $(DESTDIR)$(MANDIR)/man1/ll2utm.1 |
328 |
+ $(BSD_INSTALL_MAN) man1/log2gpx.1 $(DESTDIR)$(MANDIR)//man1/log2gpx.1 |
329 |
+ $(BSD_INSTALL_MAN) man1/text2tt.1 $(DESTDIR)$(MANDIR)/man1/text2tt.1 |
330 |
+ $(BSD_INSTALL_MAN) man1/tt2text.1 $(DESTDIR)$(MANDIR)/man1/tt2text.1 |
331 |
+ $(BSD_INSTALL_MAN) man1/utm2ll.1 $(DESTDIR)$(MANDIR)/man1/utm2ll.1 |
332 |
# |
333 |
# Set group and mode of HID devices corresponding to C-Media USB Audio adapters. |
334 |
# This will allow us to use the CM108/CM119 GPIO pins for PTT. |
335 |
# |
336 |
- $(INSTALL) -D --mode=644 99-direwolf-cmedia.rules /etc/udev/rules.d/99-direwolf-cmedia.rules |
337 |
+# $(BSD_INSTALL_DATA) 99-direwolf-cmedia.rules /etc/udev/rules.d/99-direwolf-cmedia.rules |
338 |
# |
339 |
@echo " " |
340 |
@echo "If this is your first install, not an upgrade, type this to put a copy" |
341 |
@@ -693,7 +703,7 @@ install : $(APPS) direwolf.conf tocalls. |
342 |
# Put sample configuration & startup files in home directory. |
343 |
# This step would be done as ordinary user. |
344 |
# Some people like to put the direwolf config file in /etc/ax25. |
345 |
-# Note that all of these are also in $(DESTDIR)/share/doc/direwolf/examples/. |
346 |
+# Note that all of these are also in $(DESTDIR)$(INSTALLDIR)/share/doc/direwolf/examples/. |
347 |
|
348 |
# The Raspberry Pi has ~/Desktop but Ubuntu does not. |
349 |
|
350 |
@@ -724,7 +734,7 @@ endif |
351 |
|
352 |
.PHONY: install-rpi |
353 |
install-rpi : |
354 |
- ln -f -s $(DESTDIR)/share/applications/direwolf.desktop ~/Desktop/direwolf.desktop |
355 |
+ ln -f -s $(DESTDIR)$(SHAREDIR)/applications/direwolf.desktop ~/Desktop/direwolf.desktop |
356 |
|
357 |
|
358 |
|