1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2026-03-20 11:57:14 +00:00

Makefile.m32: fix mingw32 build

* add . to include path so ares_build.h is picked up
* make ar configurable to ease cross-compiling
This commit is contained in:
Ben Noordhuis
2012-04-25 05:07:57 -07:00
committed by Daniel Stenberg
parent 031040f893
commit f7b66af200

View File

@ -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