/[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 988 - (hide annotations) (download)
Wed Jun 30 09:42:26 2004 UTC (8 years, 10 months ago) by rousseau
File size: 2413 byte(s)
- rename protocol_t1/ in towitoko/ to reflect the project the code comes from
- remove the now useless files from towitoko/ and add the files from openct/
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 rousseau 877 ccid_ifdhandler.h \
13 rousseau 641 commands.c \
14     commands.h \
15     debug.h \
16     defs.h \
17     ifdhandler.c \
18     utils.c \
19 rousseau 877 utils.h
20 rousseau 402 USB = ccid_usb.c ccid_usb.h
21     SERIAL = ccid_serial.c ccid_serial.h
22 rousseau 988 T1 = towitoko/atr.c \
23     towitoko/atr.h \
24     towitoko/defines.h \
25     towitoko/pps.c \
26     towitoko/pps.h \
27     openct/buffer.c \
28     openct/buffer.h \
29     openct/checksum.c \
30     openct/checksum.h \
31     openct/proto-t1.c \
32     openct/proto-t1.h
33 rousseau 402
34 rousseau 893 # needed for MacOS X or when used without pcsc-lite (Solaris)
35 rousseau 402 if NEED_PARSER
36 rousseau 893 TOKEN_PARSER = tokenparser_fake.l
37 rousseau 402 endif
38    
39 rousseau 641 libccid_la_SOURCES = $(COMMON) $(USB) $(TOKEN_PARSER) $(T1)
40     libccid_la_LIBADD = @LIBDL@ @LEXLIB@ @COREFOUNDATION@ @IOKIT@ @LIBUSB@
41 rousseau 402
42 rousseau 641 libccidtwin_la_SOURCES = $(COMMON) $(SERIAL) $(T1)
43 rousseau 402 libccidtwin_la_CFLAGS = -DTWIN_SERIAL
44    
45 rousseau 771 parse_SOURCES = tokenparser.l parse.c parser.h debug.c
46 rousseau 402 parse_LDADD = libccid.la
47    
48 rousseau 988 EXTRA_DIST = Info.plist create_Info_plist.pl reader.conf.in \
49     towitoko/COPYING towitoko/README openct/LICENSE
50 rousseau 402
51 rousseau 893 tokenparser_fake.l: tokenparser.l
52 rousseau 543 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 rousseau 894 $(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
61 rousseau 461 cp .libs/$(CCID_LIB) $(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)/Contents/$(BUNDLE_HOST)/$(CCID_LIB).$(VERSION)
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