]> git.vomp.tv Git - vompclient-marten.git/blob - Makefile
Sync changes in demuxer
[vompclient-marten.git] / Makefile
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 OBJECTS1 = main.o command.o log.o tcp.o dsock.o thread.o timers.o i18n.o               \
15            message.o messagequeue.o                                                    \
16            vdr.o recording.o channel.o rectimer.o event.o directory.o                  \
17            player.o demuxer.o stream.o vfeed.o afeed.o afeedr.o draintarget.o          \
18            viewman.o box.o region.o colour.o view.o                                    \
19            vinfo.o vwallpaper.o vvolume.o vrecordinglist.o vlivebanner.o vmute.o       \
20            vtimerlist.o vtimeredit.o voptionsmenu.o vrecordingmenu.o vquestion.o       \
21            vchannellist.o vwelcome.o vvideolive.o vvideorec.o vepgsettimer.o           \
22            vchannelselect.o vserverselect.o vconnect.o voptions.o vepg.o               \
23            widget.o wselectlist.o wjpeg.o wsymbol.o wbutton.o woptionbox.o wtextbox.o  \
24            fonts/helvB24.o fonts/helvB18.o                                             \
25            remote.o led.o mtd.o video.o audio.o osd.o surface.o
26
27 OBJECTSMVP = threadp.o   remotemvp.o ledmvp.o mtdmvp.o videomvp.o audiomvp.o osdmvp.o surfacemvp.o
28 OBJECTSWIN = threadwin.o remotewin.o ledwin.o mtdwin.o videowin.o audiowin.o osdwin.o surfacewin.o
29
30 OBJECTS = $(OBJECTS1) $(OBJECTSMVP)
31
32 .PHONY: clean fresh all install strip
33
34 default: dev
35 fresh:   clean default
36
37 vompclient: $(OBJECTS)
38         $(CC) $(LDFLAGS) $(LIBPATHS) $(RELEASE) -o vompclient $(OBJECTS) $(CROSSLIBS) $(LIBS)
39
40 strip:
41         $(STRIP) vompclient
42
43 install:
44         rm -f /diskless/nfs/mvp/vompclient
45         cp vompclient /diskless/nfs/mvp
46
47 debug:
48         ../../gdb/gdb-6.3-target-ppc/gdb/gdb /diskless/nfs/mvp/vompclient /diskless/nfs/mvp/core.*
49
50 dev: CXXFLAGS := $(CXXFLAGS_DEV)
51 dev: vompclient
52
53 release: CXXFLAGS := $(CXXFLAGS_REL)
54 release: clean vompclient strip
55
56 deps: Makefile
57         $(CC) -MM $(INCLUDES) $(OBJECTS:%.o=%.cc) > deps
58
59 -include deps
60
61 clean:
62         rm -f *.o deps vompclient *~ fonts/*.o fonts/*~