mirror of
https://github.com/curl/curl.git
synced 2026-08-05 03:56:12 +03:00
Makefile.mk: drop Windows support
And DLL-support with it. This leaves `Makefile.mk` for MS-DOS and Amiga. We recommend CMake instead. With unity mode it's much faster, and about the same without. Ref: https://github.com/curl/curl/pull/12221#issuecomment-1783761806 Reviewed-by: Daniel Stenberg Closes #12224
This commit is contained in:
parent
67211e9540
commit
ba8752e556
6 changed files with 52 additions and 260 deletions
|
|
@ -32,31 +32,13 @@ include $(PROOT)/lib/Makefile.mk
|
|||
|
||||
### Local
|
||||
|
||||
RCFLAGS += -DCURL_EMBED_MANIFEST
|
||||
CPPFLAGS += -I$(PROOT)/lib
|
||||
LDFLAGS += -L$(PROOT)/lib
|
||||
LIBS := -lcurl $(LIBS)
|
||||
|
||||
ifdef WIN32
|
||||
ifneq ($(findstring -dyn,$(CFG)),)
|
||||
DYN := 1
|
||||
endif
|
||||
endif
|
||||
|
||||
ifdef DYN
|
||||
curl_DEPENDENCIES := $(PROOT)/lib/libcurl$(CURL_DLL_SUFFIX).dll
|
||||
curl_DEPENDENCIES += $(PROOT)/lib/libcurl.dll.a
|
||||
else
|
||||
curl_DEPENDENCIES := $(PROOT)/lib/libcurl.a
|
||||
ifdef WIN32
|
||||
CPPFLAGS += -DCURL_STATICLIB
|
||||
LDFLAGS += -static
|
||||
endif
|
||||
endif
|
||||
|
||||
### Sources and targets
|
||||
|
||||
# Provides CURL_CFILES, CURLX_CFILES, CURL_RCFILES
|
||||
# Provides CURL_CFILES, CURLX_CFILES
|
||||
include Makefile.inc
|
||||
|
||||
TARGETS := curl$(BIN_EXT)
|
||||
|
|
@ -64,12 +46,9 @@ TARGETS := curl$(BIN_EXT)
|
|||
CURL_CFILES += $(notdir $(CURLX_CFILES))
|
||||
|
||||
curl_OBJECTS := $(patsubst %.c,$(OBJ_DIR)/%.o,$(strip $(CURL_CFILES)))
|
||||
ifdef WIN32
|
||||
curl_OBJECTS += $(patsubst %.rc,$(OBJ_DIR)/%.res,$(strip $(CURL_RCFILES)))
|
||||
endif
|
||||
ifdef MAP
|
||||
CURL_MAP := curl.map
|
||||
CURL_LDFLAGS_BIN += -Wl,-Map,$(CURL_MAP)
|
||||
LDFLAGS += -Wl,-Map,$(CURL_MAP)
|
||||
TOVCLEAN := $(CURL_MAP)
|
||||
endif
|
||||
vpath %.c $(PROOT)/lib
|
||||
|
|
@ -105,7 +84,7 @@ tool_hugehelp.c:
|
|||
endif
|
||||
endif
|
||||
|
||||
$(TARGETS): $(curl_OBJECTS) $(curl_DEPENDENCIES)
|
||||
$(CC) $(LDFLAGS) $(CURL_LDFLAGS_BIN) -o $@ $(curl_OBJECTS) $(LIBS)
|
||||
$(TARGETS): $(curl_OBJECTS) $(PROOT)/lib/libcurl.a
|
||||
$(CC) $(LDFLAGS) -o $@ $(curl_OBJECTS) $(LIBS)
|
||||
|
||||
all: $(OBJ_DIR) $(TARGETS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue