1 # valid platforms are raspberry and mvp
2 vomp_platform=$(shell ./select-platform)
3 $(info selected $(vomp_platform))
6 #uncomment the line below, if you want to vomp application like, without a reboot option, automatically set for windows!
7 #vomp_options+= -DVOMP_HAS_EXIT
8 ifeq ($(vomp_platform),mvp)
10 $(info MVP crosscompiler)
11 include ../crosstool/cross-var
19 ifeq ($(vomp_platform),raspberry)
21 $(info raspberry normal compiler)
31 CXXFLAGS_DEV = -g -O0 -Wall -Wshadow -DDEV -D_GNU_SOURCE $(INCLUDES) $(vomp_options)
32 CXXFLAGS_REL = -O3 -Wall -Wshadow -D_GNU_SOURCE $(INCLUDES) $(vomp_options)
38 $(info Setting up objects)
39 # This is the only thing windows and linux share
42 OBJECTSWIN = threadwin.o remotewin.o ledwin.o mtdwin.o videowin.o audiowin.o osdwin.o surfacewin.o
47 ifeq ($(vomp_platform),mvp)
49 LDFLAGS = -Wall -static
52 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
54 CROSSLIBS = ../jpeg/jpeg-6b/libjpeg.a
55 INCLUDES = -I../jpeg/jpeg-6b -DVOMP_PLATTFORM_MVP
60 ifeq ($(vomp_platform),raspberry)
61 $(info Raspberry pi flags)
62 LDFLAGS = -Wall -Wl,--format=binary -Wl,other/vdrhires.jpg -Wl,other/wallpaper720p.jpg -Wl,--format=default
63 LIBS = -L/opt/vc/lib -lpthread -lrt -lEGL -lOpenVG -lopenmaxil -lbcm_host -lavformat -lavcodec -lavutil
65 OBJECTS += main.o threadp.o osdvector.o surfacevector.o osdopenvg.o ledraspberry.o mtdraspberry.o videoomx.o audioomx.o wjpegsimple.o remotelinux.o
66 LIBS+= -lfreetype -lMagick++
68 INCLUDES = -DVOMP_PLATTFORM_RASPBERRY -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/usr/include/freetype2 -I/usr/include/ImageMagick
69 CXXFLAGS_DEV += -D__STDC_CONSTANT_MACROS
70 CXXFLAGS_REL += -D__STDC_CONSTANT_MACROS
74 .PHONY: clean fresh all install strip
79 vompclient: $(OBJECTS) $(TIOBJECT) $(CROSSLIBS)
80 $(LD) $(LDFLAGS) $(LIBPATHS) $(RELEASE) $(vomp_options) -o vompclient $(TIOBJECT) $(OBJECTS) $(CROSSLIBS) $(LIBS)
84 $(CC) $(CXXFLAGS_REL) -c -o ticonfig.o ticonfig.c
90 rm -f target-mvp/vompclient
91 cp vompclient target-mvp/vompclient
94 rm -f target-wmvp/vompclient
95 cp vompclient target-wmvp/vompclient
98 rm -f target-mvp-dev/vompclient
99 cp vompclient target-mvp-dev/vompclient
102 ../../gdb/gdb-6.7/gdb/gdb target-mvp/vompclient target-mvp/core.*
105 ../../gdb/gdb-6.7/gdb/gdb target-mvp-dev/vompclient target-mvp-dev/core.*
107 dev: CXXFLAGS := $(CXXFLAGS_DEV)
110 release: CXXFLAGS := $(CXXFLAGS_REL)
111 release: clean vompclient strip
114 $(CC) -MM $(INCLUDES) $(OBJECTS:%.o=%.cc) > deps
119 rm -f *.o deps vompclient *~ fonts/*.o fonts/*~ teletxt/*.o