1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

Updated for MingW. Added inet_ntop.o inet_net_pton.o bitncmp.o.

Added -D'efines'.
This commit is contained in:
Gisle Vanem 2005-11-09 21:51:44 +00:00
parent db4c33b4fb
commit 2c77cc90f4

View File

@ -7,29 +7,24 @@
## Quick hack by Guenter; comments to: /dev/nul ## Quick hack by Guenter; comments to: /dev/nul
CC = gcc CC = gcc
AR = ar
RANLIB = ranlib RANLIB = ranlib
STRIP = strip -g
#RM = rm -f
######################################################## ########################################################
## Nothing more to do below this line! ## Nothing more to do below this line!
LIB=libcares.a LIB=libcares.a
CC=gcc CC=gcc
#CPPFLAGS=@CPPFLAGS@ CFLAGS=-O2 -Wall -DHAVE_GETOPT_H -DHAVE_AF_INET6 -DHAVE_PF_INET6 \
WARN_FLAGS=-Wall -DHAVE_STRUCT_IN6_ADDR -DHAVE_STRUCT_SOCKADDR_IN6 -DHAVE_STRUCT_ADDRINFO \
CFLAGS=-O2 -DHAVE_IOCTLSOCKET
CFLAGS+=${WARN_CFLAGS} ${ERROR_CFLAGS}
DEFS=-DMINGW32
LDFLAGS=-s LDFLAGS=-s
LIBS=-lwsock32 LIBS=-lwsock32
ALL_CFLAGS=${CPPFLAGS} ${CFLAGS} ${DEFS}
MANPAGES := $(patsubst %.c,%.o,$(wildcard ares_*.3)) MANPAGES := $(patsubst %.c,%.o,$(wildcard ares_*.3))
OBJS := $(patsubst %.c,%.o,$(wildcard ares_*.c)) OBJS := $(patsubst %.c,%.o,$(wildcard ares_*.c))
OBJS += windows_port.o OBJS += windows_port.o inet_ntop.o inet_net_pton.o bitncmp.o
$(LIB): ${OBJS} $(LIB): ${OBJS}
ar cru $@ ${OBJS} ar cru $@ ${OBJS}
@ -51,7 +46,7 @@ ahost.exe: ahost.o $(LIB)
${OBJS}: ares.h ares_dns.h ares_private.h ${OBJS}: ares.h ares_dns.h ares_private.h
.c.o: .c.o:
${CC} -c ${ALL_CFLAGS} $< ${CC} -c ${CFLAGS} $<
check: check:
@ -73,3 +68,4 @@ clean:
distclean: clean distclean: clean
rm -f config.cache config.log config.status Makefile rm -f config.cache config.log config.status Makefile