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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5