include ../crosstool/cross-var CC=$(CROSS)gcc STRIP=$(CROSS)strip CXX=$(CROSS)g++ LD=$(CROSS)g++ INCLUDES = -I../jpeg/jpeg-6b CXXFLAGS_DEV = -g -O0 -Wall -Wshadow -DDEV -D_GNU_SOURCE $(INCLUDES) CXXFLAGS_REL = -O3 -Wall -Wshadow -D_GNU_SOURCE $(INCLUDES) LDFLAGS = -Wall -static LIBPATHS = LIBS = -lpthread -lrt CROSSLIBS = ../jpeg/jpeg-6b/libjpeg.a # This is the only thing windows and linux share include objects.mk OBJECTSMVP = main.o threadp.o remotemvp.o ledmvp.o mtdmvp.o videomvp.o audiomvp.o osdmvp.o surfacemvp.o OBJECTSWIN = threadwin.o remotewin.o ledwin.o mtdwin.o videowin.o audiowin.o osdwin.o surfacewin.o OBJECTS = $(OBJECTS1) $(OBJECTSMVP) .PHONY: clean fresh all install strip default: dev fresh: clean default vompclient: $(OBJECTS) ticonfig.o $(CROSSLIBS) $(LD) $(LDFLAGS) $(LIBPATHS) $(RELEASE) -o vompclient ticonfig.o $(OBJECTS) $(CROSSLIBS) $(LIBS) # A slight hash up ticonfig.o: $(CC) $(CXXFLAGS_REL) -c -o ticonfig.o ticonfig.c strip: $(STRIP) vompclient install: rm -f /mnt/auto/defiant/diskless/nfs/mvp/vompclient cp vompclient /mnt/auto/defiant/diskless/nfs/mvp install-wmp: rm -f /diskless/nfs/wmvp/vompclient cp vompclient /diskless/nfs/wmvp install-dev: rm -f /mnt/auto/defiant/diskless/nfs/mvp-dev/vompclient cp vompclient /mnt/auto/defiant/diskless/nfs/mvp-dev debug: ../../gdb/gdb-6.7/gdb/gdb /mnt/auto/defiant/diskless/nfs/mvp/vompclient /mnt/auto/defiant/diskless/nfs/mvp/core.* debug2: ../../gdb/gdb-6.7/gdb/gdb /mnt/auto/defiant/diskless/nfs/mvp-dev/vompclient /mnt/auto/defiant/diskless/nfs/mvp-dev/core.* dev: CXXFLAGS := $(CXXFLAGS_DEV) dev: vompclient release: CXXFLAGS := $(CXXFLAGS_REL) release: clean vompclient strip deps: GNUmakefile $(CC) -MM $(INCLUDES) $(OBJECTS:%.o=%.cc) > deps -include deps clean: rm -f *.o deps vompclient *~ fonts/*.o fonts/*~