Mercurial > pt1
annotate recpt1/Makefile @ 42:a35e352f6c4a
rename BS-i to BS-TBS
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Fri, 05 Jun 2009 16:34:28 +0900 (2009-06-05) |
parents | b63f5c100e5a |
children | 9b36fdf7d5d0 |
rev | line source |
---|---|
12 | 1 PREFIX = /usr/local |
10 | 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 | 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 | 9 LDFLAGS = |
0 | 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 | 12 TARGET = recpt1 |
10 | 13 DEPEND = Makefile.dep |
0 | 14 |
15 all: $(TARGET) | |
16 | |
21
b63f5c100e5a
made recpt1 link against b25 shared object.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
12
diff
changeset
|
17 clean: |
10 | 18 rm -f $(OBJS) $(TARGET) $(DEPEND) |
0 | 19 |
10 | 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 | 22 |
10 | 23 $(DEPEND): |
24 $(CC) -MM $(OBJS:.o=.c) $(CPPFLAGS) > $@ | |
0 | 25 |
12 | 26 install: $(TARGET) |
27 install -m 755 $(TARGET) $(PREFIX)/bin | |
28 | |
0 | 29 -include Makefile.dep |