diff options
| author | Guenter Knauf <lists@gknw.net> | 2011-09-03 13:55:16 +0200 | 
|---|---|---|
| committer | Guenter Knauf <lists@gknw.net> | 2011-09-03 13:55:16 +0200 | 
| commit | f02325ea65421e6c84f7bff9327b01b647c9cd22 (patch) | |
| tree | 708b723ea74ab978fa0bd935ba50d6a430bb9732 | |
| parent | b98594c8bf17a1d5cc848282d5414164209fe9a3 (diff) | |
Some MinGW makefile tweaks for MinGW64.
| -rw-r--r-- | lib/Makefile.m32 | 8 | ||||
| -rw-r--r-- | src/Makefile.m32 | 8 | 
2 files changed, 16 insertions, 0 deletions
diff --git a/lib/Makefile.m32 b/lib/Makefile.m32 index 8c0e5a467..319678643 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 3cafae7bb..f0263237a 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  | 
