comparison recpt1/Makefile.in @ 78:5a0126d8af17

landed ipc control functionality branch
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Tue, 01 Dec 2009 20:24:22 +0900
parents d1c740aa1b67
children 2b55985bbb4c
comparison
equal deleted inserted replaced
77:517e61637f7b 78:5a0126d8af17
3 exec_prefix = @exec_prefix@ 3 exec_prefix = @exec_prefix@
4 bindir = @bindir@ 4 bindir = @bindir@
5 CC = @CC@ 5 CC = @CC@
6 6
7 TARGET = recpt1 7 TARGET = recpt1
8 TARGET2 = recpt1ctl
9 TARGETS = $(TARGET) $(TARGET2)
8 RELEASE_VERSION = '1.0.0' 10 RELEASE_VERSION = '1.0.0'
9 11
10 CPPFLAGS = -I../driver -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 12 CPPFLAGS = -I../driver -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
11 CFLAGS = -O2 -g -pthread 13 CFLAGS = -O2 -g -pthread
12 14
13 LIBS = @LIBS@ 15 LIBS = @LIBS@
14 LDFLAGS = 16 LDFLAGS =
15 17
16 OBJS = recpt1.o decoder.o mkpath.o 18 OBJS = recpt1.o decoder.o mkpath.o
19 OBJS2 = recpt1ctl.o
17 DEPEND = .deps 20 DEPEND = .deps
18 21
19 all: $(TARGET) 22 all: $(TARGETS)
20 23
21 clean: 24 clean:
22 rm -f $(OBJS) $(TARGET) $(DEPEND) version.h 25 rm -f $(OBJS) $(OBJS2) $(TARGETS) $(DEPEND) version.h
23 26
24 distclean: clean 27 distclean: clean
25 rm -f Makefile config.h config.log config.status 28 rm -f Makefile config.h config.log config.status
26 29
27 maintainer-clean: distclean 30 maintainer-clean: distclean
28 rm -fr configure config.h.in aclocal.m4 autom4te.cache *~ 31 rm -fr configure config.h.in aclocal.m4 autom4te.cache *~
29 32
30 $(TARGET): $(OBJS) 33 $(TARGET): $(OBJS)
31 $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS) 34 $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
35
36 $(TARGET2): $(OBJS2)
37 $(CC) $(LDFLAGS) -o $@ $(OBJS2) $(LIBS2)
32 38
33 $(DEPEND): version.h 39 $(DEPEND): version.h
34 $(CC) -MM $(OBJS:.o=.c) $(CPPFLAGS) > $@ 40 $(CC) -MM $(OBJS:.o=.c) $(OBJS2:.o=.c) $(CPPFLAGS) > $@
35 41
36 version.h: 42 version.h:
37 revh=`hg parents --template 'const char *version = "r{rev}:{node|short} ({date|isodate})";\n' 2>/dev/null`; \ 43 revh=`hg parents --template 'const char *version = "r{rev}:{node|short} ({date|isodate})";\n' 2>/dev/null`; \
38 if [ -n "$$revh" ] ; then \ 44 if [ -n "$$revh" ] ; then \
39 echo "$$revh" > $@; \ 45 echo "$$revh" > $@; \
40 else \ 46 else \
41 echo "const char *version = \"$(RELEASE_VERSION)\";" > $@; \ 47 echo "const char *version = \"$(RELEASE_VERSION)\";" > $@; \
42 fi 48 fi
43 49
44 install: $(TARGET) 50 install: $(TARGET)
45 install -m 755 $(TARGET) $(DESTDIR)$(bindir) 51 install -m 755 $(TARGETS) $(DESTDIR)$(bindir)
46 52
47 -include .deps 53 -include .deps