Makefile.m32: fix mingw32 build
authorBen Noordhuis <info@bnoordhuis.nl>
Wed, 25 Apr 2012 12:07:57 +0000 (05:07 -0700)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 25 Apr 2012 12:42:21 +0000 (14:42 +0200)
* add . to include path so ares_build.h is picked up
* make ar configurable to ease cross-compiling

Makefile.m32

index 52d9310..4275f91 100644 (file)
 
 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