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 += 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
\r
49 TIOBJECT = ticonfig.o
\r
50 CROSSLIBS = ../jpeg/jpeg-6b/libjpeg.a
\r
51 INCLUDES = -I../jpeg/jpeg-6b -DVOMP_PLATTFORM_MVP
\r
55 ifeq ($(vomp_platform),raspberry)
\r
56 $(info Raspberry pi flags)
\r
58 LIBS = -L/opt/vc/lib -lpthread -lrt -lEGL -lGLESv2 -lopenmaxil -lbcm_host -lavcodec -lavformat -lavutil
\r
60 OBJECTS += main.o threadp.o osdopengl.o surfaceopengl.o ledraspberry.o mtdraspberry.o videovpeogl.o audiovpe.o wjpegsimple.o remotelinux.o
\r
63 INCLUDES = -DVOMP_PLATTFORM_RASPBERRY -I/opt/vc/include
\r
67 .PHONY: clean fresh all install strip
\r
70 fresh: clean default
\r
72 vompclient: $(OBJECTS) $(TIOBJECT) $(CROSSLIBS)
\r
73 $(LD) $(LDFLAGS) $(LIBPATHS) $(RELEASE) -o vompclient $(TIOBJECT) $(OBJECTS) $(CROSSLIBS) $(LIBS)
\r
77 $(CC) $(CXXFLAGS_REL) -c -o ticonfig.o ticonfig.c
\r
83 rm -f /mnt/auto/defiant/diskless/nfs/mvp/vompclient
\r
84 cp vompclient /mnt/auto/defiant/diskless/nfs/mvp
\r
87 rm -f /diskless/nfs/wmvp/vompclient
\r
88 cp vompclient /diskless/nfs/wmvp
\r
91 rm -f /mnt/auto/defiant/diskless/nfs/mvp-dev/vompclient
\r
92 cp vompclient /mnt/auto/defiant/diskless/nfs/mvp-dev
\r
95 ../../gdb/gdb-6.7/gdb/gdb /mnt/auto/defiant/diskless/nfs/mvp/vompclient /mnt/auto/defiant/diskless/nfs/mvp/core.*
\r
98 ../../gdb/gdb-6.7/gdb/gdb /mnt/auto/defiant/diskless/nfs/mvp-dev/vompclient /mnt/auto/defiant/diskless/nfs/mvp-dev/core.*
\r
100 dev: CXXFLAGS := $(CXXFLAGS_DEV)
\r
103 release: CXXFLAGS := $(CXXFLAGS_REL)
\r
104 release: clean vompclient strip
\r
107 $(CC) -MM $(INCLUDES) $(OBJECTS:%.o=%.cc) > deps
\r
112 rm -f *.o deps vompclient *~ fonts/*.o fonts/*~
\r