Imported Upstream version 2.5.11
[libapache-mod-security.git] / apache2 / mlogc-src / Makefile.in
1 # Generated Makefile for ModSecurity Log Collector (mlogc)
2
3 CC = @CC@
4 EXTRA_CFLAGS = @EXTRA_CFLAGS@
5
6 srcdir = .
7 modsecsrcdir = $(srcdir)/..
8 srclibdir = $(srcdir)/srclib
9
10 MLOGC_VERSION = `grep '^\#define *VERSION ' mlogc.c | sed 's/.*VERSION *"\([^"]*\)"/\1/'`
11
12 APR_FLAGS = @APR_CFLAGS@
13 APR_LIBS = @APR_LINK_LD@ @APR_LIBS@
14
15 CURL_FLAGS = @CURL_CFLAGS@
16 CURL_LIBS = @CURL_LIBS@
17
18 PCRE_FLAGS = @PCRE_CFLAGS@
19 PCRE_LIBS = @PCRE_LIBS@
20
21 APR_S_FLAGS = `$(srclibdir)/install/apr/bin/apr-1-config --includes --cppflags --cflags`
22 APR_S_LIBS = `$(srclibdir)/install/apr/bin/apr-1-config --link-ld`
23
24 CURL_S_FLAGS = `$(srclibdir)/install/curl/bin/curl-config --cflags`
25 CURL_S_LIBS = `$(srclibdir)/install/curl/bin/curl-config --libs`
26
27 PCRE_S_FLAGS = `$(srclibdir)/install/pcre/bin/pcre-config --cflags`
28 PCRE_S_LIBS = `$(srclibdir)/install/pcre/bin/pcre-config --libs`
29
30 all: mlogc
31
32 mlogc: mlogc.c
33         @echo; \
34         echo "Building dynamically linked mlogc..."; \
35         $(CC) $(CFLAGS) -o mlogc mlogc.c \
36         -I$(modsecsrcdir) \
37         $(APR_FLAGS) $(CURL_FLAGS) $(PCRE_FLAGS) \
38         $(APR_LIBS) $(CURL_LIBS) $(PCRE_LIBS); \
39         chmod 755 mlogc; \
40         echo; \
41         echo "Build finished.  Please follow the INSTALL instructions to complete the install."; \
42         echo
43
44 .archives-ok:
45         @if [ -n "$(MLOGC_NOVERIFY)" -a "$(MLOGC_NOVERIFY)" = "1" ]; then \
46                 touch .archives-ok; \
47         else \
48                 $(srclibdir)/archives.sh && touch .archives-ok; \
49         fi
50
51 .support-libs-ok:
52         $(srclibdir)/build.sh && touch .support-libs-ok
53
54 archives: .archives-ok
55
56 support-libs: .support-libs-ok
57
58 clean-build:
59         @rm -rf $(srclibdir)/build
60
61 clean-install:
62         @rm -rf $(srclibdir)/install
63
64 clean-mlogc:
65         @rm -rf core mlogc *~ *.o *.so *.lo *.la *.slo
66
67 distclean: clean
68
69 clean: clean-build clean-install clean-mlogc
70