3 AM_JAVACFLAGS=-encoding UTF-8 -Xlint:deprecation
7 altoslibdir=$(libdir)/altos
9 CLASSPATH_ENV=mkdir -p $(JAVAROOT); CLASSPATH="$(JAVAROOT):../altoslib/*:../altosuilib/*:../libaltos:$(JCOMMON)/jcommon.jar:$(JFREECHART)/jfreechart.jar:$(FREETTS)/freetts.jar"
15 AltosBTDeviceIterator.java \
22 AltosChannelMenu.java \
23 AltosCompanionInfo.java \
25 AltosConfigFreqUI.java \
27 AltosConfigPyroUI.java \
28 AltosConfigureUI.java \
30 AltosConfigTDUI.java \
35 AltosDeviceUIDialog.java \
36 AltosDisplayThread.java \
37 AltosEepromDelete.java \
38 AltosEepromDownload.java \
39 AltosEepromList.java \
40 AltosEepromManage.java \
41 AltosEepromMonitor.java \
42 AltosEepromSelect.java \
45 AltosFlightDisplay.java \
46 AltosFlightInfoTableModel.java \
47 AltosFlightStats.java \
48 AltosFlightStatsTable.java \
49 AltosFlightStatus.java \
50 AltosFlightStatusUpdate.java \
55 AltosIdleMonitorUI.java \
65 AltosUIPreferencesBackend.java \
67 AltosRomconfigUI.java \
70 AltosSerialInUseException.java \
72 AltosSiteMapPreload.java \
73 AltosSiteMapCache.java \
74 AltosSiteMapTile.java \
78 AltosGraphDataPoint.java \
79 AltosGraphDataSet.java \
81 AltosDataChooser.java \
101 altoslib_$(ALTOSLIB_VERSION).jar
104 altosuilib_$(ALTOSUILIB_VERSION).jar
113 FATJAR=altosui-fat.jar
116 ICONDIR=$(top_srcdir)/icon
119 $(ICONDIR)/altus-metrum-16.png \
120 $(ICONDIR)/altus-metrum-32.png \
121 $(ICONDIR)/altus-metrum-48.png \
122 $(ICONDIR)/altus-metrum-64.png \
123 $(ICONDIR)/altus-metrum-128.png \
124 $(ICONDIR)/altus-metrum-256.png
126 ICONS= $(ICONDIR)/redled.png $(ICONDIR)/redoff.png \
127 $(ICONDIR)/greenled.png $(ICONDIR)/greenoff.png \
128 $(ICONDIR)/grayled.png $(ICONDIR)/grayoff.png
130 # icon base names for jar
131 ICONJAR= -C $(ICONDIR) altus-metrum-16.png \
132 -C $(ICONDIR) altus-metrum-32.png \
133 -C $(ICONDIR) altus-metrum-48.png \
134 -C $(ICONDIR) altus-metrum-64.png \
135 -C $(ICONDIR) altus-metrum-128.png \
136 -C $(ICONDIR) altus-metrum-256.png \
137 -C $(ICONDIR) redled.png -C $(ICONDIR) redoff.png \
138 -C $(ICONDIR) greenled.png -C $(ICONDIR) greenoff.png \
139 -C $(ICONDIR) grayon.png -C $(ICONDIR) grayled.png
141 WINDOWS_ICON=$(ICONDIR)/altus-metrum.ico
144 FIRMWARE_TD_0_2=$(top_srcdir)/src/teledongle-v0.2-$(VERSION).ihx
145 FIRMWARE_TD=$(FIRMWARE_TD_0_2)
147 FIRMWARE_TM_1_0=$(top_srcdir)/src/telemetrum-v1.0-$(VERSION).ihx
148 FIRMWARE_TM_1_1=$(top_srcdir)/src/telemetrum-v1.1-$(VERSION).ihx
149 FIRMWARE_TM_1_2=$(top_srcdir)/src/telemetrum-v1.2-$(VERSION).ihx
150 FIRMWARE_TM=$(FIRMWARE_TM_1_0) $(FIRMWARE_TM_1_1) $(FIRMWARE_TM_1_2)
152 FIRMWARE_TELEMINI_1_0=$(top_srcdir)/src/telemini-v1.0-$(VERSION).ihx
153 FIRMWARE_TELEMINI=$(FIRMWARE_TELEMINI_1_0)
155 FIRMWARE=$(FIRMWARE_TM) $(FIRMWARE_TELEMINI) $(FIRMWARE_TD)
157 ALTUSMETRUM_DOC=$(top_srcdir)/doc/altusmetrum.pdf
158 ALTOS_DOC=$(top_srcdir)/doc/altos.pdf
159 TELEMETRY_DOC=$(top_srcdir)/doc/telemetry.pdf
160 TEMPLATE_DOC=$(top_srcdir)/doc/telemetrum-outline.pdf $(top_srcdir)/doc/megametrum-outline.pdf
162 DOC=$(ALTUSMETRUM_DOC) $(ALTOS_DOC) $(TELEMETRY_DOC) $(TEMPLATE_DOC)
164 # Distribution targets
165 LINUX_DIST=Altos-Linux-$(VERSION).tar.bz2
166 MACOSX_DIST=Altos-Mac-$(VERSION).dmg
167 WINDOWS_DIST=Altos-Windows-$(VERSION_DASH).exe
169 FAT_FILES=$(FATJAR) $(ALTOSLIB_CLASS) $(ALTOSUILIB_CLASS) $(FREETTS_CLASS) $(JFREECHART_CLASS) $(JCOMMON_CLASS)
171 LINUX_FILES=$(FAT_FILES) libaltos.so $(FIRMWARE) $(DOC)
172 LINUX_EXTRA=altosui-fat
174 MACOSX_INFO_PLIST=Info.plist
175 MACOSX_FILES=$(FAT_FILES) libaltos.dylib $(MACOSX_INFO_PLIST) ReadMe-Mac.rtf
176 MACOSX_EXTRA=$(FIRMWARE)
178 WINDOWS_FILES=$(FAT_FILES) altos.dll altos64.dll $(top_srcdir)/telemetrum.inf $(WINDOWS_ICON)
180 all-local: classes/altosui $(JAR) altosui altosui-test altosui-jdb
183 -rm -rf classes $(JAR) $(FATJAR) \
184 $(LINUX_DIST) $(MACOSX_DIST) windows $(WINDOWS_DIST) $(ALTOSLIB_CLASS) $(ALTOSUILIB_CLASS) $(FREETTS_CLASS) \
185 $(JFREECHART_CLASS) $(JCOMMON_CLASS) $(LIBALTOS) Manifest.txt Manifest-fat.txt altos-windows.log \
186 altosui altosui-test altosui-jdb macosx linux
190 FATTARGET=$(FATDIR)/$(VERSION)
192 LINUX_DIST_TARGET=$(FATTARGET)/$(LINUX_DIST)
193 MACOSX_DIST_TARGET=$(FATTARGET)/$(MACOSX_DIST)
194 WINDOWS_DIST_TARGET=$(FATTARGET)/$(WINDOWS_DIST)
196 fat: $(LINUX_DIST_TARGET) $(MACOSX_DIST_TARGET) $(WINDOWS_DIST_TARGET)
198 $(LINUX_DIST_TARGET): $(LINUX_DIST)
199 mkdir -p $(FATTARGET)
202 $(MACOSX_DIST_TARGET): $(MACOSX_DIST)
203 mkdir -p $(FATTARGET)
206 $(WINDOWS_DIST_TARGET): $(WINDOWS_DIST)
207 mkdir -p $(FATTARGET)
211 fat: $(LINUX_DIST) $(MACOSX_DIST) $(WINDOWS_DIST)
215 altosuidir=$(datadir)/java
217 install-altosuiJAVA: altosui.jar
219 test -z "$(altosuidir)" || $(MKDIR_P) "$(DESTDIR)$(altosuidir)"
220 echo " $(INSTALL_DATA)" "$<" "'$(DESTDIR)$(altosuidir)/altosui.jar'"; \
221 $(INSTALL_DATA) "$<" "$(DESTDIR)$(altosuidir)"
224 mkdir -p classes/altosui
226 $(JAR): classaltosui.stamp Manifest.txt $(JAVA_ICONS) $(ALTOSLIB_CLASS) $(ALTOSUILIB_CLASS)
227 jar cfm $@ Manifest.txt \
230 -C ../libaltos libaltosJNI
232 $(FATJAR): classaltosui.stamp Manifest-fat.txt $(ALTOSLIB_CLASS) $(ALTOSUILIB_CLASS) $(FREETTS_CLASS) $(JFREECHART_CLASS) $(JCOMMON_CLASS) $(LIBALTOS) $(JAVA_ICONS)
233 jar cfm $@ Manifest-fat.txt \
236 -C ../libaltos libaltosJNI
238 Manifest.txt: Makefile
239 echo 'Main-Class: altosui.AltosUI' > $@
240 echo "Class-Path: $(ALTOSLIB_CLASS) $(ALTOSUILIB_CLASS) $(FREETTS)/freetts.jar $(JCOMMON)/jcommon.jar $(JFREECHART)/jfreechart.jar" >> $@
243 echo 'Main-Class: altosui.AltosUI' > $@
244 echo "Class-Path: $(ALTOSLIB_CLASS) $(ALTOSUILIB_CLASS) freetts.jar jcommon.jar jfreechart.jar" >> $@
247 echo "#!/bin/sh" > $@
248 echo 'exec java -Djava.library.path="$(altoslibdir)" -jar "$(altosuidir)/altosui.jar" "$$@"' >> $@
251 altosui-test: Makefile
252 echo "#!/bin/sh" > $@
253 echo 'exec java -Djava.library.path="../libaltos/.libs" -jar altosui.jar "$$@"' >> $@
256 altosui-jdb: Makefile
257 echo "#!/bin/sh" > $@
258 echo 'exec jdb -classpath "classes:./*:../libaltos:$(FREETTS)/freetts.jar:$(JCOMMON)/jcommon.jar:$(JFREECHART)/jfreechart.jar" -Djava.library.path="../libaltos/.libs" altosui/AltosUI "$$@"' >> $@
261 libaltos.so: build-libaltos
263 $(LN_S) ../libaltos/.libs/"$@" .
267 $(LN_S) ../libaltos/"$@" .
269 altos.dll: ../libaltos/altos.dll
271 $(LN_S) ../libaltos/"$@" .
273 altos64.dll: ../libaltos/altos64.dll
275 $(LN_S) ../libaltos/"$@" .
277 ../libaltos/.libs/libaltos.so: build-libaltos
279 ../libaltos/altos.dll: build-altos-dll
281 ../libaltos/altos64.dll: build-altos64-dll
284 +cd ../libaltos && make libaltos.la
286 +cd ../libaltos && make altos.dll
289 +cd ../libaltos && make altos64.dll
293 $(LN_S) ../altoslib/"$@" .
297 $(LN_S) ../altosuilib/"$@" .
301 $(LN_S) "$(FREETTS)"/"$@" .
305 $(LN_S) "$(JFREECHART)"/"$@" .
309 $(LN_S) "$(JCOMMON)"/"$@" .
311 $(LINUX_DIST): $(LINUX_FILES) $(LINUX_EXTRA)
315 cp -p $(LINUX_FILES) linux/AltOS
316 cp -p altosui-fat linux/AltOS/altosui
317 chmod +x linux/AltOS/altosui
318 tar cjf $@ -C linux AltOS
320 $(MACOSX_DIST): $(MACOSX_FILES) $(MACOSX_EXTRA) Makefile
324 cp -a AltosUI.app macosx/
325 cp -a ReadMe-Mac.rtf macosx/ReadMe.rtf
326 cp -p Info.plist macosx/AltosUI.app/Contents
327 mkdir -p macosx/AltOS-$(VERSION) macosx/AltosUI.app/Contents/Resources/Java
328 cp -p $(FATJAR) macosx/AltosUI.app/Contents/Resources/Java/altosui.jar
329 cp -p libaltos.dylib macosx/AltosUI.app/Contents/Resources/Java
330 cp -p $(ALTOSLIB_CLASS) macosx/AltosUI.app/Contents/Resources/Java
331 cp -p $(ALTOSUILIB_CLASS) macosx/AltosUI.app/Contents/Resources/Java
332 cp -p $(FREETTS_CLASS) macosx/AltosUI.app/Contents/Resources/Java
333 cp -p $(JFREECHART_CLASS) macosx/AltosUI.app/Contents/Resources/Java
334 cp -p $(JCOMMON_CLASS) macosx/AltosUI.app/Contents/Resources/Java
335 cp -p $(MACOSX_EXTRA) macosx/AltOS-$(VERSION)
336 genisoimage -D -V AltOS-$(VERSION) -no-pad -r -apple -o $@ macosx
338 $(WINDOWS_DIST): $(WINDOWS_FILES) altos-windows.nsi
340 makensis -Oaltos-windows.log "-XOutFile $@" "-DVERSION=$(VERSION)" altos-windows.nsi