Statistics
| Branch: | Tag: | Revision:

dvbd / Makefile @ bfdb7446

History | View | Annotate | Download (1.73 KB)

1
PROGRAMS = dvbd dvbcat dvblist dvbsched
2

    
3
all: $(PROGRAMS)
4

    
5
DEBUGCXX=-g
6
DEBUGLINK=-g
7

    
8
#DEBUGCXX=-O2
9
#DEBUGLINK=-O2
10

    
11
CXX=c++ $(DEBUGCXX)
12
LINK=c++ $(DEBUGLINK)
13
COMMONFLAGS=-Wall
14
CFLAGS=$(COMMONFLAGS)
15
CXXFLAGS = $(COMMONFLAGS)
16

    
17
CXXSOURCES1 = connection.cpp controlledconnection.cpp					\
18
	      connectionmanager.cpp demuxer.cpp dvbchannels.cpp dvbd.cpp		\
19
	      dvbttuneparams.cpp select.cpp source.cpp stringutil.cpp tuner.cpp		\
20
	      tunermanager.cpp tuneparams.cpp debug.cpp unixserversocket.cpp		\
21
	      lobby.cpp circularbuffer.cpp inputbuffer.cpp outputbuffer.cpp		\
22
	      signals.cpp configfile.cpp scheduler.cpp fakedemuxer.cpp faketuner.cpp	\
23
              faketunermanager.cpp recording.cpp utils.cpp stringrep.cpp
24
CSOURCES1 = transform.c tune.c ringbuffy.c remux.c ctools.c
25
OBJECTS1 = $(CXXSOURCES1:%.cpp=%.o) $(CSOURCES1:%.c=%.o)
26

    
27
dvbd: $(OBJECTS1)
28
	$(LINK) -o $@ $(OBJECTS1)
29

    
30
CXXSOURCES2_COMMON = unixclientsocket.cpp stringutil.cpp			\
31
                     debug.cpp utils.cpp circularbuffer.cpp inputbuffer.cpp	\
32
                     outputbuffer.cpp select.cpp clientconnection.cpp 
33

    
34
CXXSOURCES2 = $(CXXSOURCES2_COMMON) dvbsched.cpp 
35
CSOURCES2 = lex.yy.c y.tab.c
36
OBJECTS2 = $(CXXSOURCES2:%.cpp=%.o) $(CSOURCES2:%.c=%.o)
37

    
38
dvbsched: $(OBJECTS2)
39
	$(LINK) -o $@ $(OBJECTS2)
40

    
41
CXXSOURCES3 = dvblist.cpp $(CXXSOURCES2_COMMON)
42
OBJECTS3 = $(CXXSOURCES3:%.cpp=%.o)
43

    
44
dvblist: $(OBJECTS3)
45
	$(LINK) -o $@ $(OBJECTS3)
46

    
47
CXXSOURCES4 = dvbcat.cpp $(CXXSOURCES2_COMMON)
48
OBJECTS4 = $(CXXSOURCES4:%.cpp=%.o)
49

    
50
dvbcat: $(OBJECTS4)
51
	$(LINK) -o $@ $(OBJECTS4)
52

    
53

    
54
clean:
55
	rm -f *.o $(PROGRAMS)
56

    
57
ALLSOURCES := $(sort $(CXXSOURCES1) $(CSOURCES1) $(CXXSOURCES2))
58

    
59
make.Dep: $(ALLSOURCES)
60
	-gcc -MM $(ALLSOURCES) 2>/dev/null >$@
61

    
62

    
63
documentation:
64
	doxygen dvbd.doxygen
65

    
66
include make.Dep