[Pcsclite-cvs-commit] Drivers/ccid/src Makefile.am,1.3,1.4

rousseau@quantz.debian.org rousseau@quantz.debian.org
Sat, 01 Nov 2003 00:55:21 +0100


Update of /cvsroot/pcsclite/Drivers/ccid/src
In directory quantz:/tmp/cvs-serv25379

Modified Files:
	Makefile.am 
Log Message:
modify the hack to compile under MacOSX.


Index: Makefile.am
===================================================================
RCS file: /cvsroot/pcsclite/Drivers/ccid/src/Makefile.am,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- Makefile.am	22 Sep 2003 14:22:51 -0000	1.3
+++ Makefile.am	31 Oct 2003 23:55:18 -0000	1.4
@@ -16,21 +16,22 @@
 
 # needed for MacOS X
 if NEED_PARSER
-CCID_PARSER = tokenparser.l
-else
-PARSE_PARSER = tokenparser.l
+TOKEN_PARSER = tokenparser_macosx.l
 endif
 
-libccid_la_SOURCES = $(COMMON) $(USB) $(CCID_PARSER)
+libccid_la_SOURCES = $(COMMON) $(USB) $(TOKEN_PARSER)
 libccid_la_LIBADD = @LIBDL@ @LEXLIB@ @COREFOUNDATION@ @IOKIT@ @LIBUSB@
 
 libccidtwin_la_SOURCES = $(COMMON) $(SERIAL)
 libccidtwin_la_CFLAGS = -DTWIN_SERIAL
 
-parse_SOURCES = $(PARSE_PARSER) parse.c parser.h
+parse_SOURCES = tokenparser.l parse.c parser.h
 parse_LDADD = libccid.la
 
 EXTRA_DIST = Info.plist reader.conf.in
+
+tokenparser_macosx.l: tokenparser.l
+	cp -f $^ $@
 
 install: install_ccid install_ccidtwin