1 #############################################################
4 ## Makefile for building libcares.a with MingW32 (GCC-3.2)
5 ## Use: make -f Makefile.m32 [demos]
7 ## Quick hack by Guenter; comments to: /dev/nul
12 ########################################################
13 ## Nothing more to do below this line!
17 CFLAGS=-O2 -Wall -DHAVE_GETOPT_H -DHAVE_AF_INET6 -DHAVE_PF_INET6 \
18 -DHAVE_STRUCT_IN6_ADDR -DHAVE_STRUCT_SOCKADDR_IN6 -DHAVE_STRUCT_ADDRINFO \
24 MANPAGES := $(patsubst %.c,%.o,$(wildcard ares_*.3))
26 OBJS := $(patsubst %.c,%.o,$(wildcard ares_*.c))
27 OBJS += windows_port.o inet_ntop.o inet_net_pton.o bitncmp.o
35 demos: adig.exe ahost.exe
40 adig.exe: adig.o $(LIB)
41 ${CC} ${LDFLAGS} -o $@ adig.o $(LIB) ${LIBS}
43 ahost.exe: ahost.o $(LIB)
44 ${CC} ${LDFLAGS} -o $@ ahost.o $(LIB) ${LIBS}
46 ${OBJS}: ares.h ares_dns.h ares_private.h
54 ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}
55 ${top_srcdir}/mkinstalldirs ${DESTDIR}${includedir}
56 ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man3
57 ${INSTALL} -m 644 $(LIB) ${DESTDIR}${libdir}
58 ${RANLIB} ${DESTDIR}${libdir}/$(LIB)
59 chmod u-w ${DESTDIR}${libdir}/$(LIB)
60 ${INSTALL} -m 444 ${srcdir}/ares.h ${DESTDIR}${includedir}
61 ${INSTALL} -m 444 ${srcdir}/ares_version.h ${DESTDIR}${includedir}
62 (for man in $(MANPAGES); do \
63 ${INSTALL} -m 444 ${srcdir}/$${man} ${DESTDIR}${mandir}/man3; \
67 rm -f ${OBJS} $(LIB) adig.o adig.exe ahost.o ahost.exe
70 rm -f config.cache config.log config.status Makefile