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