/[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 1254 - (hide annotations) (download)
Wed Sep 29 08:08:39 2004 UTC (8 years, 7 months ago) by rousseau
File size: 2442 byte(s)
use @AM_CPPFLAGS@ (defined by configure.in) instead of `pkg-config
libpcsclite --cflags` since PKG_CONFIG_PATH may not be correct here
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 rousseau 1254 AM_CPPFLAGS = @AM_CPPFLAGS@
8 rousseau 1185
9 rousseau 402 lib_LTLIBRARIES = libccid.la libccidtwin.la
10     bin_PROGRAMS = parse
11    
12 rousseau 641 COMMON = ccid.c \
13     ccid.h \
14 rousseau 877 ccid_ifdhandler.h \
15 rousseau 641 commands.c \
16     commands.h \
17     debug.h \
18     defs.h \
19     ifdhandler.c \
20     utils.c \
21 rousseau 877 utils.h
22 rousseau 402 USB = ccid_usb.c ccid_usb.h
23     SERIAL = ccid_serial.c ccid_serial.h
24 rousseau 988 T1 = towitoko/atr.c \
25     towitoko/atr.h \
26     towitoko/defines.h \
27     towitoko/pps.c \
28     towitoko/pps.h \
29     openct/buffer.c \
30     openct/buffer.h \
31     openct/checksum.c \
32     openct/checksum.h \
33     openct/proto-t1.c \
34     openct/proto-t1.h
35 rousseau 402
36 rousseau 893 # needed for MacOS X or when used without pcsc-lite (Solaris)
37 rousseau 402 if NEED_PARSER
38 rousseau 893 TOKEN_PARSER = tokenparser_fake.l
39 rousseau 402 endif
40    
41 rousseau 641 libccid_la_SOURCES = $(COMMON) $(USB) $(TOKEN_PARSER) $(T1)
42     libccid_la_LIBADD = @LIBDL@ @LEXLIB@ @COREFOUNDATION@ @IOKIT@ @LIBUSB@
43 rousseau 402
44 rousseau 641 libccidtwin_la_SOURCES = $(COMMON) $(SERIAL) $(T1)
45 rousseau 402 libccidtwin_la_CFLAGS = -DTWIN_SERIAL
46    
47 rousseau 771 parse_SOURCES = tokenparser.l parse.c parser.h debug.c
48 rousseau 402 parse_LDADD = libccid.la
49    
50 rousseau 988 EXTRA_DIST = Info.plist create_Info_plist.pl reader.conf.in \
51     towitoko/COPYING towitoko/README openct/LICENSE
52 rousseau 402
53 rousseau 893 tokenparser_fake.l: tokenparser.l
54 rousseau 543 cp -f $^ $@
55    
56 rousseau 578 # do not install the serial driver by default
57     # use explicitely 'make install_ccidtwin'
58     install: install_ccid
59 rousseau 402
60     install_ccid: libccid.la
61 rousseau 461 $(mkinstalldirs) $(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)/Contents/$(BUNDLE_HOST)/
62 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
63 rousseau 461 cp .libs/$(CCID_LIB) $(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)/Contents/$(BUNDLE_HOST)/$(CCID_LIB).$(VERSION)
64 rousseau 402
65     install_ccidtwin: libccidtwin.la
66 rousseau 564 $(mkinstalldirs) $(DESTDIR)$(ccidtwindir)
67     cp .libs/$(CCIDTWIN_LIB) $(DESTDIR)$(ccidtwindir)/$(CCIDTWIN_LIB).$(VERSION)
68 rousseau 444 if [ -e $(DESTDIR)/etc/reader.conf ] ; \
69     then \
70 rousseau 461 echo "Edit existing /etc/reader.conf" ; \
71 rousseau 444 else \
72     $(mkinstalldirs) $(DESTDIR)/etc ; \
73 rousseau 564 perl -ne "s|TARGET|$(ccidtwindir)/$(CCIDTWIN_LIB).$(VERSION)| ; print" $(srcdir)/reader.conf.in > $(DESTDIR)/etc/reader.conf ; \
74 rousseau 444 fi
75 rousseau 402
76 rousseau 578 # do not uninstall the serial driver by default
77     # use explicitely 'make uninstall_ccidtwin'
78     uninstall: uninstall_ccid
79 rousseau 402
80     uninstall_ccid:
81 rousseau 544 rm -rf $(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)
82 rousseau 402
83     uninstall_ccidtwin:
84 rousseau 564 rm -f $(DESTDIR)$(ccidtwindir)/$(CCIDTWIN_LIB).$(VERSION)
85 rousseau 402

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5