Mercurial > pt1.oyama
comparison recpt1/Makefile.in @ 91:2b55985bbb4c
- adapt date format to driver's one
- version bump to 1.1.0 on non-mercurial environment
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Wed, 27 Jan 2010 16:45:37 +0900 |
parents | 5a0126d8af17 |
children | 1086bec1a684 |
comparison
equal
deleted
inserted
replaced
90:c6311b6efd9c | 91:2b55985bbb4c |
---|---|
5 CC = @CC@ | 5 CC = @CC@ |
6 | 6 |
7 TARGET = recpt1 | 7 TARGET = recpt1 |
8 TARGET2 = recpt1ctl | 8 TARGET2 = recpt1ctl |
9 TARGETS = $(TARGET) $(TARGET2) | 9 TARGETS = $(TARGET) $(TARGET2) |
10 RELEASE_VERSION = '1.0.0' | 10 RELEASE_VERSION = '1.1.0' |
11 | 11 |
12 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 |
13 CFLAGS = -O2 -g -pthread | 13 CFLAGS = -O2 -g -pthread |
14 | 14 |
15 LIBS = @LIBS@ | 15 LIBS = @LIBS@ |
38 | 38 |
39 $(DEPEND): version.h | 39 $(DEPEND): version.h |
40 $(CC) -MM $(OBJS:.o=.c) $(OBJS2:.o=.c) $(CPPFLAGS) > $@ | 40 $(CC) -MM $(OBJS:.o=.c) $(OBJS2:.o=.c) $(CPPFLAGS) > $@ |
41 | 41 |
42 version.h: | 42 version.h: |
43 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|shortdate})";\n' 2>/dev/null`; \ |
44 if [ -n "$$revh" ] ; then \ | 44 if [ -n "$$revh" ] ; then \ |
45 echo "$$revh" > $@; \ | 45 echo "$$revh" > $@; \ |
46 else \ | 46 else \ |
47 echo "const char *version = \"$(RELEASE_VERSION)\";" > $@; \ | 47 echo "const char *version = \"$(RELEASE_VERSION)\";" > $@; \ |
48 fi | 48 fi |