source correctly
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97654
13f79535-47bb-0310-9956-
ffa450edef68
# LDAPSDK = C:/novell/ndk/cldapsdk
# endif
+# This is a placeholder
+# ifndef ZLIBSDK
+# ZLIBSDK = C:/novell/ndk/zlibsdk
+# endif
+
ifndef METROWERKS
METROWERKS = C:\Program Files\Metrowerks\CodeWarrior
endif
ifneq "$(LDAPSDK)" ""
INCDIRS := $(INCDIRS);$(LDAPSDK)/inc
endif
+ifneq "$(ZLIBSDK)" ""
+INCDIRS := $(INCDIRS);$(ZLIBSDK)
+endif
DEFINES = -DNETWARE
$(AP_WORK)/srclib/apr/include \
$(AP_WORK)/srclib/apr-util/include \
$(AP_WORK)/srclib/apr \
- $(AP_WORK)/srclib/zlib \
$(EOLIST)
#
# Any specialized rules here
#
-$(OBJDIR)/%.o: ../../srclib/zlib/%.c $(OBJDIR)\cc.opt
+ifneq "$(ZLIBSDK)" ""
+$(OBJDIR)/%.o: $(ZLIBSDK)/%.c $(OBJDIR)\cc.opt
@echo Compiling $<
- $(CC) ..\..\srclib\zlib\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
-
+ $(CC) $(ZLIBSDK)\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
+endif
#
# Include the 'tail' makefile that has targets that depend on variables defined
$(EOLIST)
# If the zlib libraries source exists then build the mod_deflate module
-ifeq "$(wildcard $(AP_WORK)\srclib\zlib)" "$(AP_WORK)\srclib\zlib"
+ifneq "$(ZLIBSDK)" ""
+ifeq "$(wildcard $(ZLIBSDK))" "$(ZLIBSDK)"
TARGET_nlm += $(OBJDIR)/deflate.nlm \
$(EOLIST)
+endif
else
TARGET_nlm += $(OBJDIR)/extfiltr.nlm \
$(EOLIST)