/[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 1845 - (hide annotations) (download)
Mon Jan 30 14:46:27 2006 UTC (7 years, 3 months ago) by rousseau
File size: 2687 byte(s)
use $(foo) instead of @foo@ to do not replace the values but the variables
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 1737 # needed 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 1342 if WITHOUT_PCSC
40     PROVIDED_BY_PCSC = debug.c
41     endif
42    
43     libccid_la_SOURCES = $(COMMON) $(USB) $(TOKEN_PARSER) $(PROVIDED_BY_PCSC) $(T1)
44 rousseau 1845 libccid_la_LIBADD = $(LIBDL) $(LEXLIB) $(COREFOUNDATION) $(IOKIT) \
45     $(LIBUSB_LIBS) $(PTHREAD_LIBS)
46     libccid_la_CFLAGS = $(PCSC_CFLAGS) $(LIBUSB_CFLAGS) $(PTHREAD_CFLAGS)
47 rousseau 402
48 rousseau 641 libccidtwin_la_SOURCES = $(COMMON) $(SERIAL) $(T1)
49 rousseau 1845 libccidtwin_la_CFLAGS = $(PCSC_CFLAGS) $(PTHREAD_CFLAGS) -DTWIN_SERIAL
50     libccidtwin_la_LIBADD = $(PTHREAD_LIBS)
51 rousseau 402
52 rousseau 771 parse_SOURCES = tokenparser.l parse.c parser.h debug.c
53 rousseau 402 parse_LDADD = libccid.la
54 rousseau 1845 parse_CFLAGS = $(PCSC_CFLAGS) $(LIBUSB_CFLAGS)
55 rousseau 402
56 rousseau 988 EXTRA_DIST = Info.plist create_Info_plist.pl reader.conf.in \
57     towitoko/COPYING towitoko/README openct/LICENSE
58 rousseau 402
59 rousseau 893 tokenparser_fake.l: tokenparser.l
60 rousseau 543 cp -f $^ $@
61    
62 rousseau 578 # do not install the serial driver by default
63     # use explicitely 'make install_ccidtwin'
64     install: install_ccid
65 rousseau 402
66     install_ccid: libccid.la
67 rousseau 461 $(mkinstalldirs) $(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)/Contents/$(BUNDLE_HOST)/
68 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
69 rousseau 461 cp .libs/$(CCID_LIB) $(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)/Contents/$(BUNDLE_HOST)/$(CCID_LIB).$(VERSION)
70 rousseau 402
71     install_ccidtwin: libccidtwin.la
72 rousseau 564 $(mkinstalldirs) $(DESTDIR)$(ccidtwindir)
73     cp .libs/$(CCIDTWIN_LIB) $(DESTDIR)$(ccidtwindir)/$(CCIDTWIN_LIB).$(VERSION)
74 rousseau 444 if [ -e $(DESTDIR)/etc/reader.conf ] ; \
75     then \
76 rousseau 461 echo "Edit existing /etc/reader.conf" ; \
77 rousseau 444 else \
78     $(mkinstalldirs) $(DESTDIR)/etc ; \
79 rousseau 564 perl -ne "s|TARGET|$(ccidtwindir)/$(CCIDTWIN_LIB).$(VERSION)| ; print" $(srcdir)/reader.conf.in > $(DESTDIR)/etc/reader.conf ; \
80 rousseau 444 fi
81 rousseau 402
82 rousseau 578 # do not uninstall the serial driver by default
83     # use explicitely 'make uninstall_ccidtwin'
84     uninstall: uninstall_ccid
85 rousseau 402
86     uninstall_ccid:
87 rousseau 544 rm -rf $(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)
88 rousseau 402
89     uninstall_ccidtwin:
90 rousseau 564 rm -f $(DESTDIR)$(ccidtwindir)/$(CCIDTWIN_LIB).$(VERSION)
91 rousseau 402

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5