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
15 ########################################################
16 ## Nothing more to do below this line!
23 CFLAGS+=${WARN_CFLAGS} ${ERROR_CFLAGS}
27 ALL_CFLAGS=${CPPFLAGS} ${CFLAGS} ${DEFS}
29 MANPAGES := $(patsubst %.c,%.o,$(wildcard ares_*.3))
31 OBJS := $(patsubst %.c,%.o,$(wildcard ares_*.c))
32 OBJS += windows_port.o
40 demos: adig.exe ahost.exe
45 adig.exe: adig.o $(LIB)
46 ${CC} ${LDFLAGS} -o $@ adig.o $(LIB) ${LIBS}
48 ahost.exe: ahost.o $(LIB)
49 ${CC} ${LDFLAGS} -o $@ ahost.o $(LIB) ${LIBS}
51 ${OBJS}: ares.h ares_dns.h ares_private.h
54 ${CC} -c ${ALL_CFLAGS} $<
59 ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}
60 ${top_srcdir}/mkinstalldirs ${DESTDIR}${includedir}
61 ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man3
62 ${INSTALL} -m 644 $(LIB) ${DESTDIR}${libdir}
63 ${RANLIB} ${DESTDIR}${libdir}/$(LIB)
64 chmod u-w ${DESTDIR}${libdir}/$(LIB)
65 ${INSTALL} -m 444 ${srcdir}/ares.h ${DESTDIR}${includedir}
66 ${INSTALL} -m 444 ${srcdir}/ares_version.h ${DESTDIR}${includedir}
67 (for man in $(MANPAGES); do \
68 ${INSTALL} -m 444 ${srcdir}/$${man} ${DESTDIR}${mandir}/man3; \
72 rm -f ${OBJS} $(LIB) adig.o adig.exe ahost.o ahost.exe
75 rm -f config.cache config.log config.status Makefile