]> git.vomp.tv Git - vompclient-marten.git/blob - GNUmakefile
Windows fixes
[vompclient-marten.git] / GNUmakefile
1 CC = /opt/crosstool/powerpc-405-linux-gnu/gcc-2.95.3-glibc-2.2.5/bin/powerpc-405-linux-gnu-g++
2 STRIP = /opt/crosstool/powerpc-405-linux-gnu/gcc-2.95.3-glibc-2.2.5/bin/powerpc-405-linux-gnu-strip
3
4 CXX = $(CC)
5 INCLUDES = -I../jpeg-6b
6 CXXFLAGS_DEV = -g -O0 -Wall -Woverloaded-virtual -Wshadow -Werror -DDEV -D_GNU_SOURCE $(INCLUDES)
7 CXXFLAGS_REL = -O3 -Wall -Woverloaded-virtual -Wshadow -Werror -D_GNU_SOURCE $(INCLUDES)
8 LDFLAGS = -Wall -static
9
10 LIBPATHS =
11 LIBS = -lpthread -lrt
12 CROSSLIBS = ../jpeg-6b/libjpeg.a
13
14 # This is the only thing windows and linux share
15 include objects.mk
16
17 OBJECTSMVP = main.o threadp.o remotemvp.o ledmvp.o mtdmvp.o videomvp.o audiomvp.o osdmvp.o surfacemvp.o
18 OBJECTSWIN = threadwin.o remotewin.o ledwin.o mtdwin.o videowin.o audiowin.o osdwin.o surfacewin.o
19
20 OBJECTS = $(OBJECTS1) $(OBJECTSMVP)
21
22 .PHONY: clean fresh all install strip
23
24 default: dev
25 fresh:   clean default
26
27 vompclient: $(OBJECTS)
28         $(CC) $(LDFLAGS) $(LIBPATHS) $(RELEASE) -o vompclient $(OBJECTS) $(CROSSLIBS) $(LIBS)
29
30 strip:
31         $(STRIP) vompclient
32
33 install:
34         rm -f /diskless/nfs/mvp/vompclient
35         cp vompclient /diskless/nfs/mvp
36
37 debug:
38         ../../gdb/gdb-6.3-target-ppc/gdb/gdb /diskless/nfs/mvp/vompclient /diskless/nfs/mvp/core.*
39
40 debug2:
41         ../../gdb/gdb-6.3-target-ppc/gdb/gdb /diskless/nfs/mvp/vompclient /diskless/nfs/mvp/core
42
43 dev: CXXFLAGS := $(CXXFLAGS_DEV)
44 dev: vompclient
45
46 release: CXXFLAGS := $(CXXFLAGS_REL)
47 release: clean vompclient strip
48
49 deps: GNUmakefile
50         $(CC) -MM $(INCLUDES) $(OBJECTS:%.o=%.cc) > deps
51
52 -include deps
53
54 clean:
55         rm -f *.o deps vompclient *~ fonts/*.o fonts/*~
56