You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ma...@apache.org on 2001/09/28 13:29:02 UTC
cvs commit: apache-1.3/src/modules/standard Makefile.Cygwin
martin 01/09/28 04:29:02
Added: src/modules/standard Makefile.Cygwin
Log:
Oops. Add missing Makefile for Cygwin. (Noticed by Stipe)
Submitted by: Stipe Tolj <to...@wapme-systems.de>
Revision Changes Path
1.1 apache-1.3/src/modules/standard/Makefile.Cygwin
Index: Makefile.Cygwin
===================================================================
#
# Extra rule sets for making shared module DLLs for Cygwin 1.x
#
# On Cygwin OS the user needs to run twice "make" if shared modules have
# been requested using the --enable-shared=<module> configure flag.
# This is because when we pass the module mod_foo.c we have no import
# library, usually src/libhttpd.dll to link against in this case. So the
# two "make" runs do the following:
#
# 1st run: builds all static modules and links everything to the
# shared core DLL, which is also the import library for any
# further shared modules, including the apxs tool mechanism.
#
# 2nd run: builds *only* the shared module DLLs specified by the
# --enable-shared configure switch and of course updates
# the buildmark.o and hence httpd's build date.
#
# Any suggestions in getting this done in one step are highly welcome.
# Stipe Tolj <to...@wapme-systems.de>
#
# overwrite variables that are defined in previous makefile
LD_SHLIB=$(CC)
LDFLAGS_SHLIB=--shared
define shared_dll
$(LD_SHLIB) $(LDFLAGS_SHLIB) -o $*.dll $(<:%.c=%.o) $(LIBS_SHLIB) \
$(SRCDIR)/$(SHCORE_IMPLIB) $(LIBS1)
endef
%.lo : %.c
$(CC) -c $(INCLUDES) $(CFLAGS) $(CFLAGS_SHLIB) $< && mv $*.o $*.lo
%.dll : %.lo
@if [ -f "$(SRCDIR)/$(SHCORE_IMPLIB)" ]; then \
echo $(shared_dll); \
$(shared_dll); \
else \
echo "+--------------------------------------------------------+"; \
echo "| There is no shared core 'libhttpd.dll' available! |"; \
echo "| |"; \
echo "| This is obviously your first 'make' run with configure |"; \
echo "| flag SHARED_CORE enabled and shared modules. |"; \
echo "| |"; \
echo "| You will have to re-run 'make' after this run builds |"; \
echo "| the required shared import library! |"; \
echo "+--------------------------------------------------------+"; \
sleep 10; \
fi;