Mercurial > pt1.mumumu
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/recpt1/Makefile.in Sat Nov 28 00:12:05 2009 +0900 @@ -0,0 +1,48 @@ +DESTDIR = +prefix = @prefix@ +exec_prefix = @exec_prefix@ +bindir = @bindir@ +CC = @CC@ +INSTALL = @INSTALL@ + +TARGET = recpt1 +RELEASE_VERSION = '1.0.0' + +CPPFLAGS = -I../driver -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +CFLAGS = -O2 -g -pthread + +LIBS = @LIBS@ +LDFLAGS = + +OBJS = recpt1.o decoder.o mkpath.o +DEPEND = .deps + +all: $(TARGET) + +clean: + rm -f $(OBJS) $(TARGET) $(DEPEND) version.h + +distclean: clean + rm -f Makefile config.h config.log config.status + +maintainer-clean: distclean + rm -fr configure config.h.in aclocal.m4 autom4te.cache *~ + +$(TARGET): $(OBJS) + $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS) + +$(DEPEND): version.h + $(CC) -MM $(OBJS:.o=.c) $(CPPFLAGS) > $@ + +version.h: + revh=`hg parents --template 'const char *version = "r{rev}:{node|short} ({date|isodate})";\n' 2>/dev/null`; \ + if [ -n "$$revh" ] ; then \ + echo "$$revh" > $@; \ + else \ + echo "const char *version = \"$(RELEASE_VERSION)\";" > $@; \ + fi + +install: $(TARGET) + $(INSTALL) -m 755 $(TARGET) $(DESTDIR)$(bindir) + +-include .deps