From: Guenter Knauf Date: Sat, 3 Sep 2011 11:55:16 +0000 (+0200) Subject: Some MinGW makefile tweaks for MinGW64. X-Git-Tag: curl-7_22_0~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f02325ea65421e6c84f7bff9327b01b647c9cd22;p=thirdparty%2Fcurl.git Some MinGW makefile tweaks for MinGW64. --- diff --git a/lib/Makefile.m32 b/lib/Makefile.m32 index 8c0e5a4679..3196786430 100644 --- a/lib/Makefile.m32 +++ b/lib/Makefile.m32 @@ -50,8 +50,16 @@ ifndef LIBCARES_PATH LIBCARES_PATH = ../ares endif +# Edit the var below to set to your architecture or set environment var. +ifndef ARCH +ARCH = w32 +endif + CC = gcc CFLAGS = -g -O2 -Wall +ifeq ($(ARCH),w64) +CFLAGS += -D_AMD64_ +endif # comment LDFLAGS below to keep debug info LDFLAGS = -s AR = ar diff --git a/src/Makefile.m32 b/src/Makefile.m32 index 3cafae7bb4..f0263237a7 100644 --- a/src/Makefile.m32 +++ b/src/Makefile.m32 @@ -50,8 +50,16 @@ ifndef LIBCARES_PATH LIBCARES_PATH = ../ares endif +# Edit the var below to set to your architecture or set environment var. +ifndef ARCH +ARCH = w32 +endif + CC = gcc CFLAGS = -g -O2 -Wall +ifeq ($(ARCH),w64) +CFLAGS += -D_AMD64_ +endif # comment LDFLAGS below to keep debug info LDFLAGS = -s RC = windres