Mercurial > pt1.oyama
annotate src/Makefile @ 177:1d6674183e76
Fix problem: If do not specify DLNA, will not call pthread_join(stream_thread,)
author | Naoya OYAMA <naoya.oyama@gmail.com> |
---|---|
date | Wed, 07 Nov 2012 22:54:19 +0900 |
parents | 03ab3ade9fe5 |
children | 27e5f99f8991 |
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 |
164
7d8a5bb874ad
EXPERIMENTAL: Change phisical channel by mq_recv().
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
150
diff
changeset
|
9 PROG4 = recpt1ctl |
125 | 10 |
11 EXTRADIST = ushare.1 \ | |
12 cds.h \ | |
13 cms.h \ | |
14 msr.h \ | |
15 http.h \ | |
16 presentation.h \ | |
17 metadata.h \ | |
18 mime.h \ | |
19 services.h \ | |
20 buffer.h \ | |
21 util_iconv.h \ | |
22 content.h \ | |
23 cfgparser.h \ | |
24 trace.h \ | |
25 redblack.h \ | |
26 osdep.h \ | |
27 ctrl_telnet.h \ | |
28 ushare.h \ | |
29 gettext.h \ | |
30 minmax.h \ | |
31 decoder.h \ | |
32 mkpath.h \ | |
33 pt1_dev.h \ | |
34 recpt1.h \ | |
35 tssplitter_lite.h \ | |
36 upnp_device.h \ | |
37 upnp_main.h \ | |
38 version.h \ | |
164
7d8a5bb874ad
EXPERIMENTAL: Change phisical channel by mq_recv().
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
150
diff
changeset
|
39 pt1_common.h \ |
125 | 40 |
41 SRCS = \ | |
42 cds.c \ | |
43 cms.c \ | |
44 msr.c \ | |
45 http.c \ | |
46 presentation.c \ | |
47 metadata.c \ | |
48 mime.c \ | |
49 services.c \ | |
50 buffer.c \ | |
51 util_iconv.c \ | |
52 content.c \ | |
53 cfgparser.c \ | |
54 trace.c \ | |
55 redblack.c \ | |
56 osdep.c \ | |
57 ctrl_telnet.c \ | |
58 ushare.c \ | |
59 decoder.c \ | |
60 mkpath.c \ | |
61 recpt1.c \ | |
168 | 62 tssplitter_lite.c \ |
63 pt1_common.c | |
125 | 64 |
145
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
65 SRCS2 = \ |
168 | 66 checksignal.c \ |
67 pt1_common.c | |
145
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
68 |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
69 SRCS3 = \ |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
70 pt1_lnbd.c |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
71 |
164
7d8a5bb874ad
EXPERIMENTAL: Change phisical channel by mq_recv().
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
150
diff
changeset
|
72 SRCS4 = \ |
168 | 73 recpt1ctl.c \ |
74 pt1_common.c | |
164
7d8a5bb874ad
EXPERIMENTAL: Change phisical channel by mq_recv().
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
150
diff
changeset
|
75 |
145
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
76 LIBS2 = -lpthread -lm |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
77 |
125 | 78 OBJS = $(SRCS:.c=.o) |
145
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
79 OBJS2 = $(SRCS2:.c=.o) |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
80 OBJS3 = $(SRCS3:.c=.o) |
164
7d8a5bb874ad
EXPERIMENTAL: Change phisical channel by mq_recv().
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
150
diff
changeset
|
81 OBJS4 = $(SRCS4:.c=.o) |
125 | 82 |
83 .SUFFIXES: .c .o | |
84 | |
164
7d8a5bb874ad
EXPERIMENTAL: Change phisical channel by mq_recv().
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
150
diff
changeset
|
85 all: depend $(PROG) $(PROG2) $(PROG3) $(PROG4) |
125 | 86 |
87 .c.o: | |
88 $(CC) -c $(CFLAGS) -g $(OPTFLAGS) -o $@ $< | |
89 | |
90 $(PROG): $(OBJS) | |
91 $(CC) $(OBJS) $(LDFLAGS) $(EXTRALIBS) -o $@ | |
92 | |
145
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
93 $(PROG2): $(OBJS2) |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
94 $(CC) $(OBJS2) $(LDFLAGS) $(EXTRALIBS) $(LIBS2) -o $@ |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
95 |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
96 $(PROG3): $(OBJS3) |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
97 $(CC) $(OBJS3) $(LDFLAGS) $(EXTRALIBS) -o $@ |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
98 |
164
7d8a5bb874ad
EXPERIMENTAL: Change phisical channel by mq_recv().
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
150
diff
changeset
|
99 $(PROG4): $(OBJS4) |
7d8a5bb874ad
EXPERIMENTAL: Change phisical channel by mq_recv().
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
150
diff
changeset
|
100 $(CC) $(OBJS3) $(LDFLAGS) $(EXTRALIBS) -o $@ |
7d8a5bb874ad
EXPERIMENTAL: Change phisical channel by mq_recv().
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
150
diff
changeset
|
101 |
125 | 102 clean: |
173
03ab3ade9fe5
modify display version.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
168
diff
changeset
|
103 -$(RM) -f *.o $(PROG) $(PROG2) $(PROG3) $(PROG4) version.h |
125 | 104 -$(RM) -f .depend |
105 | |
106 distclean: | |
107 | |
173
03ab3ade9fe5
modify display version.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
168
diff
changeset
|
108 version.h: |
03ab3ade9fe5
modify display version.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
168
diff
changeset
|
109 revh=`hg parents --template 'const char *version = "r{rev}:{node|short} ({date|shortdate})";\n' 2>/dev/null`; \ |
03ab3ade9fe5
modify display version.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
168
diff
changeset
|
110 if [ -n "$$revh" ] ; then \ |
03ab3ade9fe5
modify display version.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
168
diff
changeset
|
111 echo "$$revh" > $@; \ |
03ab3ade9fe5
modify display version.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
168
diff
changeset
|
112 else \ |
03ab3ade9fe5
modify display version.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
168
diff
changeset
|
113 echo "const char *version = \"$(RELEASE_VERSION)\";" > $@; \ |
03ab3ade9fe5
modify display version.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
168
diff
changeset
|
114 fi |
03ab3ade9fe5
modify display version.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
168
diff
changeset
|
115 |
164
7d8a5bb874ad
EXPERIMENTAL: Change phisical channel by mq_recv().
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
150
diff
changeset
|
116 install: $(PROG) $(PROG2) $(PROG3) $(PROG4) |
125 | 117 $(INSTALL) -d $(bindir) |
118 $(INSTALL) $(PROG) $(bindir) | |
145
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
119 $(INSTALL) $(PROG2) $(bindir) |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
120 $(INSTALL) $(PROG3) $(bindir) |
164
7d8a5bb874ad
EXPERIMENTAL: Change phisical channel by mq_recv().
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
150
diff
changeset
|
121 $(INSTALL) $(PROG4) $(bindir) |
150
036ae90f1b01
EXPERIMENTAL: Add channel scan script.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
145
diff
changeset
|
122 $(INSTALL) channelscan_pt1.sh $(bindir) |
036ae90f1b01
EXPERIMENTAL: Add channel scan script.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
145
diff
changeset
|
123 $(INSTALL) epgdump_xml_parse.pl $(bindir) |
125 | 124 $(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG) |
145
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
125 $(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG2) |
4e39ce051c57
Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
126 $(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG3) |
164
7d8a5bb874ad
EXPERIMENTAL: Change phisical channel by mq_recv().
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
150
diff
changeset
|
127 $(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG4) |
125 | 128 |
173
03ab3ade9fe5
modify display version.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
168
diff
changeset
|
129 depend: version.h |
125 | 130 $(CC) -I.. -MM $(CFLAGS) $(SRCS) 1>.depend |
131 | |
132 .PHONY: clean distclean install depend | |
133 | |
134 dist-all: | |
135 cp $(EXTRADIST) $(SRCS) Makefile $(DIST) | |
136 | |
137 .PHONY: dist-all | |
138 | |
139 # | |
140 # include dependency files if they exist | |
141 # | |
142 ifneq ($(wildcard .depend),) | |
143 include .depend | |
144 endif |