Mercurial > pt1.oyama
comparison src/Makefile @ 125:e413158cae13
Add ushare project files.
author | naoyan@johnstown.minaminoshima.org |
---|---|
date | Sun, 03 Oct 2010 11:35:19 +0900 |
parents | |
children | 4e39ce051c57 |
comparison
equal
deleted
inserted
replaced
124:9c7bc6c0327e | 125:e413158cae13 |
---|---|
1 ifeq (,$(wildcard ../config.mak)) | |
2 $(error "../config.mak is not present, run configure !") | |
3 endif | |
4 include ../config.mak | |
5 | |
6 PROG = recpt1 | |
7 | |
8 EXTRADIST = ushare.1 \ | |
9 cds.h \ | |
10 cms.h \ | |
11 msr.h \ | |
12 http.h \ | |
13 presentation.h \ | |
14 metadata.h \ | |
15 mime.h \ | |
16 services.h \ | |
17 buffer.h \ | |
18 util_iconv.h \ | |
19 content.h \ | |
20 cfgparser.h \ | |
21 trace.h \ | |
22 redblack.h \ | |
23 osdep.h \ | |
24 ctrl_telnet.h \ | |
25 ushare.h \ | |
26 gettext.h \ | |
27 minmax.h \ | |
28 decoder.h \ | |
29 mkpath.h \ | |
30 pt1_dev.h \ | |
31 recpt1.h \ | |
32 tssplitter_lite.h \ | |
33 upnp_device.h \ | |
34 upnp_main.h \ | |
35 version.h \ | |
36 | |
37 SRCS = \ | |
38 cds.c \ | |
39 cms.c \ | |
40 msr.c \ | |
41 http.c \ | |
42 presentation.c \ | |
43 metadata.c \ | |
44 mime.c \ | |
45 services.c \ | |
46 buffer.c \ | |
47 util_iconv.c \ | |
48 content.c \ | |
49 cfgparser.c \ | |
50 trace.c \ | |
51 redblack.c \ | |
52 osdep.c \ | |
53 ctrl_telnet.c \ | |
54 ushare.c \ | |
55 decoder.c \ | |
56 mkpath.c \ | |
57 recpt1.c \ | |
58 tssplitter_lite.c | |
59 | |
60 OBJS = $(SRCS:.c=.o) | |
61 | |
62 .SUFFIXES: .c .o | |
63 | |
64 all: depend $(PROG) | |
65 | |
66 .c.o: | |
67 $(CC) -c $(CFLAGS) -g $(OPTFLAGS) -o $@ $< | |
68 | |
69 $(PROG): $(OBJS) | |
70 $(CC) $(OBJS) $(LDFLAGS) $(EXTRALIBS) -o $@ | |
71 | |
72 clean: | |
73 -$(RM) -f *.o $(PROG) | |
74 -$(RM) -f .depend | |
75 | |
76 distclean: | |
77 | |
78 install: $(PROG) | |
79 $(INSTALL) -d $(bindir) | |
80 $(INSTALL) $(PROG) $(bindir) | |
81 $(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG) | |
82 | |
83 depend: | |
84 $(CC) -I.. -MM $(CFLAGS) $(SRCS) 1>.depend | |
85 | |
86 .PHONY: clean distclean install depend | |
87 | |
88 dist-all: | |
89 cp $(EXTRADIST) $(SRCS) Makefile $(DIST) | |
90 | |
91 .PHONY: dist-all | |
92 | |
93 # | |
94 # include dependency files if they exist | |
95 # | |
96 ifneq ($(wildcard .depend),) | |
97 include .depend | |
98 endif |