summaryrefslogtreecommitdiff
path: root/Makefile.m32
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-04-25 12:07:57 (GMT)
committerDaniel Stenberg <daniel@haxx.se>2012-04-25 12:42:21 (GMT)
commitf7b66af2002c8f1de8f732238ebf5fe0f24706cd (patch)
tree16f397ae4831e5410032e290cdecc67971b1b4c8 /Makefile.m32
parent031040f89333795030643f0ffcfec5f35cc8ab9c (diff)
downloadc-ares-f7b66af2002c8f1de8f732238ebf5fe0f24706cd.zip
c-ares-f7b66af2002c8f1de8f732238ebf5fe0f24706cd.tar.gz
c-ares-f7b66af2002c8f1de8f732238ebf5fe0f24706cd.tar.bz2
Makefile.m32: fix mingw32 build
* add . to include path so ares_build.h is picked up * make ar configurable to ease cross-compiling
Diffstat (limited to 'Makefile.m32')
-rw-r--r--Makefile.m325
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.m32 b/Makefile.m32
index 52d9310..4275f91 100644
--- a/Makefile.m32
+++ b/Makefile.m32
@@ -10,12 +10,13 @@
LIB = libcares.a
+AR = ar
CC = gcc
LD = gcc
RANLIB = ranlib
#RM = rm -f
-CFLAGS = -O2 -Wall
+CFLAGS = -O2 -Wall -I.
LDFLAGS = -s
LIBS = -lwsock32
@@ -26,7 +27,7 @@ OBJLIB := $(patsubst %.c,%.o,$(strip $(CSOURCES)))
$(LIB): $(OBJLIB)
- ar cru $@ $^
+ $(AR) cru $@ $^
$(RANLIB) $@
all: $(LIB) demos