Mercurial > pt1.oyama
annotate src/Makefile @ 156:159a729b90eb
Specify the BS channels by transponder and slot.
author | Naoya OYAMA <naoya.oyama@gmail.com> |
---|---|
date | Mon, 10 Sep 2012 14:16:44 +0900 |
parents | 036ae90f1b01 |
children | 7d8a5bb874ad |
rev | line source |
---|---|
125 | 1 ifeq (,$(wildcard ../config.mak)) |
2 $(error "../config.mak is not present, run configure !") | |
3 endif | |
4 include ../config.mak | |
5 | |
6 PROG = recpt1 | |
145
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
7 PROG2 = checksignal |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
8 PROG3 = pt1_lnbd |
125 | 9 |
10 EXTRADIST = ushare.1 \ | |
11 cds.h \ | |
12 cms.h \ | |
13 msr.h \ | |
14 http.h \ | |
15 presentation.h \ | |
16 metadata.h \ | |
17 mime.h \ | |
18 services.h \ | |
19 buffer.h \ | |
20 util_iconv.h \ | |
21 content.h \ | |
22 cfgparser.h \ | |
23 trace.h \ | |
24 redblack.h \ | |
25 osdep.h \ | |
26 ctrl_telnet.h \ | |
27 ushare.h \ | |
28 gettext.h \ | |
29 minmax.h \ | |
30 decoder.h \ | |
31 mkpath.h \ | |
32 pt1_dev.h \ | |
33 recpt1.h \ | |
34 tssplitter_lite.h \ | |
35 upnp_device.h \ | |
36 upnp_main.h \ | |
37 version.h \ | |
38 | |
39 SRCS = \ | |
40 cds.c \ | |
41 cms.c \ | |
42 msr.c \ | |
43 http.c \ | |
44 presentation.c \ | |
45 metadata.c \ | |
46 mime.c \ | |
47 services.c \ | |
48 buffer.c \ | |
49 util_iconv.c \ | |
50 content.c \ | |
51 cfgparser.c \ | |
52 trace.c \ | |
53 redblack.c \ | |
54 osdep.c \ | |
55 ctrl_telnet.c \ | |
56 ushare.c \ | |
57 decoder.c \ | |
58 mkpath.c \ | |
59 recpt1.c \ | |
60 tssplitter_lite.c | |
61 | |
145
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
62 SRCS2 = \ |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
63 checksignal.c |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
64 |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
65 SRCS3 = \ |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
66 pt1_lnbd.c |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
67 |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
68 LIBS2 = -lpthread -lm |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
69 |
125 | 70 OBJS = $(SRCS:.c=.o) |
145
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
71 OBJS2 = $(SRCS2:.c=.o) |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
72 OBJS3 = $(SRCS3:.c=.o) |
125 | 73 |
74 .SUFFIXES: .c .o | |
75 | |
145
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
76 all: depend $(PROG) $(PROG2) $(PROG3) |
125 | 77 |
78 .c.o: | |
79 $(CC) -c $(CFLAGS) -g $(OPTFLAGS) -o $@ $< | |
80 | |
81 $(PROG): $(OBJS) | |
82 $(CC) $(OBJS) $(LDFLAGS) $(EXTRALIBS) -o $@ | |
83 | |
145
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
84 $(PROG2): $(OBJS2) |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
85 $(CC) $(OBJS2) $(LDFLAGS) $(EXTRALIBS) $(LIBS2) -o $@ |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
86 |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
87 $(PROG3): $(OBJS3) |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
88 $(CC) $(OBJS3) $(LDFLAGS) $(EXTRALIBS) -o $@ |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
89 |
125 | 90 clean: |
145
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
91 -$(RM) -f *.o $(PROG) $(PROG2) $(PROG3) |
125 | 92 -$(RM) -f .depend |
93 | |
94 distclean: | |
95 | |
145
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
96 install: $(PROG) $(PROG2) $(PROG3) |
125 | 97 $(INSTALL) -d $(bindir) |
98 $(INSTALL) $(PROG) $(bindir) | |
145
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
99 $(INSTALL) $(PROG2) $(bindir) |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
100 $(INSTALL) $(PROG3) $(bindir) |
150
036ae90f1b01
EXPERIMENTAL: Add channel scan script.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
145
diff
changeset
|
101 $(INSTALL) channelscan_pt1.sh $(bindir) |
036ae90f1b01
EXPERIMENTAL: Add channel scan script.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
145
diff
changeset
|
102 $(INSTALL) epgdump_xml_parse.pl $(bindir) |
125 | 103 $(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG) |
145
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
104 $(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG2) |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
105 $(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG3) |
125 | 106 |
107 depend: | |
108 $(CC) -I.. -MM $(CFLAGS) $(SRCS) 1>.depend | |
109 | |
110 .PHONY: clean distclean install depend | |
111 | |
112 dist-all: | |
113 cp $(EXTRADIST) $(SRCS) Makefile $(DIST) | |
114 | |
115 .PHONY: dist-all | |
116 | |
117 # | |
118 # include dependency files if they exist | |
119 # | |
120 ifneq ($(wildcard .depend),) | |
121 include .depend | |
122 endif |