build: 'auto-config' parameters
In configuration file replace the 'auto-config' parameters with the windows specific values.
This commit is contained in:
parent
78fe16654e
commit
0410a0c9e8
|
@ -1,8 +1,7 @@
|
||||||
|
|
||||||
SUBDIRS = win32 src
|
SUBDIRS = etc win32 src
|
||||||
|
|
||||||
all::
|
all::
|
||||||
|
|
||||||
all depend install clean::
|
all depend install clean::
|
||||||
@for %i in ( $(SUBDIRS) ) do \
|
@for %i in ( $(SUBDIRS) ) do @cmd /c "cd %i && $(MAKE) /nologo /f Makefile.mak $@"
|
||||||
@cmd /c "cd %i && $(MAKE) /nologo /f Makefile.mak $@"
|
|
||||||
|
|
|
@ -15,6 +15,7 @@ opensc.conf: opensc.conf.in force
|
||||||
.in:
|
.in:
|
||||||
sed \
|
sed \
|
||||||
-e 's|@pkgdatadir[@]|$(pkgdatadir)|g' \
|
-e 's|@pkgdatadir[@]|$(pkgdatadir)|g' \
|
||||||
|
-e 's|@libdir[@]|$(libdir)|g' \
|
||||||
-e 's|@DEFAULT_PCSC_PROVIDER[@]|$(DEFAULT_PCSC_PROVIDER)|g' \
|
-e 's|@DEFAULT_PCSC_PROVIDER[@]|$(DEFAULT_PCSC_PROVIDER)|g' \
|
||||||
-e 's|@DEFAULT_SM_MODULE[@]|$(DEFAULT_SM_MODULE)|g' \
|
-e 's|@DEFAULT_SM_MODULE[@]|$(DEFAULT_SM_MODULE)|g' \
|
||||||
-e 's|@DEBUG_FILE[@]|$(DEBUG_FILE)|g' \
|
-e 's|@DEBUG_FILE[@]|$(DEBUG_FILE)|g' \
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
all: opensc.conf
|
all: opensc.conf.win
|
||||||
|
|
||||||
opensc.conf: opensc.conf.in
|
opensc.conf.win: opensc.conf.in
|
||||||
@copy /y opensc.conf.in opensc.conf
|
@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::
|
clean::
|
||||||
del /Q opensc.conf
|
del /Q opensc.conf.win
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue