annotate recpt1/Makefile @ 11:4615eaf04415

support signal strength calculation.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 23 Feb 2009 14:53:12 +0900 (2009-02-23)
parents e3059e3cf5e7
children 0a6b831f4b89
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
1 #!/usr/bin/make -f
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
2
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
3 # options
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
4 B25 = -DB25
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
5
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
6 ifdef B25
3
6801fe7e04ff updated to ariv25v023
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 2
diff changeset
7 B25_PATH = ../arib25v023/arib25/src
0
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
8 B25_CLEAN = clean_b25
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
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
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
10 PCSC_LDLIBS ?= `pkg-config libpcsclite --libs`
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
11 B25_LIBS = $(PCSC_LDLIBS) -lm
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
12 endif
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
13
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
14 DIST = .
10
e3059e3cf5e7 revised Makefile.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
15 CC = gcc
e3059e3cf5e7 revised Makefile.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
16 CPPFLAGS = -I../driver -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(B25)
e3059e3cf5e7 revised Makefile.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
17 CFLAGS = -O2 -g -pthread
e3059e3cf5e7 revised Makefile.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
18 LDFLAGS =
0
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
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
e3059e3cf5e7 revised Makefile.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
21 LIBS = -lpthread
0
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
22 TARGET = $(DIST)/recpt1
10
e3059e3cf5e7 revised Makefile.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
23 DEPEND = Makefile.dep
0
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
24
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
25 all: $(TARGET)
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
26
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
27 clean: $(B25_CLEAN)
10
e3059e3cf5e7 revised Makefile.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
28 rm -f $(OBJS) $(TARGET) $(DEPEND)
0
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
29
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
30 ifdef B25
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
31 clean_b25:
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
32 cd $(B25_PATH); make clean
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
33 endif
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
34
10
e3059e3cf5e7 revised Makefile.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
35 $(TARGET): $(OBJS)
0
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
36 $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS) $(B25_LIBS)
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
37
10
e3059e3cf5e7 revised Makefile.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
38 $(DEPEND):
e3059e3cf5e7 revised Makefile.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
39 $(CC) -MM $(OBJS:.o=.c) $(CPPFLAGS) > $@
0
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
40
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
41 # B25_OBJS_EXT
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
42 $(B25_PATH)/arib_std_b25.o:
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
43 cd $(B25_PATH); make all
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
44 $(B25_PATH)/b_cas_card.o:
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
45 cd $(B25_PATH); make all
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
46 $(B25_PATH)/multi2.o:
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
47 cd $(B25_PATH); make all
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
48 $(B25_PATH)/ts_section_parser.o:
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
49 cd $(B25_PATH); make all
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
50
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
51 -include Makefile.dep