Let the new UI code compile under Windows

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1563 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
sth 2003-10-22 08:43:27 +00:00
parent fc4cd7c1af
commit 23d1ca554e
2 changed files with 8 additions and 3 deletions

View File

@ -5,7 +5,8 @@ TARGET = opensc.dll
HEADERS = opensc.h pkcs15.h emv.h \
errors.h types.h \
cardctl.h asn1.h log.h
cardctl.h asn1.h log.h \
ui.h
HEADERSDIR = $(TOPDIR)\src\include\opensc
@ -25,12 +26,14 @@ OBJECTS = \
card-etoken.obj card-tcos.obj card-emv.obj card-default.obj \
card-mcrd.obj card-starcos.obj \
\
ui.obj \
\
$(TOPDIR)\win32\version.res
all: install-headers $(TARGET)
!INCLUDE $(TOPDIR)\win32\Make.rules.mak
$(TARGET): $(OBJECTS) ..\scconf\scconf.lib ..\scdl\scdl.lib
$(TARGET): $(OBJECTS) ..\scconf\scconf.lib ..\scdl\scdl.lib ..\common\common.lib
perl $(TOPDIR)\win32\makedef.pl $*.def $* $(OBJECTS)
link $(LINKFLAGS) /dll /def:$*.def /implib:$*.lib /out:$(TARGET) $(OBJECTS) ..\scconf\scconf.lib ..\scdl\scdl.lib winscard.lib
link $(LINKFLAGS) /dll /def:$*.def /implib:$*.lib /out:$(TARGET) $(OBJECTS) ..\scconf\scconf.lib ..\scdl\scdl.lib ..\common\common.lib winscard.lib

View File

@ -16,7 +16,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifndef WIN32
#include <unistd.h>
#endif
#include <opensc/opensc.h>
#include <opensc/scdl.h>
#include <opensc/log.h>