annotate src/Makefile @ 161:ade99239f234

Enable change phisical channel by DLNA.
author Naoya OYAMA <naoya.oyama@gmail.com>
date Wed, 12 Sep 2012 21:36:39 +0900
parents 036ae90f1b01
children 7d8a5bb874ad
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
125
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
1 ifeq (,$(wildcard ../config.mak))
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
2 $(error "../config.mak is not present, run configure !")
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
3 endif
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
4 include ../config.mak
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
5
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
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
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
9
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
10 EXTRADIST = ushare.1 \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
11 cds.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
12 cms.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
13 msr.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
14 http.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
15 presentation.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
16 metadata.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
17 mime.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
18 services.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
19 buffer.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
20 util_iconv.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
21 content.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
22 cfgparser.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
23 trace.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
24 redblack.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
25 osdep.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
26 ctrl_telnet.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
27 ushare.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
28 gettext.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
29 minmax.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
30 decoder.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
31 mkpath.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
32 pt1_dev.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
33 recpt1.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
34 tssplitter_lite.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
35 upnp_device.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
36 upnp_main.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
37 version.h \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
38
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
39 SRCS = \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
40 cds.c \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
41 cms.c \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
42 msr.c \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
43 http.c \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
44 presentation.c \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
45 metadata.c \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
46 mime.c \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
47 services.c \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
48 buffer.c \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
49 util_iconv.c \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
50 content.c \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
51 cfgparser.c \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
52 trace.c \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
53 redblack.c \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
54 osdep.c \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
55 ctrl_telnet.c \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
56 ushare.c \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
57 decoder.c \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
58 mkpath.c \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
59 recpt1.c \
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
60 tssplitter_lite.c
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
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
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
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
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
73
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
74 .SUFFIXES: .c .o
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
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
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
77
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
78 .c.o:
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
79 $(CC) -c $(CFLAGS) -g $(OPTFLAGS) -o $@ $<
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
80
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
81 $(PROG): $(OBJS)
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
82 $(CC) $(OBJS) $(LDFLAGS) $(EXTRALIBS) -o $@
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
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
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
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
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
92 -$(RM) -f .depend
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
93
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
94 distclean:
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
95
145
4e39ce051c57 Able to compile the checksignal.
Naoya OYAMA <naoya.oyama@gmail.com>
parents: 125
diff changeset
96 install: $(PROG) $(PROG2) $(PROG3)
125
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
97 $(INSTALL) -d $(bindir)
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
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
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
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
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
106
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
107 depend:
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
108 $(CC) -I.. -MM $(CFLAGS) $(SRCS) 1>.depend
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
109
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
110 .PHONY: clean distclean install depend
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
111
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
112 dist-all:
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
113 cp $(EXTRADIST) $(SRCS) Makefile $(DIST)
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
114
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
115 .PHONY: dist-all
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
116
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
117 #
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
118 # include dependency files if they exist
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
119 #
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
120 ifneq ($(wildcard .depend),)
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
121 include .depend
e413158cae13 Add ushare project files.
naoyan@johnstown.minaminoshima.org
parents:
diff changeset
122 endif