Mercurial > pt1
comparison recpt1/Makefile @ 10:e3059e3cf5e7
revised Makefile.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 23 Feb 2009 14:35:26 +0900 |
parents | 6801fe7e04ff |
children | 0a6b831f4b89 |
comparison
equal
deleted
inserted
replaced
9:07b2fc07ff48 | 10:e3059e3cf5e7 |
---|---|
1 #!/usr/bin/make -f | 1 #!/usr/bin/make -f |
2 # $Id: Makefile 5663 2008-09-15 17:53:59Z clworld $ | |
3 | 2 |
4 # options | 3 # options |
5 B25 = -DB25 | 4 B25 = -DB25 |
6 | 5 |
7 ifdef B25 | 6 ifdef B25 |
8 B25_PATH = ../arib25v023/arib25/src | 7 B25_PATH = ../arib25v023/arib25/src |
9 B25_CLEAN = clean_b25 | 8 B25_CLEAN = clean_b25 |
10 # B25_OBJS = B25Decoder.o | |
11 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 |
12 PCSC_LDLIBS ?= `pkg-config libpcsclite --libs` | 10 PCSC_LDLIBS ?= `pkg-config libpcsclite --libs` |
13 B25_LIBS = $(PCSC_LDLIBS) -lm | 11 B25_LIBS = $(PCSC_LDLIBS) -lm |
14 endif | 12 endif |
15 | 13 |
16 DIST = . | 14 DIST = . |
17 CC = gcc | 15 CC = gcc |
18 CFLAGS = -O2 -g -Wall -pthread -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(B25) -I../driver | 16 CPPFLAGS = -I../driver -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(B25) |
19 LDFLAGS = | 17 CFLAGS = -O2 -g -pthread |
18 LDFLAGS = | |
20 | 19 |
21 OBJS = recpt1.o $(B25_OBJS_EXT) decoder.o | 20 OBJS = recpt1.o $(B25_OBJS_EXT) decoder.o |
22 LIBS = -lpthread | 21 LIBS = -lpthread |
23 TARGET = $(DIST)/recpt1 | 22 TARGET = $(DIST)/recpt1 |
23 DEPEND = Makefile.dep | |
24 | 24 |
25 all: $(TARGET) | 25 all: $(TARGET) |
26 | 26 |
27 clean: $(B25_CLEAN) | 27 clean: $(B25_CLEAN) |
28 rm -f $(OBJS) $(TARGET) | 28 rm -f $(OBJS) $(TARGET) $(DEPEND) |
29 | 29 |
30 ifdef B25 | 30 ifdef B25 |
31 clean_b25: | 31 clean_b25: |
32 cd $(B25_PATH); make clean | 32 cd $(B25_PATH); make clean |
33 endif | 33 endif |
34 | 34 |
35 $(TARGET): $(OBJS) | 35 $(TARGET): $(OBJS) |
36 $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS) $(B25_LIBS) | 36 $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS) $(B25_LIBS) |
37 | 37 |
38 depend: | 38 $(DEPEND): |
39 $(CC) -MM $(OBJS:.o=.cpp) > Makefile.dep | 39 $(CC) -MM $(OBJS:.o=.c) $(CPPFLAGS) > $@ |
40 | 40 |
41 # B25_OBJS_EXT | 41 # B25_OBJS_EXT |
42 $(B25_PATH)/arib_std_b25.o: | 42 $(B25_PATH)/arib_std_b25.o: |
43 cd $(B25_PATH); make all | 43 cd $(B25_PATH); make all |
44 $(B25_PATH)/b_cas_card.o: | 44 $(B25_PATH)/b_cas_card.o: |