annotate recpt1/Makefile @ 33:f25820d90249

make recpt1 try other tuner devices when it fails to tune a tuner to the specified channel.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Tue, 03 Mar 2009 17:59:17 +0900
parents b63f5c100e5a
children 9b36fdf7d5d0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12
0a6b831f4b89 added install rule.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 10
diff changeset
1 PREFIX = /usr/local
10
e3059e3cf5e7 revised Makefile.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
2 CC = gcc
21
b63f5c100e5a made recpt1 link against b25 shared object.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 12
diff changeset
3 CPPFLAGS = -I../driver -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DB25
10
e3059e3cf5e7 revised Makefile.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
4 CFLAGS = -O2 -g -pthread
21
b63f5c100e5a made recpt1 link against b25 shared object.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 12
diff changeset
5
b63f5c100e5a made recpt1 link against b25 shared object.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 12
diff changeset
6 PCSC_LIBS = `pkg-config libpcsclite --libs`
b63f5c100e5a made recpt1 link against b25 shared object.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 12
diff changeset
7 B25_LIBS = -larib25
b63f5c100e5a made recpt1 link against b25 shared object.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 12
diff changeset
8 LIBS = $(PCSC_LIBS) $(B25_LIBS) -lm -lpthread
10
e3059e3cf5e7 revised Makefile.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
9 LDFLAGS =
0
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
10
21
b63f5c100e5a made recpt1 link against b25 shared object.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 12
diff changeset
11 OBJS = recpt1.o decoder.o
12
0a6b831f4b89 added install rule.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 10
diff changeset
12 TARGET = recpt1
10
e3059e3cf5e7 revised Makefile.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
13 DEPEND = Makefile.dep
0
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
14
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
15 all: $(TARGET)
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
16
21
b63f5c100e5a made recpt1 link against b25 shared object.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 12
diff changeset
17 clean:
10
e3059e3cf5e7 revised Makefile.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
18 rm -f $(OBJS) $(TARGET) $(DEPEND)
0
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
19
10
e3059e3cf5e7 revised Makefile.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
20 $(TARGET): $(OBJS)
21
b63f5c100e5a made recpt1 link against b25 shared object.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 12
diff changeset
21 $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
0
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
22
10
e3059e3cf5e7 revised Makefile.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
23 $(DEPEND):
e3059e3cf5e7 revised Makefile.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
24 $(CC) -MM $(OBJS:.o=.c) $(CPPFLAGS) > $@
0
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
25
12
0a6b831f4b89 added install rule.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 10
diff changeset
26 install: $(TARGET)
0a6b831f4b89 added install rule.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 10
diff changeset
27 install -m 755 $(TARGET) $(PREFIX)/bin
0a6b831f4b89 added install rule.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 10
diff changeset
28
0
67e8eca28a80 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
29 -include Makefile.dep