Mercurial > pt1.oyama
annotate recpt1/Makefile @ 14:cad940a903f5
- replace host option with addr option.
- adde help option.
- tweak help.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Tue, 24 Feb 2009 22:26:07 +0900 |
parents | 0a6b831f4b89 |
children | b63f5c100e5a |
rev | line source |
---|---|
0 | 1 #!/usr/bin/make -f |
2 | |
3 # options | |
4 B25 = -DB25 | |
5 | |
6 ifdef B25 | |
3 | 7 B25_PATH = ../arib25v023/arib25/src |
0 | 8 B25_CLEAN = clean_b25 |
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` | |
11 B25_LIBS = $(PCSC_LDLIBS) -lm | |
12 endif | |
13 | |
12 | 14 PREFIX = /usr/local |
10 | 15 CC = gcc |
16 CPPFLAGS = -I../driver -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(B25) | |
17 CFLAGS = -O2 -g -pthread | |
18 LDFLAGS = | |
0 | 19 |
2
8ac7c59fefc9
added b25 decode functionality
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
1
diff
changeset
|
20 OBJS = recpt1.o $(B25_OBJS_EXT) decoder.o |
10 | 21 LIBS = -lpthread |
12 | 22 TARGET = recpt1 |
10 | 23 DEPEND = Makefile.dep |
0 | 24 |
25 all: $(TARGET) | |
26 | |
27 clean: $(B25_CLEAN) | |
10 | 28 rm -f $(OBJS) $(TARGET) $(DEPEND) |
0 | 29 |
30 ifdef B25 | |
31 clean_b25: | |
32 cd $(B25_PATH); make clean | |
33 endif | |
34 | |
10 | 35 $(TARGET): $(OBJS) |
0 | 36 $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS) $(B25_LIBS) |
37 | |
10 | 38 $(DEPEND): |
39 $(CC) -MM $(OBJS:.o=.c) $(CPPFLAGS) > $@ | |
0 | 40 |
41 # B25_OBJS_EXT | |
42 $(B25_PATH)/arib_std_b25.o: | |
43 cd $(B25_PATH); make all | |
44 $(B25_PATH)/b_cas_card.o: | |
45 cd $(B25_PATH); make all | |
46 $(B25_PATH)/multi2.o: | |
47 cd $(B25_PATH); make all | |
48 $(B25_PATH)/ts_section_parser.o: | |
49 cd $(B25_PATH); make all | |
50 | |
12 | 51 install: $(TARGET) |
52 install -m 755 $(TARGET) $(PREFIX)/bin | |
53 | |
0 | 54 -include Makefile.dep |