summaryrefslogtreecommitdiff
path: root/lib/Makefile.m32
diff options
context:
space:
mode:
authorGuenter Knauf <lists@gknw.net>2014-11-19 11:46:02 +0100
committerGuenter Knauf <lists@gknw.net>2014-11-19 11:46:02 +0100
commit140ca2dcc28ae201c7fd6deb393dc4bd7c80a051 (patch)
treeeefc10e85ac264091debebd45c2f079e5a1e44c1 /lib/Makefile.m32
parenta08decdfed2e83001c47b1eb771b79756d2bab4c (diff)
downloadcurl-140ca2dcc28ae201c7fd6deb393dc4bd7c80a051.tar.gz
build: in Makefile.m32 simplify platform flags.
Diffstat (limited to 'lib/Makefile.m32')
-rw-r--r--lib/Makefile.m3214
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/Makefile.m32 b/lib/Makefile.m32
index 2b23a40ee..2ce597320 100644
--- a/lib/Makefile.m32
+++ b/lib/Makefile.m32
@@ -67,23 +67,21 @@ endif
CC = $(CROSSPREFIX)gcc
CFLAGS = -g -O2 -Wall
CFLAGS += -fno-strict-aliasing
-ifeq ($(ARCH),w64)
-CFLAGS += -D_AMD64_
-else
-CFLAGS += -m32
-endif
# comment LDFLAGS below to keep debug info
LDFLAGS = -s
AR = $(CROSSPREFIX)ar
RANLIB = $(CROSSPREFIX)ranlib
RC = $(CROSSPREFIX)windres
RCFLAGS = --include-dir=$(PROOT)/include -DDEBUGBUILD=0 -O COFF
+STRIP = $(CROSSPREFIX)strip -g
+
ifeq ($(ARCH),w64)
-RCFLAGS += -F pe-x86-64
+CFLAGS += -D_AMD64_
+RCFLAGS += -F pe-x86-64
else
-RCFLAGS += -F pe-i386
+CFLAGS += -m32
+RCFLAGS += -F pe-i386
endif
-STRIP = $(CROSSPREFIX)strip -g
# Platform-dependent helper tool macros
ifeq ($(findstring /sh,$(SHELL)),/sh)