]> granicus.if.org Git - apache/blob - modules/NWGNUmakefile
Make sure that we clean up the ldap module folder.
[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 ifeq "$(MAKECMDGOALS)" "clean"
17 WITH_LDAP = 1
18 else
19 WITH_LDAP = 0
20 endif
21 endif
22
23 # If USE_STDSOCKETS is defined we allways build mod_ssl
24 ifdef USE_STDSOCKETS
25 WITH_SSL = 1
26 endif
27
28 #
29 # Declare the sub-directories to be built here
30 #
31
32 SUBDIRS = \
33         aaa \
34         apreq \
35         cache \
36         cluster \
37         dav/main \
38         dav/fs \
39         dav/lock \
40         echo \
41         examples \
42         generators \
43         loggers \
44         mappers \
45         metadata \
46         proxy \
47         filters \
48         database \
49         session \
50         slotmem \
51         $(EOLIST)
52
53 # If WITH_LDAP and LDAPSDK have been defined then build the util_ldap module
54 ifeq "$(WITH_LDAP)" "1"
55 ifneq "$(LDAPSDK)" ""
56 SUBDIRS += ldap
57 endif
58 endif
59
60 # If WITH_SSL and OSSLSDK have been defined then build the mod_ssl module
61 ifeq "$(WITH_SSL)" "1"
62 ifneq "$(OSSLSDK)" ""
63 SUBDIRS += ssl
64 endif
65 endif
66
67 # If WITH_LUA and LUASRC have been defined then build the mod_lua module
68 ifeq "$(WITH_LUA)" "1"
69 ifneq "$(LUASRC)" ""
70 SUBDIRS += lua
71 endif
72 endif
73
74 # Allow the experimental modules to be built if WITH_EXPERIMENTAL is defined
75 ifeq "$(WITH_EXPERIMENTAL)" "1"
76 SUBDIRS += experimental
77 endif
78
79 # Allow the debugging modules to be built if WITH_DEBUGGING is defined
80 ifeq "$(WITH_DEBUGGING)" "1"
81 SUBDIRS += debugging
82 endif
83
84 # Allow the test modules to be built if WITH_TEST is defined
85 ifeq "$(WITH_TEST)" "1"
86 SUBDIRS += test
87 endif
88
89 #If the mod_edir directory exists then build the mod_edir module
90 ifeq "$(wildcard $(STDMOD)/mod_edir)" "$(STDMOD)/mod_edir"
91 SUBDIRS += mod_edir
92 endif
93
94 #
95 # Get the 'head' of the build environment.  This includes default targets and
96 # paths to tools
97 #
98 include $(AP_WORK)/build/NWGNUhead.inc
99
100 #
101 # build this level's files
102
103 ifeq "$(wildcard NWGNUmakefile.mak)" "NWGNUmakefile.mak"
104 include NWGNUmakefile.mak
105 endif
106
107 #
108 # You can use this target if all that is needed is to copy files to the
109 # installation area
110 #
111 install :: nlms FORCE
112