/[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 544 - (show annotations) (download)
Sat Nov 1 00:39:42 2003 UTC (9 years, 7 months ago) by rousseau
File size: 1901 byte(s)
$(CCID_BUNDLE) is a directory so use 'rm -r' in uninstall_ccid: target
1 # $Id$
2
3 CCID_BUNDLE = ifd-ccid.bundle
4 CCID_LIB = libccid.$(DYN_LIB_EXT)
5 CCIDTWIN_LIB = libccidtwin.$(DYN_LIB_EXT)
6 CCIDFTWIN_PATH = $(prefix)/pcsc/drivers/serial
7
8 lib_LTLIBRARIES = libccid.la libccidtwin.la
9 bin_PROGRAMS = parse
10
11 COMMON = ccid.c ccid.h \
12 commands.c commands.h debug.c debug.h defs.h ifdhandler.c \
13 ifdhandler.h pcscdefines.h utils.c utils.h
14 USB = ccid_usb.c ccid_usb.h
15 SERIAL = ccid_serial.c ccid_serial.h
16
17 # needed for MacOS X
18 if NEED_PARSER
19 TOKEN_PARSER = tokenparser_macosx.l
20 endif
21
22 libccid_la_SOURCES = $(COMMON) $(USB) $(TOKEN_PARSER)
23 libccid_la_LIBADD = @LIBDL@ @LEXLIB@ @COREFOUNDATION@ @IOKIT@ @LIBUSB@
24
25 libccidtwin_la_SOURCES = $(COMMON) $(SERIAL)
26 libccidtwin_la_CFLAGS = -DTWIN_SERIAL
27
28 parse_SOURCES = tokenparser.l parse.c parser.h
29 parse_LDADD = libccid.la
30
31 EXTRA_DIST = Info.plist reader.conf.in
32
33 tokenparser_macosx.l: tokenparser.l
34 cp -f $^ $@
35
36 install: install_ccid install_ccidtwin
37
38 install_ccid: libccid.la
39 $(mkinstalldirs) $(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)/Contents/$(BUNDLE_HOST)/
40 cp .libs/$(CCID_LIB) $(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)/Contents/$(BUNDLE_HOST)/$(CCID_LIB).$(VERSION)
41 sed s/VERSION/$(VERSION)/ $(srcdir)/Info.plist | sed s/TARGET/$(CCID_LIB)/ > $(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)/Contents/Info.plist
42
43 install_ccidtwin: libccidtwin.la
44 $(mkinstalldirs) $(DESTDIR)$(CCIDFTWIN_PATH)
45 cp .libs/$(CCIDTWIN_LIB) $(DESTDIR)$(CCIDFTWIN_PATH)/$(CCIDTWIN_LIB).$(VERSION)
46 if [ -e $(DESTDIR)/etc/reader.conf ] ; \
47 then \
48 echo "Edit existing /etc/reader.conf" ; \
49 else \
50 $(mkinstalldirs) $(DESTDIR)/etc ; \
51 perl -ne "s|TARGET|$(CCIDFTWIN_PATH)/$(CCIDTWIN_LIB).$(VERSION)| ; print" $(srcdir)/reader.conf.in > $(DESTDIR)/etc/reader.conf ; \
52 fi
53
54 uninstall: uninstall_ccid uninstall_ccidtwin
55
56 uninstall_ccid:
57 rm -rf $(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)
58
59 uninstall_ccidtwin:
60 rm -f $(DESTDIR)$(CCIDFTWIN_PATH)/$(CCIDTWIN_LIB).$(VERSION)
61

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5