.SUFFIXES: .rc .res
-all: $(libcurl_a_LIBRARY) $(libcurl_dll_LIBRARY)
+all: ca-bundle.h $(libcurl_a_LIBRARY) $(libcurl_dll_LIBRARY)
$(libcurl_a_LIBRARY): $(libcurl_a_OBJECTS) $(libcurl_a_DEPENDENCIES)
-$(RM) $@
$(RC) $(RCFLAGS) $< -o $@
clean:
- -$(RM) $(libcurl_a_OBJECTS) $(RESOURCE)
+ -$(RM) $(libcurl_a_OBJECTS) $(RESOURCE) ca-bundle.h
distrib: clean
-$(RM) $(libcurl_a_LIBRARY) $(libcurl_dll_LIBRARY) $(libcurl_dll_a_LIBRARY)
+FORCE: ;
+
+ca-bundle.h: FORCE Makefile.m32
+ @echo Creating $@
+ @echo $(DL)/* Do not edit this file - it is created by make!$(DL) > $@
+ @echo $(DL)*/$(DL) >> $@
+
$(ARES_LIB)/libcares.a:
$(MAKE) -C $(ARES_LIB) -f Makefile.m32
RC = windres
RCFLAGS = --include-dir=../include -O COFF -i
RM = del /q /f
+CP = copy
# We may need these someday
# PERL = perl
curl_LDADD += -L"$(LDAP_SDK)/lib/mscvc" -lldapsdk -lldapssl -lldapx
endif
endif
-curl_LDADD += -lwsock32 -lws2_32 -lwinmm -lwldap32
+curl_LDADD += -lws2_32 -lwinmm -lwldap32
COMPILE = $(CC) $(INCLUDES) $(CFLAGS)
# Makefile.inc provides the CSOURCES and HHEADERS defines
# -$(RM) hugehelp.c
# $(NROFF) -man ../curl.1 | $(PERL) mkhelp.pl ../README.curl > hugehelp.c
+hugehelp.c:
+ @echo Creating $@
+ @$(CP) hugehelp.c.cvs $@
+
.c.o:
$(COMPILE) -c $<
$(RC) $(RCFLAGS) $< -o $@
clean:
+ifeq "$(wildcard hugehelp.c.cvs)" "hugehelp.c.cvs"
+ -$(RM) hugehelp.c
+endif
-$(RM) $(curl_OBJECTS)
distrib: clean
-$(RM) $(curl_PROGRAMS)
+
+