Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Makefile.m32: fix mingw32 build

* add . to include path so ares_build.h is picked up
* make ar configurable to ease cross-compiling
  • Loading branch information...
commit f7b66af2002c8f1de8f732238ebf5fe0f24706cd 1 parent 031040f
Ben Noordhuis bnoordhuis authored committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 Makefile.m32
5 Makefile.m32
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.