comparison recpt1/Makefile.in @ 74:b6607f6e2851

good citizens never use gray code. wise people never watch TV.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sat, 28 Nov 2009 00:12:05 +0900
parents
children d1c740aa1b67
comparison
equal deleted inserted replaced
73:c44e16dbb0e2 74:b6607f6e2851
1 DESTDIR =
2 prefix = @prefix@
3 exec_prefix = @exec_prefix@
4 bindir = @bindir@
5 CC = @CC@
6 INSTALL = @INSTALL@
7
8 TARGET = recpt1
9 RELEASE_VERSION = '1.0.0'
10
11 CPPFLAGS = -I../driver -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
12 CFLAGS = -O2 -g -pthread
13
14 LIBS = @LIBS@
15 LDFLAGS =
16
17 OBJS = recpt1.o decoder.o mkpath.o
18 DEPEND = .deps
19
20 all: $(TARGET)
21
22 clean:
23 rm -f $(OBJS) $(TARGET) $(DEPEND) version.h
24
25 distclean: clean
26 rm -f Makefile config.h config.log config.status
27
28 maintainer-clean: distclean
29 rm -fr configure config.h.in aclocal.m4 autom4te.cache *~
30
31 $(TARGET): $(OBJS)
32 $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
33
34 $(DEPEND): version.h
35 $(CC) -MM $(OBJS:.o=.c) $(CPPFLAGS) > $@
36
37 version.h:
38 revh=`hg parents --template 'const char *version = "r{rev}:{node|short} ({date|isodate})";\n' 2>/dev/null`; \
39 if [ -n "$$revh" ] ; then \
40 echo "$$revh" > $@; \
41 else \
42 echo "const char *version = \"$(RELEASE_VERSION)\";" > $@; \
43 fi
44
45 install: $(TARGET)
46 $(INSTALL) -m 755 $(TARGET) $(DESTDIR)$(bindir)
47
48 -include .deps