0
|
1 #!/usr/bin/make -f
|
|
2 # $Id: Makefile 5663 2008-09-15 17:53:59Z clworld $
|
|
3
|
|
4 # options
|
|
5 B25 = -DB25
|
|
6
|
|
7 ifdef B25
|
|
8 B25_PATH = ../arib25v021/arib25/src
|
|
9 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
|
|
12 PCSC_LDLIBS ?= `pkg-config libpcsclite --libs`
|
|
13 B25_LIBS = $(PCSC_LDLIBS) -lm
|
|
14 endif
|
|
15
|
|
16 DIST = .
|
|
17 CC = gcc
|
|
18 CFLAGS = -O2 -g -Wall -pthread -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(B25) -I../driver
|
|
19 LDFLAGS =
|
|
20
|
|
21 OBJS = test.o $(B25_OBJS_EXT)
|
|
22 LIBS = -lpthread
|
|
23 TARGET = $(DIST)/recpt1
|
|
24
|
|
25 all: $(TARGET)
|
|
26
|
|
27 clean: $(B25_CLEAN)
|
|
28 rm -f $(OBJS) $(TARGET)
|
|
29
|
|
30 ifdef B25
|
|
31 clean_b25:
|
|
32 cd $(B25_PATH); make clean
|
|
33 endif
|
|
34
|
|
35 $(TARGET): $(OBJS)
|
|
36 $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS) $(B25_LIBS)
|
|
37
|
|
38 depend:
|
|
39 $(CC) -MM $(OBJS:.o=.cpp) > Makefile.dep
|
|
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
|
|
51 -include Makefile.dep
|