Mercurial > pt1
diff recpt1/Makefile @ 12:0a6b831f4b89
added install rule.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Tue, 24 Feb 2009 17:16:05 +0900 |
parents | e3059e3cf5e7 |
children | b63f5c100e5a |
line wrap: on
line diff
--- a/recpt1/Makefile Mon Feb 23 14:53:12 2009 +0900 +++ b/recpt1/Makefile Tue Feb 24 17:16:05 2009 +0900 @@ -11,7 +11,7 @@ B25_LIBS = $(PCSC_LDLIBS) -lm endif -DIST = . +PREFIX = /usr/local CC = gcc CPPFLAGS = -I../driver -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(B25) CFLAGS = -O2 -g -pthread @@ -19,7 +19,7 @@ OBJS = recpt1.o $(B25_OBJS_EXT) decoder.o LIBS = -lpthread -TARGET = $(DIST)/recpt1 +TARGET = recpt1 DEPEND = Makefile.dep all: $(TARGET) @@ -48,4 +48,7 @@ $(B25_PATH)/ts_section_parser.o: cd $(B25_PATH); make all +install: $(TARGET) + install -m 755 $(TARGET) $(PREFIX)/bin + -include Makefile.dep