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