1 vomp_platform =raspberry
2 # valid platforms are raspberry and mvp
4 #uncomment the line below, if you want to vomp application like, without a reboot option, automatically set for windows!
5 #vomp_options+= -DVOMP_HAS_EXIT
6 ifeq ($(vomp_platform),mvp)
8 $(info MVP crosscompiler)
9 include ../crosstool/cross-var
17 ifeq ($(vomp_platform),raspberry)
19 $(info raspberry normal compiler)
29 CXXFLAGS_DEV = -g -O0 -Wall -Wshadow -DDEV -D_GNU_SOURCE $(INCLUDES)
30 CXXFLAGS_REL = -O3 -Wall -Wshadow -D_GNU_SOURCE $(INCLUDES)
36 $(info Setting up objects)
37 # This is the only thing windows and linux share
40 OBJECTSWIN = threadwin.o remotewin.o ledwin.o mtdwin.o videowin.o audiowin.o osdwin.o surfacewin.o
45 ifeq ($(vomp_platform),mvp)
47 LDFLAGS = -Wall -static
50 OBJECTS += wwss.o main.o threadp.o remotemvp.o ledmvp.o mtdmvp.o videomvp.o audiomvp.o osdmvp.o surfacemvp.o wjpegcomplex.o vmedialist.o vcolourtuner.o vmediaview.o vvideomedia.o
52 CROSSLIBS = ../jpeg/jpeg-6b/libjpeg.a
53 INCLUDES = -I../jpeg/jpeg-6b -DVOMP_PLATTFORM_MVP
58 ifeq ($(vomp_platform),raspberry)
59 $(info Raspberry pi flags)
60 LDFLAGS = -Wall -Wl,--format=binary -Wl,fonts/sourcesans.ttf -Wl,other/vdrhires.jpg -Wl,other/wallpaper720p.jpg -Wl,--format=default
61 LIBS = -L/opt/vc/lib -lpthread -lrt -lEGL -lOpenVG -lopenmaxil -lbcm_host -lavformat -lavcodec -lavutil
63 OBJECTS += main.o threadp.o osdvector.o surfacevector.o osdopenvg.o ledraspberry.o mtdraspberry.o videoomx.o audioomx.o wjpegsimple.o remotelinux.o
64 LIBS+= -lfreetype -lMagick++
66 INCLUDES = -DVOMP_PLATTFORM_RASPBERRY -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/usr/include/freetype2 -I/usr/include/ImageMagick
67 CXXFLAGS_DEV += -D__STDC_CONSTANT_MACROS
68 CXXFLAGS_REL += -D__STDC_CONSTANT_MACROS
72 .PHONY: clean fresh all install strip
77 vompclient: $(OBJECTS) $(TIOBJECT) $(CROSSLIBS)
78 $(LD) $(LDFLAGS) $(LIBPATHS) $(RELEASE) -o vompclient $(TIOBJECT) $(OBJECTS) $(CROSSLIBS) $(LIBS)
82 $(CC) $(CXXFLAGS_REL) -c -o ticonfig.o ticonfig.c
88 rm -f /mnt/auto/defiant/diskless/nfs/mvp/vompclient
89 cp vompclient /mnt/auto/defiant/diskless/nfs/mvp
92 rm -f /diskless/nfs/wmvp/vompclient
93 cp vompclient /diskless/nfs/wmvp
96 rm -f /mnt/auto/defiant/diskless/nfs/mvp-dev/vompclient
97 cp vompclient /mnt/auto/defiant/diskless/nfs/mvp-dev
100 ../../gdb/gdb-6.7/gdb/gdb /mnt/auto/defiant/diskless/nfs/mvp/vompclient /mnt/auto/defiant/diskless/nfs/mvp/core.*
103 ../../gdb/gdb-6.7/gdb/gdb /mnt/auto/defiant/diskless/nfs/mvp-dev/vompclient /mnt/auto/defiant/diskless/nfs/mvp-dev/core.*
105 dev: CXXFLAGS := $(CXXFLAGS_DEV)
108 release: CXXFLAGS := $(CXXFLAGS_REL)
109 release: clean vompclient strip
112 $(CC) -MM $(INCLUDES) $(vomp_options) $(OBJECTS:%.o=%.cc) > deps
117 rm -f *.o deps vompclient *~ fonts/*.o fonts/*~ teletxt/*.o