meta-opendreambox: stop using PR
[opendreambox.git] / meta-opendreambox / recipes-multimedia / projectx / projectx / Makefile
1 OBJS = \
2         ./net/sourceforge/dvb/projectx/audio/AudioFormat.o \
3         ./net/sourceforge/dvb/projectx/audio/AudioFormatAAC.o \
4         ./net/sourceforge/dvb/projectx/audio/AudioFormatAC3.o \
5         ./net/sourceforge/dvb/projectx/audio/AudioFormatDTS.o \
6         ./net/sourceforge/dvb/projectx/audio/AudioFormatLPCM.o \
7         ./net/sourceforge/dvb/projectx/audio/AudioFormatMPA.o \
8         ./net/sourceforge/dvb/projectx/audio/AudioFormatWAV.o \
9         ./net/sourceforge/dvb/projectx/audio/MpaConverter.o \
10         ./net/sourceforge/dvb/projectx/audio/MpaDecoder.o \
11         ./net/sourceforge/dvb/projectx/common/Common.o \
12         ./net/sourceforge/dvb/projectx/common/GuiInterface.o \
13         ./net/sourceforge/dvb/projectx/common/GuiInterfaceIF.o \
14         ./net/sourceforge/dvb/projectx/common/JobCollection.o \
15         ./net/sourceforge/dvb/projectx/common/JobProcessing.o \
16         ./net/sourceforge/dvb/projectx/common/Keys.o \
17         ./net/sourceforge/dvb/projectx/common/Resource.o \
18         ./net/sourceforge/dvb/projectx/common/Settings.o \
19         ./net/sourceforge/dvb/projectx/common/Start.o \
20         ./net/sourceforge/dvb/projectx/io/BitWalker.o \
21         ./net/sourceforge/dvb/projectx/io/IDDBufferedOutputStream.o \
22         ./net/sourceforge/dvb/projectx/io/RawFile.o \
23         ./net/sourceforge/dvb/projectx/io/StandardBuffer.o \
24         ./net/sourceforge/dvb/projectx/net/WebInterface.o \
25         ./net/sourceforge/dvb/projectx/net/X_URLDecoder.o \
26         ./net/sourceforge/dvb/projectx/parser/CommonParsing.o \
27         ./net/sourceforge/dvb/projectx/parser/Gop.o \
28         ./net/sourceforge/dvb/projectx/parser/GopArray.o \
29         ./net/sourceforge/dvb/projectx/parser/HpFix.o \
30         ./net/sourceforge/dvb/projectx/parser/MainProcess.o \
31         ./net/sourceforge/dvb/projectx/parser/Scan.o \
32         ./net/sourceforge/dvb/projectx/parser/StreamBuffer.o \
33         ./net/sourceforge/dvb/projectx/parser/StreamConverter.o \
34         ./net/sourceforge/dvb/projectx/parser/StreamDemultiplexer.o \
35         ./net/sourceforge/dvb/projectx/parser/StreamParser.o \
36         ./net/sourceforge/dvb/projectx/parser/StreamParserBase.o \
37         ./net/sourceforge/dvb/projectx/parser/StreamParserESAudio.o \
38         ./net/sourceforge/dvb/projectx/parser/StreamParserESSubpicture.o \
39         ./net/sourceforge/dvb/projectx/parser/StreamParserESVideo.o \
40         ./net/sourceforge/dvb/projectx/parser/StreamParserPESPrimary.o \
41         ./net/sourceforge/dvb/projectx/parser/StreamParserPESSecondary.o \
42         ./net/sourceforge/dvb/projectx/parser/StreamParserPVA.o \
43         ./net/sourceforge/dvb/projectx/parser/StreamParserTS.o \
44         ./net/sourceforge/dvb/projectx/parser/StreamProcess.o \
45         ./net/sourceforge/dvb/projectx/parser/StreamProcessAudio.o \
46         ./net/sourceforge/dvb/projectx/parser/StreamProcessBase.o \
47         ./net/sourceforge/dvb/projectx/parser/StreamProcessLPCMAudio.o \
48         ./net/sourceforge/dvb/projectx/parser/StreamProcessSubpicture.o \
49         ./net/sourceforge/dvb/projectx/parser/StreamProcessTeletext.o \
50         ./net/sourceforge/dvb/projectx/parser/StripAudio.o \
51         ./net/sourceforge/dvb/projectx/parser/StripMedion.o \
52         ./net/sourceforge/dvb/projectx/parser/StripRelook.o \
53         ./net/sourceforge/dvb/projectx/parser/TS_PMTParser.o \
54         ./net/sourceforge/dvb/projectx/parser/VBI.o \
55         ./net/sourceforge/dvb/projectx/subtitle/Bitmap.o \
56         ./net/sourceforge/dvb/projectx/subtitle/BMP.o \
57         ./net/sourceforge/dvb/projectx/subtitle/CharSet.o \
58         ./net/sourceforge/dvb/projectx/subtitle/ColorAreas.o \
59         ./net/sourceforge/dvb/projectx/subtitle/DVBSubpicture.o \
60         ./net/sourceforge/dvb/projectx/subtitle/Subpicture.o \
61         ./net/sourceforge/dvb/projectx/subtitle/Sup2VobSub.o \
62         ./net/sourceforge/dvb/projectx/subtitle/Teletext.o \
63         ./net/sourceforge/dvb/projectx/subtitle/UnicodeWriter.o \
64         ./net/sourceforge/dvb/projectx/thirdparty/Chapters.o \
65         ./net/sourceforge/dvb/projectx/thirdparty/D2V.o \
66         ./net/sourceforge/dvb/projectx/thirdparty/Ifo.o \
67         ./net/sourceforge/dvb/projectx/thirdparty/TS.o \
68         ./net/sourceforge/dvb/projectx/video/MpvDecoder.o \
69         ./net/sourceforge/dvb/projectx/video/Preview.o \
70         ./net/sourceforge/dvb/projectx/video/PreviewObject.o \
71         ./net/sourceforge/dvb/projectx/video/Video.o \
72         ./net/sourceforge/dvb/projectx/video/WSS.o \
73         ./net/sourceforge/dvb/projectx/xinput/DirType.o \
74         ./net/sourceforge/dvb/projectx/xinput/file/XInputDirectoryImpl.o \
75         ./net/sourceforge/dvb/projectx/xinput/file/XInputFileImpl.o \
76         ./net/sourceforge/dvb/projectx/xinput/FileType.o \
77         ./net/sourceforge/dvb/projectx/xinput/StreamInfo.o \
78         ./net/sourceforge/dvb/projectx/xinput/XInputDirectory.o \
79         ./net/sourceforge/dvb/projectx/xinput/XInputDirectoryIF.o \
80         ./net/sourceforge/dvb/projectx/xinput/XInputFile.o \
81         ./net/sourceforge/dvb/projectx/xinput/XInputFileIF.o \
82         ./net/sourceforge/dvb/projectx/xinput/XInputStream.o
83
84 all: projectx
85
86 projectx: $(OBJS)
87         $(CROSS_COMPILE)gcj $(JFLAGS) -c -o ac3.o --resource ac3.bin ../resources/ac3.bin
88         $(CROSS_COMPILE)gcj $(JFLAGS) -c -o pjxresources_en.o --resource pjxresources_en.properties ../resources/pjxresources_en.properties
89         $(CROSS_COMPILE)gcj $(JFLAGS) $(OBJS) pjxresources_en.o ac3.o -o projectx \
90                 --main=net.sourceforge.dvb.projectx.common.Start \
91                 -Djava.awt.headless=true $(LDFLAGS) $(GCJ_ARCHIVES)
92         $(CROSS_COMPILE)strip --strip-all projectx
93
94 projectx-static: $(OBJS)
95         $(CROSS_COMPILE)gcj $(JFLAGS) -c -o ac3.o --resource ac3.bin ../resources/ac3.bin
96         $(CROSS_COMPILE)gcj $(JFLAGS) -c -o pjxresources_en.o --resource pjxresources_en.properties ../resources/pjxresources_en.properties
97         $(CROSS_COMPILE)gcj $(JFLAGS) $(OBJS) pjxresources_en.o ac3.o -Djava.awt.headless=true --main=net.sourceforge.dvb.projectx.common.Start -save-temps
98         $(CROSS_COMPILE)gcc -o projectx $(OBJS) pjxresources_en.o ac3.o ./net.sourceforge.dvb.projectx.common.Startmain.i \
99         -shared-libgcc -Wl,-non_shared -lgcj -Wl,-call_shared -lsupc++ -Wl,--as-needed -lgcc_s -lpthread -lc -lm -ldl -lrt -Wl,--no-as-needed
100         $(CROSS_COMPILE)strip --strip-all projectx
101
102 clean:
103         rm -rf $(OBJS)
104         rm *.o *.i *.s
105         rm projectx
106
107 %.o: %.java
108         $(CROSS_COMPILE)gcj $(JFLAGS) -c $< -o $@