mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
58 lines
1.4 KiB
Makefile
58 lines
1.4 KiB
Makefile
###########################################################################
|
|
### You Will need to modify the following variables for your system
|
|
###########################################################################
|
|
###########################################################################
|
|
|
|
# Path to Apache httpd installation
|
|
BASE = C:\Apache22
|
|
|
|
# Paths to required libraries
|
|
PCRE = C:\work\pcre-8.30
|
|
CURL = C:\work\curl-7.24.0
|
|
|
|
# Linking libraries
|
|
LIBS = $(BASE)\lib\libapr-1.lib \
|
|
$(BASE)\lib\libaprutil-1.lib \
|
|
$(PCRE)\pcre.lib \
|
|
$(CURL)\libcurl_imp.lib \
|
|
wsock32.lib
|
|
|
|
###########################################################################
|
|
###########################################################################
|
|
|
|
CC = cL
|
|
|
|
MT = mt
|
|
|
|
DEFS = /nologo /O2 /W3 -DWIN32 -DWINNT -Dinline=APR_INLINE -D_CONSOLE
|
|
|
|
EXE = mlogc.exe
|
|
|
|
INCLUDES = -I. -I..\apache2 \
|
|
-I$(PCRE)\include -I$(PCRE) \
|
|
-I$(CURL)\include -I$(CURL) \
|
|
-I$(BASE)\include
|
|
|
|
CFLAGS= -MT $(INCLUDES) $(DEFS)
|
|
|
|
LDFLAGS =
|
|
|
|
OBJS = mlogc.obj
|
|
|
|
all: $(EXE)
|
|
|
|
.c.obj:
|
|
$(CC) $(CFLAGS) -c $< -Fo$@
|
|
|
|
.cpp.obj:
|
|
$(CC) $(CFLAGS) -c $< -Fo$@
|
|
|
|
$(EXE): $(OBJS)
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) /link /NODEFAULTLIB:MSVCRT.lib /subsystem:console
|
|
|
|
install: $(EXE)
|
|
copy $(EXE) $(BASE)\bin
|
|
|
|
clean:
|
|
del $(OBJS) $(EXE) *.dll *.lib *.pdb *.idb *.ilk *.exp *.res *.rc *.bin *.manifest
|