Mercurial > pt1.oyama
comparison 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 |
comparison
equal
deleted
inserted
replaced
11:4615eaf04415 | 12:0a6b831f4b89 |
---|---|
9 B25_OBJS_EXT = $(B25_PATH)/arib_std_b25.o $(B25_PATH)/b_cas_card.o $(B25_PATH)/multi2.o $(B25_PATH)/ts_section_parser.o | 9 B25_OBJS_EXT = $(B25_PATH)/arib_std_b25.o $(B25_PATH)/b_cas_card.o $(B25_PATH)/multi2.o $(B25_PATH)/ts_section_parser.o |
10 PCSC_LDLIBS ?= `pkg-config libpcsclite --libs` | 10 PCSC_LDLIBS ?= `pkg-config libpcsclite --libs` |
11 B25_LIBS = $(PCSC_LDLIBS) -lm | 11 B25_LIBS = $(PCSC_LDLIBS) -lm |
12 endif | 12 endif |
13 | 13 |
14 DIST = . | 14 PREFIX = /usr/local |
15 CC = gcc | 15 CC = gcc |
16 CPPFLAGS = -I../driver -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(B25) | 16 CPPFLAGS = -I../driver -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(B25) |
17 CFLAGS = -O2 -g -pthread | 17 CFLAGS = -O2 -g -pthread |
18 LDFLAGS = | 18 LDFLAGS = |
19 | 19 |
20 OBJS = recpt1.o $(B25_OBJS_EXT) decoder.o | 20 OBJS = recpt1.o $(B25_OBJS_EXT) decoder.o |
21 LIBS = -lpthread | 21 LIBS = -lpthread |
22 TARGET = $(DIST)/recpt1 | 22 TARGET = recpt1 |
23 DEPEND = Makefile.dep | 23 DEPEND = Makefile.dep |
24 | 24 |
25 all: $(TARGET) | 25 all: $(TARGET) |
26 | 26 |
27 clean: $(B25_CLEAN) | 27 clean: $(B25_CLEAN) |
46 $(B25_PATH)/multi2.o: | 46 $(B25_PATH)/multi2.o: |
47 cd $(B25_PATH); make all | 47 cd $(B25_PATH); make all |
48 $(B25_PATH)/ts_section_parser.o: | 48 $(B25_PATH)/ts_section_parser.o: |
49 cd $(B25_PATH); make all | 49 cd $(B25_PATH); make all |
50 | 50 |
51 install: $(TARGET) | |
52 install -m 755 $(TARGET) $(PREFIX)/bin | |
53 | |
51 -include Makefile.dep | 54 -include Makefile.dep |