]> granicus.if.org Git - apache/blob - modules/NWGNUmakefile
Vote (adding relevent entries part of the backport proposal).
[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         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 mod_http2 module to be built if WITH_HTTP2 is defined
77 ifeq "$(WITH_HTTP2)" "1"
78 ifneq "$(NGH2SRC)" ""
79 SUBDIRS += http2
80 endif
81 endif
82
83 # Allow the experimental modules to be built if WITH_EXPERIMENTAL is defined
84 ifeq "$(WITH_EXPERIMENTAL)" "1"
85 SUBDIRS += experimental
86 endif
87
88 # Allow the debugging modules to be built if WITH_DEBUGGING is defined
89 ifeq "$(WITH_DEBUGGING)" "1"
90 SUBDIRS += debugging
91 endif
92
93 # Allow the test modules to be built if WITH_TEST is defined
94 ifeq "$(WITH_TEST)" "1"
95 SUBDIRS += test
96 endif
97
98 #If the mod_edir directory exists then build the mod_edir module
99 ifeq "$(wildcard $(STDMOD)/mod_edir)" "$(STDMOD)/mod_edir"
100 SUBDIRS += mod_edir
101 endif
102
103 #
104 # Get the 'head' of the build environment.  This includes default targets and
105 # paths to tools
106 #
107 include $(AP_WORK)/build/NWGNUhead.inc
108
109 #
110 # build this level's files
111
112 ifeq "$(wildcard NWGNUmakefile.mak)" "NWGNUmakefile.mak"
113 include NWGNUmakefile.mak
114 endif
115
116 #
117 # You can use this target if all that is needed is to copy files to the
118 # installation area
119 #
120 install :: nlms FORCE
121