Mercurial > pt1.oyama
comparison src/Makefile.in @ 124:9c7bc6c0327e
Add DLNA server function test. (from uShare project)
author | naoyan@johnstown.minaminoshima.org |
---|---|
date | Wed, 29 Sep 2010 23:18:55 +0900 |
parents | recpt1/Makefile.in@3eccf1ef4853 |
children |
comparison
equal
deleted
inserted
replaced
123:215a51fa3df3 | 124:9c7bc6c0327e |
---|---|
1 DESTDIR = | |
2 prefix = @prefix@ | |
3 exec_prefix = @exec_prefix@ | |
4 bindir = @bindir@ | |
5 CC = @CC@ | |
6 | |
7 TARGET = recpt1 | |
8 TARGET2 = recpt1ctl | |
9 TARGET3 = checksignal | |
10 TARGETS = $(TARGET) $(TARGET2) $(TARGET3) | |
11 RELEASE_VERSION = "1.1.0" | |
12 | |
13 CPPFLAGS = -I../driver -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 | |
14 CFLAGS = -O2 -g -pthread | |
15 | |
16 LIBS = @LIBS@ | |
17 LIBS2 = | |
18 LIBS3 = -lpthread -lm | |
19 LDFLAGS = | |
20 | |
21 OBJS = recpt1.o decoder.o mkpath.o tssplitter_lite.o | |
22 OBJS2 = recpt1ctl.o | |
23 OBJS3 = checksignal.o | |
24 OBJALL = $(OBJS) $(OBJS2) $(OBJS3) | |
25 DEPEND = .deps | |
26 | |
27 all: $(TARGETS) | |
28 | |
29 clean: | |
30 rm -f $(OBJALL) $(TARGETS) $(DEPEND) version.h | |
31 | |
32 distclean: clean | |
33 rm -f Makefile config.h config.log config.status | |
34 | |
35 maintainer-clean: distclean | |
36 rm -fr configure config.h.in aclocal.m4 autom4te.cache *~ | |
37 | |
38 $(TARGET): $(OBJS) | |
39 $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) | |
40 | |
41 $(TARGET2): $(OBJS2) | |
42 $(CC) $(LDFLAGS) -o $@ $(OBJS2) $(LIBS2) | |
43 | |
44 $(TARGET3): $(OBJS3) | |
45 $(CC) $(LDFLAGS) -o $@ $(OBJS3) $(LIBS3) | |
46 | |
47 $(DEPEND): version.h | |
48 $(CC) -MM $(OBJS:.o=.c) $(OBJS2:.o=.c) $(CPPFLAGS) > $@ | |
49 | |
50 version.h: | |
51 revh=`hg parents --template 'const char *version = "r{rev}:{node|short} ({date|shortdate})";\n' 2>/dev/null`; \ | |
52 if [ -n "$$revh" ] ; then \ | |
53 echo "$$revh" > $@; \ | |
54 else \ | |
55 echo "const char *version = \"$(RELEASE_VERSION)\";" > $@; \ | |
56 fi | |
57 | |
58 install: $(TARGET) | |
59 install -m 755 $(TARGETS) $(DESTDIR)$(bindir) | |
60 | |
61 -include .deps |