]> git.vomp.tv Git - vompclient-marten.git/blob - Makefile
Fix for cant power down if server unavailable
[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 = -Wall -Woverloaded-virtual -Werror $(INCLUDES)
7 LDFLAGS = -Wall -static
8
9 LIBPATHS =
10 LIBS = -lpthread -lrt
11 CROSSLIBS = ../jpeg-6b/libjpeg.a
12
13 OBJECTS = main.o command.o log.o remote.o led.o mtd.o video.o audio.o tcp.o directory.o thread.o \
14           player.o demuxer.o stream.o vfeed.o afeed.o afeedr.o osd.o surface.o viewman.o vdr.o dsock.o box.o \
15           list.o queue.o node.o recording.o channel.o message.o playerradio.o messagequeue.o \
16           view.o vinfo.o vwallpaper.o vvolume.o vrecordinglist.o vlivebanner.o vmute.o \
17           vrecordingmenu.o vquestion.o vchannellist.o vwelcome.o vvideolive.o vvideorec.o vradiolive.o \
18           vchannelselect.o vserverselect.o colour.o vconnect.o \
19           wselectlist.o wjpeg.o wsymbol.o wbutton.o \
20           fonts/helvB24.o fonts/helvB18.o
21
22 .PHONY: clean fresh all install strip
23
24 default: vompclient
25 fresh:   clean all
26 all:     vompclient
27
28 clean:
29         rm -f *.o deps vompclient test *~ fonts/*.o fonts/*~
30
31 vompclient: $(OBJECTS)
32         $(CC) $(LDFLAGS) $(LIBPATHS) -o vompclient $(OBJECTS) $(CROSSLIBS) $(LIBS)
33
34 strip:
35         $(STRIP) vompclient
36
37 install:
38         rm /diskless/nfs/mvp/vompclient
39         cp vompclient /diskless/nfs/mvp
40
41 release: CXXFLAGS := -O3 $(CXXFLAGS)
42 release: clean vompclient strip
43
44 deps: Makefile
45         $(CC) -MM $(INCLUDES) $(OBJECTS:%.o=%.cc) > deps
46
47 -include deps