build: 'auto-config' parameters

In configuration file replace the 'auto-config' parameters with the windows specific values.
This commit is contained in:
Viktor Tarasov 2012-06-07 19:16:07 +02:00
parent 78fe16654e
commit 0410a0c9e8
3 changed files with 7 additions and 7 deletions

View File

@ -1,8 +1,7 @@
SUBDIRS = win32 src
SUBDIRS = etc win32 src
all::
all depend install clean::
@for %i in ( $(SUBDIRS) ) do \
@cmd /c "cd %i && $(MAKE) /nologo /f Makefile.mak $@"
@for %i in ( $(SUBDIRS) ) do @cmd /c "cd %i && $(MAKE) /nologo /f Makefile.mak $@"

View File

@ -15,6 +15,7 @@ opensc.conf: opensc.conf.in force
.in:
sed \
-e 's|@pkgdatadir[@]|$(pkgdatadir)|g' \
-e 's|@libdir[@]|$(libdir)|g' \
-e 's|@DEFAULT_PCSC_PROVIDER[@]|$(DEFAULT_PCSC_PROVIDER)|g' \
-e 's|@DEFAULT_SM_MODULE[@]|$(DEFAULT_SM_MODULE)|g' \
-e 's|@DEBUG_FILE[@]|$(DEBUG_FILE)|g' \

View File

@ -1,8 +1,8 @@
all: opensc.conf
all: opensc.conf.win
opensc.conf: opensc.conf.in
@copy /y opensc.conf.in opensc.conf
opensc.conf.win: opensc.conf.in
@IF DEFINED USE_SED (sed.exe s/@DEBUG_FILE@/\%TEMP\%\\opensc-debug.log/;s/@DEFAULT_SM_MODULE@/smm-local.dll/ opensc.conf.in > opensc.conf.win) ELSE (copy /y opensc.conf.in opensc.conf.win)
clean::
del /Q opensc.conf
del /Q opensc.conf.win