/[pcsclite]/trunk/Drivers/ccid/src/Makefile.am
ViewVC logotype

Contents of /trunk/Drivers/ccid/src/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 877 - (show annotations) (download)
Mon May 17 14:35:51 2004 UTC (9 years ago) by rousseau
File size: 2350 byte(s)
reorganize header files
1 # $Id$
2
3 CCID_BUNDLE = ifd-ccid.bundle
4 CCID_LIB = libccid.$(DYN_LIB_EXT)
5 CCIDTWIN_LIB = libccidtwin.$(DYN_LIB_EXT)
6
7 lib_LTLIBRARIES = libccid.la libccidtwin.la
8 bin_PROGRAMS = parse
9
10 COMMON = ccid.c \
11 ccid.h \
12 ccid_ifdhandler.h \
13 commands.c \
14 commands.h \
15 debug.h \
16 defs.h \
17 ifdhandler.c \
18 utils.c \
19 utils.h
20 USB = ccid_usb.c ccid_usb.h
21 SERIAL = ccid_serial.c ccid_serial.h
22 T1 = protocol_t1/apdu.h \
23 protocol_t1/atr.c \
24 protocol_t1/atr.h \
25 protocol_t1/defines.h \
26 protocol_t1/pps.c \
27 protocol_t1/pps.h \
28 protocol_t1/protocol_t1.c \
29 protocol_t1/protocol_t1.h \
30 protocol_t1/t1_block.c \
31 protocol_t1/t1_block.h
32
33 # needed for MacOS X
34 if NEED_PARSER
35 TOKEN_PARSER = tokenparser_macosx.l
36 endif
37
38 libccid_la_SOURCES = $(COMMON) $(USB) $(TOKEN_PARSER) $(T1)
39 libccid_la_LIBADD = @LIBDL@ @LEXLIB@ @COREFOUNDATION@ @IOKIT@ @LIBUSB@
40
41 libccidtwin_la_SOURCES = $(COMMON) $(SERIAL) $(T1)
42 libccidtwin_la_CFLAGS = -DTWIN_SERIAL
43
44 parse_SOURCES = tokenparser.l parse.c parser.h debug.c
45 parse_LDADD = libccid.la
46
47 EXTRA_DIST = Info.plist create_Info_plist.pl reader.conf.in
48
49 tokenparser_macosx.l: tokenparser.l
50 cp -f $^ $@
51
52 # do not install the serial driver by default
53 # use explicitely 'make install_ccidtwin'
54 install: install_ccid
55
56 install_ccid: libccid.la
57 $(mkinstalldirs) $(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)/Contents/$(BUNDLE_HOST)/
58 cp .libs/$(CCID_LIB) $(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)/Contents/$(BUNDLE_HOST)/$(CCID_LIB).$(VERSION)
59 $(srcdir)/create_Info_plist.pl $(srcdir)/../readers/supported_readers.txt $(srcdir)/Info.plist | sed s/VERSION/$(VERSION)/ | sed s/TARGET/$(CCID_LIB)/ > $(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)/Contents/Info.plist
60
61 install_ccidtwin: libccidtwin.la
62 $(mkinstalldirs) $(DESTDIR)$(ccidtwindir)
63 cp .libs/$(CCIDTWIN_LIB) $(DESTDIR)$(ccidtwindir)/$(CCIDTWIN_LIB).$(VERSION)
64 if [ -e $(DESTDIR)/etc/reader.conf ] ; \
65 then \
66 echo "Edit existing /etc/reader.conf" ; \
67 else \
68 $(mkinstalldirs) $(DESTDIR)/etc ; \
69 perl -ne "s|TARGET|$(ccidtwindir)/$(CCIDTWIN_LIB).$(VERSION)| ; print" $(srcdir)/reader.conf.in > $(DESTDIR)/etc/reader.conf ; \
70 fi
71
72 # do not uninstall the serial driver by default
73 # use explicitely 'make uninstall_ccidtwin'
74 uninstall: uninstall_ccid
75
76 uninstall_ccid:
77 rm -rf $(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)
78
79 uninstall_ccidtwin:
80 rm -f $(DESTDIR)$(ccidtwindir)/$(CCIDTWIN_LIB).$(VERSION)
81

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.5