File: Makefile.win

package info (click to toggle)
libapache-mod-security 2.5.12-1%2Bsqueeze4
  • links: PTS
  • area: main
  • in suites: squeeze-lts
  • size: 6,292 kB
  • ctags: 2,537
  • sloc: ansic: 21,266; sh: 6,512; xml: 6,320; perl: 1,653; makefile: 191
file content (73 lines) | stat: -rw-r--r-- 2,234 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
###########################################################################
### You Will need to modify the following variables for your system
###########################################################################
###########################################################################

# Path to Apache httpd installation
BASE = C:\Apache2

# Paths to required libraries
LIBXML2 = C:\work\libxml2-2.6.31
LUA = C:\work\lua-5.1.3
PCRE = C:\work\httpd-2.2.8\srclib\pcre

# Linking libraries
LIBS = $(BASE)\lib\libhttpd.lib \
       $(BASE)\lib\libapr-1.lib \
       $(BASE)\lib\libaprutil-1.lib \
       $(PCRE)\LibR\pcre.lib \
       $(LIBXML2)\win32\bin.msvc\libxml2.lib \
       $(LUA)\lua5.1.lib \
       wsock32.lib

###########################################################################
###########################################################################

CC = cL

MT = mt

DEFS = /nologo /O2 /LD /W3 /wd4244 -DWIN32 -DWINNT -Dinline=APR_INLINE

DLL = mod_security2.so

INCLUDES = -I. \
           -I$(PCRE)\include -I$(PCRE) \
           -I$(LIBXML2)\include \
           -I$(LUA)\include -I$(LUA) \
           -I$(BASE)\include 

CFLAGS= -MD $(INCLUDES) $(DEFS)

LDFLAGS = 

OBJS = mod_security2.obj apache2_config.obj apache2_io.obj apache2_util.obj \
       re.obj re_operators.obj re_actions.obj re_tfns.obj re_variables.obj \
       msc_logging.obj msc_xml.obj msc_multipart.obj modsecurity.obj \
       msc_parsers.obj msc_util.obj msc_pcre.obj persist_dbm.obj \
       msc_reqbody.obj pdf_protect.obj msc_geo.obj acmp.obj msc_lua.obj \
       msc_release.obj

all: $(DLL)

dll: $(DLL)

mod_security2_config.h: mod_security2_config.hw
	@echo off
	type mod_security2_config.hw > mod_security2_config.h

.c.obj:
	$(CC) $(CFLAGS) -c $< -Fo$@

.cpp.obj:
	$(CC) $(CFLAGS) -c $< -Fo$@

$(DLL): mod_security2_config.h $(OBJS)
	$(CC) $(CFLAGS) $(LDFLAGS) -LD $(OBJS) -Fe$(DLL) $(LIBS) /link
	IF EXIST $(DLL).manifest $(MT) -manifest $(DLL).manifest -outputresource:$(DLL);2

install: $(DLL)
	copy $(DLL) $(BASE)\modules

clean:
	del $(OBJS) $(DLL) *.dll *.lib *.pdb *.idb *.ilk *.exp *.res *.rc *.bin mod_security2_config.h *.manifest