Makefile.m32: fix mingw32 build

* add . to include path so ares_build.h is picked up
* make ar configurable to ease cross-compiling
pull/14/head
Ben Noordhuis 13 years ago committed by Daniel Stenberg
parent 031040f893
commit f7b66af200
  1. 5
      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

Loading…
Cancel
Save