]> granicus.if.org Git - apache/blob - modules/NWGNUmakefile
Forward local IP address as a custom request attribute
[apache] / modules / NWGNUmakefile
1 #
2 # To build with exerimental modules set the environment
3 #  variable WITH_EXPERIMENTAL=1
4 # To build with the mod_ssl module set the environment
5 #  variable WITH_SSL=1
6 # To build with the mod_lua module set the environment
7 #  variable WITH_LUA=1
8
9 #
10 # Check if LDAP is enabled in APR-UTIL
11 #
12 include $(AP_WORK)/build/NWGNUenvironment.inc
13 ifeq "$(wildcard $(APRUTIL)/include/apr_ldap.h)" "$(APRUTIL)/include/apr_ldap.h"
14 WITH_LDAP = $(shell $(AWK) '/^\#define APR_HAS_LDAP /{print $$3}' $(APRUTIL)/include/apr_ldap.h)
15 else
16 WITH_LDAP = 1
17 ifneq "$(MAKECMDGOALS)" "clean"
18 ifneq "$(findstring clobber_,$(MAKECMDGOALS))" "clobber_"
19 WITH_LDAP = 0
20 endif
21 endif
22 endif
23
24 # If USE_STDSOCKETS is defined we allways build mod_ssl
25 ifdef USE_STDSOCKETS
26 WITH_SSL = 1
27 endif
28
29 #
30 # Declare the sub-directories to be built here
31 #
32
33 SUBDIRS = \
34         aaa \
35         apreq \
36         cache \
37         cluster \
38         core \
39         dav/main \
40         dav/fs \
41         dav/lock \
42         echo \
43         examples \
44         generators \
45         loggers \
46         mappers \
47         metadata \
48         proxy \
49         filters \
50         database \
51         session \
52         slotmem \
53         $(EOLIST)
54
55 # If WITH_LDAP and LDAPSDK have been defined then build the util_ldap module
56 ifeq "$(WITH_LDAP)" "1"
57 ifneq "$(LDAPSDK)" ""
58 SUBDIRS += ldap
59 endif
60 endif
61
62 # If WITH_SSL and OSSLSDK have been defined then build the mod_ssl module
63 ifeq "$(WITH_SSL)" "1"
64 ifneq "$(OSSLSDK)" ""
65 SUBDIRS += ssl
66 endif
67 endif
68
69 # If WITH_LUA and LUASRC have been defined then build the mod_lua module
70 ifeq "$(WITH_LUA)" "1"
71 ifneq "$(LUASRC)" ""
72 SUBDIRS += lua
73 endif
74 endif
75
76 # Allow the experimental modules to be built if WITH_EXPERIMENTAL is defined
77 ifeq "$(WITH_EXPERIMENTAL)" "1"
78 SUBDIRS += experimental
79 endif
80
81 # Allow the debugging modules to be built if WITH_DEBUGGING is defined
82 ifeq "$(WITH_DEBUGGING)" "1"
83 SUBDIRS += debugging
84 endif
85
86 # Allow the test modules to be built if WITH_TEST is defined
87 ifeq "$(WITH_TEST)" "1"
88 SUBDIRS += test
89 endif
90
91 #If the mod_edir directory exists then build the mod_edir module
92 ifeq "$(wildcard $(STDMOD)/mod_edir)" "$(STDMOD)/mod_edir"
93 SUBDIRS += mod_edir
94 endif
95
96 #
97 # Get the 'head' of the build environment.  This includes default targets and
98 # paths to tools
99 #
100 include $(AP_WORK)/build/NWGNUhead.inc
101
102 #
103 # build this level's files
104
105 ifeq "$(wildcard NWGNUmakefile.mak)" "NWGNUmakefile.mak"
106 include NWGNUmakefile.mak
107 endif
108
109 #
110 # You can use this target if all that is needed is to copy files to the
111 # installation area
112 #
113 install :: nlms FORCE
114