]> granicus.if.org Git - curl/commitdiff
Some MinGW makefile tweaks for MinGW64.
authorGuenter Knauf <lists@gknw.net>
Sat, 3 Sep 2011 11:55:16 +0000 (13:55 +0200)
committerGuenter Knauf <lists@gknw.net>
Sat, 3 Sep 2011 11:55:16 +0000 (13:55 +0200)
lib/Makefile.m32
src/Makefile.m32

index 8c0e5a467930de54b2033185529b36c86e607333..3196786430d3c5c692f37432557f8dbd04a35384 100644 (file)
@@ -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
index 3cafae7bb45241059cbbfe578546dff8bdd79d70..f0263237a7e1b6c53e39f1de9cdd13bb92f6ec04 100644 (file)
@@ -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