1 #############################################################
3 ## Makefile for building libcares.a with MingW32 (GCC-3.2)
4 ## Use: make -f Makefile.m32 [demos]
6 ## Quick hack by Guenter; comments to: /dev/nul
8 ########################################################
9 ## Nothing more to do below this line!
22 # Makefile.inc provides the CSOURCES and HHEADERS defines
25 OBJLIB := $(patsubst %.c,%.o,$(strip $(CSOURCES)))
34 demos: adig.exe ahost.exe acountry.exe
39 %.exe: %.o ares_getopt.o $(LIB)
40 $(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
42 $(OBJLIB): ares.h ares_dns.h ares_private.h ares_build.h ares_rules.h
50 ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}
51 ${top_srcdir}/mkinstalldirs ${DESTDIR}${includedir}
52 ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man3
53 ${INSTALL} -m 644 $(LIB) ${DESTDIR}${libdir}
54 ${RANLIB} ${DESTDIR}${libdir}/$(LIB)
55 chmod u-w ${DESTDIR}${libdir}/$(LIB)
56 ${INSTALL} -m 444 ${srcdir}/ares.h ${DESTDIR}${includedir}
57 ${INSTALL} -m 444 ${srcdir}/ares_build.h ${DESTDIR}${includedir}
58 ${INSTALL} -m 444 ${srcdir}/ares_rules.h ${DESTDIR}${includedir}
59 (for man in $(MANPAGES); do \
60 ${INSTALL} -m 444 ${srcdir}/$${man} ${DESTDIR}${mandir}/man3; \
64 $(RM) ares_getopt.o $(OBJLIB) $(LIB) adig.exe ahost.exe acountry.exe
67 $(RM) config.cache config.log config.status Makefile