comparison src/Makefile @ 164:7d8a5bb874ad

EXPERIMENTAL: Change phisical channel by mq_recv(). KNOWN ISSUE: Cannnot split BS-TBS(BS1_1). enable compile recpt1ctl. SID can specified by recpt1ctl.
author Naoya OYAMA <naoya.oyama@gmail.com>
date Mon, 01 Oct 2012 21:52:05 +0900
parents 036ae90f1b01
children 061ef2cd98f0
comparison
equal deleted inserted replaced
163:57eae2aec60d 164:7d8a5bb874ad
4 include ../config.mak 4 include ../config.mak
5 5
6 PROG = recpt1 6 PROG = recpt1
7 PROG2 = checksignal 7 PROG2 = checksignal
8 PROG3 = pt1_lnbd 8 PROG3 = pt1_lnbd
9 PROG4 = recpt1ctl
9 10
10 EXTRADIST = ushare.1 \ 11 EXTRADIST = ushare.1 \
11 cds.h \ 12 cds.h \
12 cms.h \ 13 cms.h \
13 msr.h \ 14 msr.h \
33 recpt1.h \ 34 recpt1.h \
34 tssplitter_lite.h \ 35 tssplitter_lite.h \
35 upnp_device.h \ 36 upnp_device.h \
36 upnp_main.h \ 37 upnp_main.h \
37 version.h \ 38 version.h \
39 pt1_common.h \
38 40
39 SRCS = \ 41 SRCS = \
40 cds.c \ 42 cds.c \
41 cms.c \ 43 cms.c \
42 msr.c \ 44 msr.c \
63 checksignal.c 65 checksignal.c
64 66
65 SRCS3 = \ 67 SRCS3 = \
66 pt1_lnbd.c 68 pt1_lnbd.c
67 69
70 SRCS4 = \
71 recpt1ctl.c
72
68 LIBS2 = -lpthread -lm 73 LIBS2 = -lpthread -lm
69 74
70 OBJS = $(SRCS:.c=.o) 75 OBJS = $(SRCS:.c=.o)
71 OBJS2 = $(SRCS2:.c=.o) 76 OBJS2 = $(SRCS2:.c=.o)
72 OBJS3 = $(SRCS3:.c=.o) 77 OBJS3 = $(SRCS3:.c=.o)
78 OBJS4 = $(SRCS4:.c=.o)
73 79
74 .SUFFIXES: .c .o 80 .SUFFIXES: .c .o
75 81
76 all: depend $(PROG) $(PROG2) $(PROG3) 82 all: depend $(PROG) $(PROG2) $(PROG3) $(PROG4)
77 83
78 .c.o: 84 .c.o:
79 $(CC) -c $(CFLAGS) -g $(OPTFLAGS) -o $@ $< 85 $(CC) -c $(CFLAGS) -g $(OPTFLAGS) -o $@ $<
80 86
81 $(PROG): $(OBJS) 87 $(PROG): $(OBJS)
85 $(CC) $(OBJS2) $(LDFLAGS) $(EXTRALIBS) $(LIBS2) -o $@ 91 $(CC) $(OBJS2) $(LDFLAGS) $(EXTRALIBS) $(LIBS2) -o $@
86 92
87 $(PROG3): $(OBJS3) 93 $(PROG3): $(OBJS3)
88 $(CC) $(OBJS3) $(LDFLAGS) $(EXTRALIBS) -o $@ 94 $(CC) $(OBJS3) $(LDFLAGS) $(EXTRALIBS) -o $@
89 95
96 $(PROG4): $(OBJS4)
97 $(CC) $(OBJS3) $(LDFLAGS) $(EXTRALIBS) -o $@
98
90 clean: 99 clean:
91 -$(RM) -f *.o $(PROG) $(PROG2) $(PROG3) 100 -$(RM) -f *.o $(PROG) $(PROG2) $(PROG3) $(PROG4)
92 -$(RM) -f .depend 101 -$(RM) -f .depend
93 102
94 distclean: 103 distclean:
95 104
96 install: $(PROG) $(PROG2) $(PROG3) 105 install: $(PROG) $(PROG2) $(PROG3) $(PROG4)
97 $(INSTALL) -d $(bindir) 106 $(INSTALL) -d $(bindir)
98 $(INSTALL) $(PROG) $(bindir) 107 $(INSTALL) $(PROG) $(bindir)
99 $(INSTALL) $(PROG2) $(bindir) 108 $(INSTALL) $(PROG2) $(bindir)
100 $(INSTALL) $(PROG3) $(bindir) 109 $(INSTALL) $(PROG3) $(bindir)
110 $(INSTALL) $(PROG4) $(bindir)
101 $(INSTALL) channelscan_pt1.sh $(bindir) 111 $(INSTALL) channelscan_pt1.sh $(bindir)
102 $(INSTALL) epgdump_xml_parse.pl $(bindir) 112 $(INSTALL) epgdump_xml_parse.pl $(bindir)
103 $(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG) 113 $(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG)
104 $(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG2) 114 $(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG2)
105 $(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG3) 115 $(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG3)
116 $(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG4)
106 117
107 depend: 118 depend:
108 $(CC) -I.. -MM $(CFLAGS) $(SRCS) 1>.depend 119 $(CC) -I.. -MM $(CFLAGS) $(SRCS) 1>.depend
109 120
110 .PHONY: clean distclean install depend 121 .PHONY: clean distclean install depend