1 vomp_platform =raspberry
\r
2 # valid platforms are raspberry and mvp
\r
4 ifeq ($(vomp_platform),mvp)
\r
6 $(info MVP crosscompiler)
\r
7 include ../crosstool/cross-var
\r
15 ifeq ($(vomp_platform),raspberry)
\r
17 $(info raspberry normal compiler)
\r
27 CXXFLAGS_DEV = -g -O0 -Wall -Wshadow -DDEV -D_GNU_SOURCE $(INCLUDES)
\r
28 CXXFLAGS_REL = -O3 -Wall -Wshadow -D_GNU_SOURCE $(INCLUDES)
\r
34 $(info Setting up objects)
\r
35 # This is the only thing windows and linux share
\r
38 OBJECTSWIN = threadwin.o remotewin.o ledwin.o mtdwin.o videowin.o audiowin.o osdwin.o surfacewin.o
\r
40 OBJECTS = $(OBJECTS1)
\r
43 ifeq ($(vomp_platform),mvp)
\r
45 LDFLAGS = -Wall -static
\r
46 LIBS = -lpthread -lrt
\r
48 OBJECTS += wwss.o main.o threadp.o remotemvp.o ledmvp.o mtdmvp.o videomvp.o audiomvp.o osdmvp.o surfacemvp.o vmedialist.o vcolourtuner.o vmediaview.o vvideomedia.o mediafile.o
\r
49 TIOBJECT = ticonfig.o
\r
50 CROSSLIBS = ../jpeg/jpeg-6b/libjpeg.a
\r
51 INCLUDES = -I../jpeg/jpeg-6b -DVOMP_PLATTFORM_MVP
\r
56 ifeq ($(vomp_platform),raspberry)
\r
57 $(info Raspberry pi flags)
\r
58 LDFLAGS = -Wall -Wl,--format=binary -Wl,fonts/sourcesans.ttf -Wl,other/vdrhires.jpg -Wl,other/wallpaper720p.jpg -Wl,--format=default
\r
59 LIBS = -L/opt/vc/lib -lpthread -lrt -lEGL -lOpenVG -lopenmaxil -lbcm_host -lavformat -lavcodec -lavutil
\r
61 OBJECTS += main.o threadp.o osdvector.o surfacevector.o osdopenvg.o ledraspberry.o mtdraspberry.o videoomx.o audioomx.o wjpegsimple.o remotelinux.o
\r
62 LIBS+= -lfreetype -lMagick++ -lMagickCore
\r
64 INCLUDES = -DVOMP_PLATTFORM_RASPBERRY -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/usr/include/freetype2 -I/usr/include/ImageMagick
\r
65 CXXFLAGS_DEV += -D__STDC_CONSTANT_MACROS
\r
66 CXXFLAGS_REL += -D__STDC_CONSTANT_MACROS
\r
70 .PHONY: clean fresh all install strip
\r
73 fresh: clean default
\r
75 vompclient: $(OBJECTS) $(TIOBJECT) $(CROSSLIBS)
\r
76 $(LD) $(LDFLAGS) $(LIBPATHS) $(RELEASE) -o vompclient $(TIOBJECT) $(OBJECTS) $(CROSSLIBS) $(LIBS)
\r
80 $(CC) $(CXXFLAGS_REL) -c -o ticonfig.o ticonfig.c
\r
86 rm -f /mnt/auto/defiant/diskless/nfs/mvp/vompclient
\r
87 cp vompclient /mnt/auto/defiant/diskless/nfs/mvp
\r
90 rm -f /diskless/nfs/wmvp/vompclient
\r
91 cp vompclient /diskless/nfs/wmvp
\r
94 rm -f /mnt/auto/defiant/diskless/nfs/mvp-dev/vompclient
\r
95 cp vompclient /mnt/auto/defiant/diskless/nfs/mvp-dev
\r
98 ../../gdb/gdb-6.7/gdb/gdb /mnt/auto/defiant/diskless/nfs/mvp/vompclient /mnt/auto/defiant/diskless/nfs/mvp/core.*
\r
101 ../../gdb/gdb-6.7/gdb/gdb /mnt/auto/defiant/diskless/nfs/mvp-dev/vompclient /mnt/auto/defiant/diskless/nfs/mvp-dev/core.*
\r
103 dev: CXXFLAGS := $(CXXFLAGS_DEV)
\r
106 release: CXXFLAGS := $(CXXFLAGS_REL)
\r
107 release: clean vompclient strip
\r
110 $(CC) -MM $(INCLUDES) $(OBJECTS:%.o=%.cc) > deps
\r
115 rm -f *.o deps vompclient *~ fonts/*.o fonts/*~
\r