altos/telefireone-v2.0: Remove build of ao_product.h from Makefile
[fw/altos] / altosuilib / Makefile.am
1 AM_JAVACFLAGS=-target 1.6 -encoding UTF-8 -Xlint:deprecation -Xlint:unchecked -source 6
2
3 JAVAROOT=bin
4
5 CLASSPATH_ENV=mkdir -p $(JAVAROOT); CLASSPATH="$(JAVAROOT):../altoslib/*:../libaltos:/usr/share/java/*"
6
7 SRC=.
8
9 altosuilibdir = $(datadir)/java
10
11 altosuilib_JAVA = \
12         AltosDevice.java \
13         AltosDeviceDialog.java \
14         AltosPositionListener.java \
15         AltosUIAccelCal.java \
16         AltosUIConfigure.java \
17         AltosUIAxis.java \
18         AltosUIDataMissing.java \
19         AltosUIDataPoint.java \
20         AltosUIDataSet.java \
21         AltosUIGrapher.java \
22         AltosUIDialog.java \
23         AltosUIEnable.java \
24         AltosUIFrame.java \
25         AltosUILib.java \
26         AltosUIListener.java \
27         AltosUIMarker.java \
28         AltosUIPreferencesBackend.java \
29         AltosUIPreferences.java \
30         AltosUIFlightSeries.java \
31         AltosUIGraph.java \
32         AltosGraph.java \
33         AltosShapeListener.java \
34         AltosUSBDevice.java \
35         AltosVoice.java \
36         AltosDisplayThread.java \
37         AltosDeviceUIDialog.java \
38         AltosSerial.java \
39         AltosSerialInUseException.java \
40         AltosConfigFreqUI.java \
41         AltosScanUI.java \
42         AltosEepromDelete.java \
43         AltosEepromGrapher.java \
44         AltosEepromManage.java \
45         AltosEepromMonitorUI.java \
46         AltosEepromSelect.java \
47         AltosCSVUI.java \
48         AltosDataChooser.java \
49         AltosLights.java \
50         AltosLed.java \
51         AltosFlashUI.java \
52         AltosRomconfigUI.java \
53         AltosInfoTable.java \
54         AltosFlightInfoTableModel.java \
55         AltosFlightStatsTable.java \
56         AltosBTDevice.java \
57         AltosBTDeviceIterator.java \
58         AltosBTManage.java \
59         AltosBTKnown.java \
60         AltosUILineStyle.java \
61         AltosUIMap.java \
62         AltosUIMapPreload.java \
63         AltosUIFlightTab.java \
64         AltosUIIndicator.java \
65         AltosUIUnitsIndicator.java \
66         AltosUIVoltageIndicator.java \
67         AltosUIFreqList.java \
68         AltosUITelemetryList.java \
69         AltosUIRateList.java \
70         AltosUIImage.java \
71         AltosUITimeSeries.java \
72         OSXAdapter.java
73
74 JAR=altosuilib_$(ALTOSUILIB_VERSION).jar
75
76 # Icons
77 ICONDIR=$(top_srcdir)/icon
78
79 ICONS=  $(ICONDIR)/redled.png $(ICONDIR)/redoff.png \
80         $(ICONDIR)/greenled.png $(ICONDIR)/greenoff.png \
81         $(ICONDIR)/grayon.png $(ICONDIR)/grayled.png
82
83 # icon base names for jar
84 ICONJAR= -C $(ICONDIR) redled.png -C $(ICONDIR) redoff.png \
85         -C $(ICONDIR) greenled.png -C $(ICONDIR) greenoff.png \
86         -C $(ICONDIR) grayon.png -C $(ICONDIR) grayled.png
87
88 all-local: $(JAR)
89
90 clean-local:
91         -rm -rf $(JAVAROOT) altosuilib_*.jar
92
93 install-altosuilibJAVA: $(JAR)
94         @$(NORMAL_INSTALL)
95         test -z "$(altosuilibdir)" || $(MKDIR_P) "$(DESTDIR)$(altosuilibdir)"
96         echo " $(INSTALL_DATA)" "$(JAR)" "'$(DESTDIR)$(altosuilibdir)/$(JAR)"; \
97         $(INSTALL_DATA) "$(JAR)" "$(DESTDIR)$(altosuilibdir)"
98
99 $(JAVAROOT):
100         mkdir -p $(JAVAROOT)
101
102 $(JAR): classaltosuilib.stamp $(ICONS)
103         jar cf $@ $(ICONJAR) -C $(JAVAROOT) .
104 if STRIP_NONDETERMINISM
105         $(STRIP_NONDETERMINISM) $@
106 endif