Mercurial > pt1.oyama
view recpt1/Makefile @ 56:521d796003b2
small build fixes
- added install rule to arib25 top level makefile
- suppress warning in compilation of arib_std_b25.c
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sun, 13 Sep 2009 11:48:40 +0900 |
parents | 9b36fdf7d5d0 |
children | f1553492e8bb |
line wrap: on
line source
TARGET = recpt1 RELEASE_VERSION = '1.0.0' PREFIX = /usr/local CC = gcc CPPFLAGS = -I../driver -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DB25 CFLAGS = -O2 -g -pthread PCSC_LIBS = `pkg-config libpcsclite --libs` B25_LIBS = -larib25 LIBS = $(PCSC_LIBS) $(B25_LIBS) -lm -lpthread LDFLAGS = OBJS = recpt1.o decoder.o DEPEND = .deps all: $(TARGET) clean: rm -f $(OBJS) $(TARGET) $(DEPEND) version.h $(TARGET): $(OBJS) $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS) $(DEPEND): version.h $(CC) -MM $(OBJS:.o=.c) $(CPPFLAGS) > $@ version.h: if test -d ../.hg ; then \ revh=`hg parents --template 'const char *version = "r#rev#:#node|short# (#date|isodate#)";\n' 2>/dev/null`; \ [ -z "$$revh" ] || echo "$$revh" > $@; \ else \ echo "const char *version = \"$(RELEASE_VERSION)\";" > $@; \ fi install: $(TARGET) install -m 755 $(TARGET) $(PREFIX)/bin -include .deps