-
Notifications
You must be signed in to change notification settings - Fork 711
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed and cleaned up nmake Makefiles
- Loading branch information
1 parent
ab2a65e
commit 0898d06
Showing
15 changed files
with
74 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
|
||
SUBDIRS = etc win32 src | ||
|
||
all:: | ||
default: all | ||
|
||
all depend install clean:: | ||
all clean:: | ||
@for %i in ( $(SUBDIRS) ) do @cmd /c "cd %i && $(MAKE) /nologo /f Makefile.mak $@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
all clean:: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
TOPDIR = ..\.. | ||
|
||
!IF "$(OPENSSL_DEF)" == "/DENABLE_OPENSSL" | ||
TARGET = libsm.lib | ||
OBJECTS = sm-common.obj | ||
|
||
all: $(TARGET) | ||
|
||
!INCLUDE $(TOPDIR)\win32\Make.rules.mak | ||
|
||
!IF "$(OPENSSL_DEF)" == "/DENABLE_OPENSSL" | ||
|
||
$(TARGET): $(OBJECTS) | ||
lib $(LIBFLAGS) /out:$(TARGET) $(OBJECTS) | ||
|
||
!INCLUDE $(TOPDIR)\win32\Make.rules.mak | ||
|
||
!ELSE | ||
all: | ||
$(TARGET): | ||
|
||
!ENDIF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
TOPDIR = ..\.. | ||
|
||
!IF "$(OPENSSL_DEF)" == "/DENABLE_OPENSSL" | ||
TARGET = smm-local.dll | ||
|
||
OBJECTS = smm-local.obj sm-global-platform.obj sm-cwa14890.obj sm-card-iasecc.obj sm-card-authentic.obj | ||
LIBS = $(TOPDIR)\src\libsm\libsm.lib $(TOPDIR)\src\libopensc\opensc_a.lib $(TOPDIR)\src\common\libscdl.lib | ||
|
||
all: $(TARGET) | ||
|
||
!INCLUDE $(TOPDIR)\win32\Make.rules.mak | ||
|
||
$(TARGET): $(OBJECTS) ..\libsm\libsm.lib ..\libopensc\opensc.lib | ||
!IF "$(OPENSSL_DEF)" == "/DENABLE_OPENSSL" | ||
$(TARGET): $(OBJECTS) $(LIBS) | ||
echo LIBRARY $* > $*.def | ||
echo EXPORTS >> $*.def | ||
type $*.exports >> $*.def | ||
link /dll $(LINKFLAGS) /def:$*.def /out:$(TARGET) $(OBJECTS) ..\libsm\libsm.lib ..\libopensc\opensc_a.lib $(ZLIB_LIB) $(OPENSSL_LIB) ..\common\libscdl.lib ws2_32.lib gdi32.lib advapi32.lib Crypt32.lib User32.lib | ||
link /dll $(LINKFLAGS) /def:$*.def /out:$(TARGET) $(OBJECTS) $(LIBS) $(ZLIB_LIB) $(OPENSSL_LIB) ws2_32.lib gdi32.lib advapi32.lib Crypt32.lib User32.lib | ||
if EXIST $(TARGET).manifest mt -manifest $(TARGET).manifest -outputresource:$(TARGET);2 | ||
|
||
.c.obj: | ||
cl $(COPTS) /c $< | ||
|
||
!ELSE | ||
all: | ||
$(TARGET): | ||
|
||
!ENDIF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,18 @@ | ||
|
||
TOPDIR = ..\.. | ||
|
||
TARGETS = base64.exe p15dump.exe \ | ||
p15dump.exe pintest.exe # prngtest.exe lottery.exe | ||
|
||
all: print.obj sc-test.obj $(TARGETS) | ||
$(TARGETS): $(TOPDIR)\win32\versioninfo.res print.obj sc-test.obj \ | ||
..\common\common.lib ..\libopensc\opensc.lib | ||
OBJECTS = print.obj sc-test.obj $(TOPDIR)\win32\versioninfo.res | ||
LIBS = $(TOPDIR)\src\common\common.lib $(TOPDIR)\src\libopensc\opensc.lib | ||
|
||
all: $(TARGETS) | ||
|
||
!INCLUDE $(TOPDIR)\win32\Make.rules.mak | ||
|
||
.c.obj: | ||
cl $(COPTS) /c $< | ||
$(TARGETS): $(OBJECTS) $(LIBS) | ||
|
||
.c.exe: | ||
cl $(COPTS) /c $< | ||
link $(LINKFLAGS) /pdb:$*.pdb /out:$@ $*.obj sc-test.obj print.obj \ | ||
..\common\common.lib ..\libopensc\opensc.lib $(TOPDIR)\win32\versioninfo.res | ||
link $(LINKFLAGS) /pdb:$*.pdb /out:$@ $*.obj $(OBJECTS) $(LIBS) | ||
if EXIST $@.manifest mt -manifest $@.manifest -outputresource:$@;1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
TOPDIR = ..\.. | ||
|
||
default: all | ||
|
||
!INCLUDE $(TOPDIR)\win32\Make.rules.mak | ||
|
||
TARGETS = opensc-tool.exe opensc-explorer.exe pkcs15-tool.exe pkcs15-crypt.exe \ | ||
pkcs11-tool.exe cardos-tool.exe eidenv.exe openpgp-tool.exe iasecc-tool.exe \ | ||
$(PROGRAMS_OPENSSL) | ||
|
||
$(TARGETS): versioninfo-tools.res util.obj | ||
OBJECTS = util.obj versioninfo-tools.res | ||
LIBS = $(TOPDIR)\src\common\common.lib \ | ||
$(TOPDIR)\src\scconf\scconf.lib \ | ||
$(TOPDIR)\src\libopensc\opensc.lib \ | ||
$(TOPDIR)\src\pkcs15init\pkcs15init.lib \ | ||
$(TOPDIR)\src\common\libpkcs11.lib \ | ||
$(TOPDIR)\src\common\libscdl.lib | ||
|
||
all: $(TARGETS) | ||
|
||
.c.obj: | ||
cl $(COPTS) /c $< | ||
$(TARGETS): $(OBJECTS) $(LIBS) | ||
|
||
.c.exe: | ||
cl $(COPTS) /c $< | ||
link $(LINKFLAGS) /pdb:$*.pdb /out:$@ $*.obj util.obj ..\common\common.lib \ | ||
..\scconf\scconf.lib ..\libopensc\opensc.lib ..\pkcs15init\pkcs15init.lib \ | ||
..\common\libpkcs11.lib ..\common\libscdl.lib versioninfo-tools.res $(OPENSSL_LIB) gdi32.lib | ||
if EXIST $@.manifest mt -manifest $@.manifest -outputresource:$@;1 | ||
link $(LINKFLAGS) /pdb:$*.pdb /out:$@ $*.obj $(OBJECTS) $(LIBS) $(OPENSSL_LIB) gdi32.lib | ||
if EXIST $@.manifest mt -manifest $@.manifest -outputresource:$@;1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters