mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
enabled statically linked builds.
This commit is contained in:
parent
9d54f9a6b7
commit
f14195f786
@ -105,8 +105,6 @@ else
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LDLIBS =
|
|
||||||
|
|
||||||
NDK_ROOT = $(NDKBASE)/ndk
|
NDK_ROOT = $(NDKBASE)/ndk
|
||||||
SDK_CLIB = $(NDK_ROOT)/nwsdk
|
SDK_CLIB = $(NDK_ROOT)/nwsdk
|
||||||
SDK_LIBC = $(NDK_ROOT)/libc
|
SDK_LIBC = $(NDK_ROOT)/libc
|
||||||
@ -116,18 +114,22 @@ INCLUDES = -I. -I../include
|
|||||||
|
|
||||||
ifdef WITH_ARES
|
ifdef WITH_ARES
|
||||||
INCLUDES += -I../ares
|
INCLUDES += -I../ares
|
||||||
LIBCARES = ../ares/libcares.lib
|
LDLIBS = ../ares/libcares.lib
|
||||||
endif
|
|
||||||
ifdef WITH_ZLIB
|
|
||||||
INCLUDES += -I$(ZLIB_PATH)
|
|
||||||
IMPORTS = @$(ZLIB_PATH)/nw/libz.imp
|
|
||||||
MODULES = libz.nlm
|
|
||||||
endif
|
endif
|
||||||
ifdef WITH_SSL
|
ifdef WITH_SSL
|
||||||
INCLUDES += -I$(OPENSSL_PATH)/outinc_nw_libc -I$(OPENSSL_PATH)/outinc_nw_libc/openssl
|
INCLUDES += -I$(OPENSSL_PATH)/outinc_nw_libc -I$(OPENSSL_PATH)/outinc_nw_libc/openssl
|
||||||
LIBSSL = $(OPENSSL_PATH)/out_nw_libc/crypto.lib $(OPENSSL_PATH)/out_nw_libc/ssl.lib
|
LDLIBS += $(OPENSSL_PATH)/out_nw_libc/crypto.lib $(OPENSSL_PATH)/out_nw_libc/ssl.lib
|
||||||
IMPORTS += GetProcessSwitchCount RunningProcess
|
IMPORTS += GetProcessSwitchCount RunningProcess
|
||||||
endif
|
endif
|
||||||
|
ifdef WITH_ZLIB
|
||||||
|
INCLUDES += -I$(ZLIB_PATH)
|
||||||
|
ifdef LINK_STATIC
|
||||||
|
LDLIBS += $(ZLIB_PATH)/nw/libz.lib
|
||||||
|
else
|
||||||
|
IMPORTS += @$(ZLIB_PATH)/nw/libz.imp
|
||||||
|
MODULES += libz.nlm
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(LIBARCH),LIBC)
|
ifeq ($(LIBARCH),LIBC)
|
||||||
INCLUDES += -I$(SDK_LIBC)/include -I$(SDK_LIBC)/include/nks
|
INCLUDES += -I$(SDK_LIBC)/include -I$(SDK_LIBC)/include/nks
|
||||||
@ -164,7 +166,7 @@ endif
|
|||||||
# Makefile.inc provides the CSOURCES and HHEADERS defines
|
# Makefile.inc provides the CSOURCES and HHEADERS defines
|
||||||
include Makefile.inc
|
include Makefile.inc
|
||||||
|
|
||||||
OBJS := $(patsubst %.c,$(OBJDIR)/%.o,$(strip $(CSOURCES))) $(LIBCARES) $(LIBSSL)
|
OBJS := $(patsubst %.c,$(OBJDIR)/%.o,$(strip $(CSOURCES))) $(LDLIBS)
|
||||||
|
|
||||||
OBJL = $(OBJS) $(OBJDIR)/nwlib.o
|
OBJL = $(OBJS) $(OBJDIR)/nwlib.o
|
||||||
|
|
||||||
@ -283,11 +285,8 @@ ifdef IMPORTS
|
|||||||
@echo $(DL)import $(IMPORTS)$(DL) >> $@
|
@echo $(DL)import $(IMPORTS)$(DL) >> $@
|
||||||
endif
|
endif
|
||||||
ifeq ($(LD),nlmconv)
|
ifeq ($(LD),nlmconv)
|
||||||
ifdef WITH_ARES
|
ifdef LDLIBS
|
||||||
@echo $(DL)input $(LIBCARES)$(DL) >> $@
|
@echo $(DL)input $(LDLIBS)$(DL) >> $@
|
||||||
endif
|
|
||||||
ifdef WITH_SSL
|
|
||||||
@echo $(DL)input $(LIBSSL)$(DL) >> $@
|
|
||||||
endif
|
endif
|
||||||
@echo $(DL)input $(OBJL)$(DL) >> $@
|
@echo $(DL)input $(OBJL)$(DL) >> $@
|
||||||
@echo $(DL)input $(PRELUDE)$(DL) >> $@
|
@echo $(DL)input $(PRELUDE)$(DL) >> $@
|
||||||
|
@ -34,8 +34,6 @@ DESCR = cURL $(LIBCURL_VERSION_STR) - http://curl.haxx.se
|
|||||||
MTSAFE = YES
|
MTSAFE = YES
|
||||||
STACK = 64000
|
STACK = 64000
|
||||||
SCREEN = $(TARGET) commandline utility
|
SCREEN = $(TARGET) commandline utility
|
||||||
MODULES = libcurl.nlm
|
|
||||||
IMPORTS = @../lib/libcurl.imp
|
|
||||||
# Comment the line below if you dont want to load protected automatically.
|
# Comment the line below if you dont want to load protected automatically.
|
||||||
LDRING = 3
|
LDRING = 3
|
||||||
|
|
||||||
@ -77,7 +75,7 @@ CFLAGS = $(OPT) -D$(DB) -DNETWARE -DHAVE_CONFIG_H -nostdinc
|
|||||||
|
|
||||||
ifeq ($(CC),mwccnlm)
|
ifeq ($(CC),mwccnlm)
|
||||||
LD = mwldnlm
|
LD = mwldnlm
|
||||||
LDFLAGS = -nostdlib $(PRELUDE) $(OBJDIR)/*.o -o $(TARGET).nlm -commandfile
|
LDFLAGS = -nostdlib $(PRELUDE) $(LDLIBS) $(OBJS) $(OBJX) -o $(TARGET).nlm -commandfile
|
||||||
CFLAGS += -gccinc -inline off -opt nointrinsics -proc 586
|
CFLAGS += -gccinc -inline off -opt nointrinsics -proc 586
|
||||||
CFLAGS += -relax_pointers
|
CFLAGS += -relax_pointers
|
||||||
#CFLAGS += -w on
|
#CFLAGS += -w on
|
||||||
@ -102,8 +100,6 @@ else
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LDLIBS =
|
|
||||||
|
|
||||||
NDK_ROOT = $(NDKBASE)/ndk
|
NDK_ROOT = $(NDKBASE)/ndk
|
||||||
SDK_CLIB = $(NDK_ROOT)/nwsdk
|
SDK_CLIB = $(NDK_ROOT)/nwsdk
|
||||||
SDK_LIBC = $(NDK_ROOT)/libc
|
SDK_LIBC = $(NDK_ROOT)/libc
|
||||||
@ -113,11 +109,22 @@ CURL_LIB = ../lib
|
|||||||
|
|
||||||
INCLUDES = -I$(CURL_INC) -I$(CURL_LIB)
|
INCLUDES = -I$(CURL_INC) -I$(CURL_LIB)
|
||||||
|
|
||||||
|
ifdef LINK_STATIC
|
||||||
|
LDLIBS = ../lib/libcurl.lib
|
||||||
|
IMPORTS = GetProcessSwitchCount RunningProcess
|
||||||
|
else
|
||||||
|
MODULES = libcurl.nlm
|
||||||
|
IMPORTS = @../lib/libcurl.imp
|
||||||
|
endif
|
||||||
ifdef WITH_ZLIB
|
ifdef WITH_ZLIB
|
||||||
INCLUDES += -I$(ZLIB_PATH)
|
INCLUDES += -I$(ZLIB_PATH)
|
||||||
IMPORTS += @$(ZLIB_PATH)/nw/zlib.imp
|
ifdef LINK_STATIC
|
||||||
|
LDLIBS += $(ZLIB_PATH)/nw/libz.lib
|
||||||
|
else
|
||||||
|
IMPORTS += @$(ZLIB_PATH)/nw/libz.imp
|
||||||
MODULES += libz.nlm
|
MODULES += libz.nlm
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(LIBARCH),LIBC)
|
ifeq ($(LIBARCH),LIBC)
|
||||||
INCLUDES += -I$(SDK_LIBC)/include -I$(SDK_LIBC)/include/nks
|
INCLUDES += -I$(SDK_LIBC)/include -I$(SDK_LIBC)/include/nks
|
||||||
|
Loading…
Reference in New Issue
Block a user