!ENDIF\r
\r
# default options\r
+!IFNDEF MACHINE
+MACHINE = X86
+!ENDIF
+
!IFNDEF ENABLE_IDN\r
USE_IDN = true\r
!ELSEIF "$(ENABLE_IDN)"=="yes"\r
SSH2 = static\r
!ENDIF\r
\r
+CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-$(MACHINE)
+
!IF "$(DEBUG)"=="yes"\r
CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-debug\r
!ELSE\r
DIRDIST = ..\builds\$(CONFIG_NAME_LIB)\\r
\r
$(MODE):\r
- @SET LIBCURL_DIROBJ=$(LIBCURL_DIROBJ)\r
+ @SET DIROBJ=$(LIBCURL_DIROBJ)
@SET MACRO_NAME=LIBCURL_OBJS\r
@SET OUTFILE=LIBCURL_OBJS.inc\r
@gen_resp_file.bat $(LIBCURL_OBJS)\r
- @SET LIBCURL_DIROBJ=$(CURL_DIROBJ)\r
+
+ @SET DIROBJ=$(CURL_DIROBJ)
@SET MACRO_NAME=CURL_OBJS\r
@SET OUTFILE=CURL_OBJS.inc\r
@gen_resp_file.bat $(CURL_OBJS)\r
+
+ @SET CONFIG_NAME_LIB=$(CONFIG_NAME_LIB)
+ @SET MACHINE=$(MACHINE)
@SET USE_IDN=$(USE_IDN)\r
@SET USE_IPV6=$(USE_IPV6)\r
@SET USE_SSPI=$(USE_SSPI)\r
GEN_PDB = true\r
!ENDIF\r
\r
-!IFNDEF MACHINE\r
-MACHINE = X86\r
-!ENDIF\r
\r
!IFDEF EMBEND_MANIFEST\r
MANIFESTTOOL = mt -manifest $(DIRDIST)\$(PROGRAM_NAME).manifest -outputresource:$(DIRDIST)\$(PROGRAM_NAME);1\r
!ERROR please choose a valid mode\r
!ENDIF\r
\r
-CONFIG_NAME_LIB = libcurl\r
+
\r
# CURL_XX macros are for the curl.exe command\r
\r
\r
CURL_CC = $(CC)\r
CURL_RC_FLAGS = /i../include /dDEBUGBUILD=1 /Fo $@ $(CURL_SRC_DIR)\curl.rc\r
-CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-debug\r
!ELSE\r
RC_FLAGS = /dDEBUGBUILD=0 /Fo $@ $(LIBCURL_SRC_DIR)\libcurl.rc\r
CC = $(CC_NODEBUG) $(RTLIB)\r
\r
CURL_CC = $(CC)\r
CURL_RC_FLAGS = /i../include /dDEBUGBUILD=0 /Fo $@ $(CURL_SRC_DIR)\curl.rc\r
-CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-release\r
!ENDIF\r
\r
CURL_CC = $(CURL_CC) $(CURL_CFLAGS)\r
CURL_LIBS = /IMPLIB:$(LIB_DIROBJ)\$(LIB_NAME_IMP)\r
!ENDIF\r
RESOURCE = $(LIB_DIROBJ)\libcurl.res\r
-CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-dll\r
\r
# AS_DLL\r
!ELSE\r
!ENDIF\r
LNK = $(LNKLIB) $(WIN_LIBS) /out:$(LIB_DIROBJ)\$(TARGET)\r
CC = $(CC) $(CFLAGS_LIBCURL_STATIC)\r
-CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-static\r
\r
# AS_DLL\r
!ENDIF\r
!IF "$(USE_SSL)"=="true"\r
CFLAGS = $(CFLAGS) $(SSL_CFLAGS)\r
LFLAGS = $(LFLAGS) $(SSL_LFLAGS) $(SSL_LIBS)\r
-CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-ssl-$(SSL)\r
!ENDIF\r
\r
!IF "$(USE_ZLIB)"=="true"\r
CFLAGS = $(CFLAGS) $(ZLIB_CFLAGS)\r
LFLAGS = $(LFLAGS) $(ZLIB_LFLAGS) $(ZLIB_LIBS)\r
-CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-zlib-$(ZLIB)\r
!ENDIF\r
\r
!IF "$(USE_SSH2)"=="true"\r
CFLAGS = $(CFLAGS) $(SSH2_CFLAGS)\r
LFLAGS = $(LFLAGS) $(SSH2_LFLAGS) $(SSH2_LIBS)\r
-CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-ssh2-$(SSH2)\r
!ENDIF\r
\r
!IF "$(USE_IPV6)"=="true"\r
CFLAGS = $(CFLAGS) $(IPV6_CFLAGS)\r
-CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-ipv6\r
!ENDIF\r
\r
!IF "$(USE_SSPI)"=="true"\r
CFLAGS = $(CFLAGS) $(SSPI_CFLAGS)\r
-CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-sspi\r
!ENDIF\r
\r
!IF "$(USE_SPNEGO)"=="true"\r
CFLAGS = $(CFLAGS) $(SPNEGO_CFLAGS)\r
-CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-spnego\r
!ENDIF\r
\r
!IF "$(USE_WINSSL)"=="true"\r
-CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-winssl\r
+#
!ENDIF\r
\r
!IF "$(GEN_PDB)"=="true"\r
@echo LFLAGS: $(LFLAGS)\r
@echo GenPDB: $(GEN_PDB)\r
@echo Debug: $(DEBUG)\r
+ @echo Machine: $(MACHINE)
$(LNK) $(LFLAGS) $(LIB_OBJS)\r
@echo Copying libs...\r
@if exist $(LIB_DIROBJ)\$(LIB_NAME_DLL) copy $(LIB_DIROBJ)\$(LIB_NAME_DLL) $(DIRDIST)\bin\ /y >nul 2<&1\r