summaryrefslogtreecommitdiffstatsabout
path: root/utility/Makefile.in
diff options
context:
space:
mode:
authorEdward Rudd <urkle@outoforder.cc>2008-10-22 12:40:58 (GMT)
committer Edward Rudd <urkle@outoforder.cc>2008-10-22 12:40:58 (GMT)
commit0ddd719a72469f732a881c93d4c804e9aca787fe (patch)
treee05821ff5a6ad0f00d63f23090ce4f2ec19bef75 /utility/Makefile.in
parentcc75ebf7e8560a69a6847f0260cce4772fff440a (diff)
added more config options
included PCRE wrapper from httpd more complete log parser code. fixed NASTY bug with setting values in the hash tables (Need to DUP the strings before setting the keys)
Diffstat (limited to 'utility/Makefile.in')
-rw-r--r--utility/Makefile.in23
1 files changed, 16 insertions, 7 deletions
diff --git a/utility/Makefile.in b/utility/Makefile.in
index d397b96..69a746c 100644
--- a/utility/Makefile.in
+++ b/utility/Makefile.in
@@ -4,9 +4,11 @@ top_srcdir = @top_srcdir@
4srcdir = @abs_srcdir@ 4srcdir = @abs_srcdir@
5builddir = @abs_builddir@ 5builddir = @abs_builddir@
6 6
7CFLAGS = -g -Wall -fno-strict-aliasing @APR_CFLAGS@ @APR_INCLUDES@ @APU_INCLUDES@ 7#@APR_CFLAGS@
8CFLAGS = -g3 -Wall -fno-strict-aliasing \
9 @APR_INCLUDES@ @APU_INCLUDES@ @PCRE_CFLAGS@
8CPPFLAGS = @APR_CPPFLAGS@ 10CPPFLAGS = @APR_CPPFLAGS@
9LDFLAGS = @APR_LDFLAGS@ @APU_LDFLAGS@ 11LDFLAGS = @APR_LDFLAGS@ @APU_LDFLAGS@ @PCRE_LIBS@
10 12
11ifeq (@OOO_MAINTAIN@,1) 13ifeq (@OOO_MAINTAIN@,1)
12CFLAGS += -Werror 14CFLAGS += -Werror
@@ -16,10 +18,10 @@ STD_DIST = Makefile.in
16 18
17DISTFILES = $(STD_DIST) $(EXTRA_DIST) $(SOURCES) $(HEADERS) 19DISTFILES = $(STD_DIST) $(EXTRA_DIST) $(SOURCES) $(HEADERS)
18 20
19SOURCES = shell.c config.c logparse.c 21SOURCES = shell.c config.c logparse.c ap_pcre.c util.c
20HEADERS = shell.h config.h logparse.h 22HEADERS = shell.h config.h logparse.h ap_pcre.h util.h
21OBJECTS = $(patsubst %.c,%.o,$(SOURCES)) 23OBJECTS = $(SOURCES:.c=.o)
22 24DEPS = $(SOURCES:.c=.d)
23TARGETS = mod_log_sql 25TARGETS = mod_log_sql
24 26
25all: $(TARGETS) 27all: $(TARGETS)
@@ -27,8 +29,15 @@ all: $(TARGETS)
27mod_log_sql: $(OBJECTS) $(HEADERS) 29mod_log_sql: $(OBJECTS) $(HEADERS)
28 $(CC) -o $@ $(OBJECTS) $(LDFLAGS) 30 $(CC) -o $@ $(OBJECTS) $(LDFLAGS)
29 31
32%.o: %.c %.d
33 gcc -c $(CFLAGS) $(CPPFLAGS) $< -o $@
34%.d: %.c
35 gcc -MM $(CFLAGS) $(CPPFLAGS) $< -o $@
36
37-include $(DEPS)
38
30clean: 39clean:
31 $(RM) $(OBJECTS) $(TARGETS) 40 $(RM) $(OBJECTS) $(TARGETS) $(DEPS)
32 41
33local-dist: $(DISTFILES) 42local-dist: $(DISTFILES)
34 mkdir -p $(DESTDIR) 43 mkdir -p $(DESTDIR)