1
1
###########################################################################
2
2
#
3
- # Usage: NMAKE -f Makefile.win APACHE={httpd installion dir} PCRE|PCRE2 ={pcre dir} LIBXML2={LibXML2 dir} [ LUA={Lua dir} ]
3
+ # Usage: NMAKE -f Makefile.win APACHE={httpd installion dir} PCRE={pcre dir} LIBXML2={LibXML2 dir} [ LUA={Lua dir} ]
4
4
#
5
- !IF "$(PCRE2)" != ""
6
- PCRE = $(PCRE2)
7
- !ENDIF
8
-
9
5
!IF "$(APACHE)" == "" || "$(PCRE)" == "" || "$(LIBXML2)" == "" || "$(CURL)" == ""
10
- !ERROR NMAKE arguments: APACHE=dir PCRE|PCRE2 =dir LIBXML2=dir CURL=dir are required to build mod_security2 for Windows
6
+ !ERROR NMAKE arguments: APACHE=dir PCRE=dir LIBXML2=dir CURL=dir are required to build mod_security2 for Windows
11
7
!ENDIF
12
8
13
9
# Linking libraries
14
10
LIBS = $(APACHE)\lib\libhttpd.lib \
15
11
$(APACHE)\lib\libapr-1.lib \
16
12
$(APACHE)\lib\libaprutil-1.lib \
17
- $(CURL)\libcurl.lib \
13
+ $(PCRE)\pcre.lib \
14
+ $(CURL)\libcurl.lib \
18
15
$(LIBXML2)\win32\bin.msvc\libxml2.lib \
19
16
Ws2_32.lib \
20
17
"iphlpapi.lib"
21
18
22
- !IF "$(PCRE2)" != ""
23
- LIBS =$(LIBS) $(PCRE2)\lib\pcre2-8.lib
24
- !ELSE
25
- LIBS =$(LIBS) $(PCRE)\lib\pcre.lib
26
- !ENDIF
27
19
###########################################################################
28
20
###########################################################################
29
21
30
-
31
- !IF "$(IIS_BUILD)" == "yes"
32
- DEFS=$(DEFS) -DVERSION_IIS
33
- !ENDIF
34
-
22
+
23
+ !IF "$(IIS_BUILD)" == "yes"
24
+ DEFS=$(DEFS) -DVERSION_IIS
25
+ !ENDIF
26
+
35
27
CC = CL
36
28
37
29
MT = mt
@@ -45,14 +37,9 @@ INCLUDES = -I. -I.. \
45
37
-I$(PCRE)\include -I$(PCRE) \
46
38
-I$(LIBXML2)\include \
47
39
-I$(APACHE)\include
48
-
49
- # Enables support for SecRemoteRules and external resources.
50
- DEFS=$(DEFS) -DWITH_CURL -DWITH_REMOTE_RULES
51
-
52
- # Enable PCRE2
53
- !IF "$(PCRE2)" != ""
54
- DEFS =$(DEFS) -DWITH_PCRE2
55
- !ENDIF
40
+
41
+ # Enables support for SecRemoteRules and external resources.
42
+ DEFS=$(DEFS) -DWITH_CURL -DWITH_REMOTE_RULES
56
43
57
44
# Lua is optional
58
45
!IF "$(LUA)" != ""
@@ -78,8 +65,8 @@ OBJS = mod_security2.obj apache2_config.obj apache2_io.obj apache2_util.obj \
78
65
msc_parsers.obj msc_util.obj msc_pcre.obj persist_dbm.obj \
79
66
msc_reqbody.obj msc_geo.obj msc_gsb.obj msc_crypt.obj msc_tree.obj msc_unicode.obj acmp.obj msc_lua.obj \
80
67
msc_release.obj \
81
- msc_status_engine.obj \
82
- msc_remote_rules.obj \
68
+ msc_status_engine.obj \
69
+ msc_remote_rules.obj \
83
70
msc_json.obj \
84
71
libinjection/libinjection_html5.obj \
85
72
libinjection/libinjection_sqli.obj \
0 commit comments