blob: fdc3846ea3fe0f9da6f877e704176e5907ae2f35 (
plain)
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
|
# @configure_input@
top_srcdir = @top_srcdir@
srcdir = @abs_srcdir@
top_builddir = @top_builddir@
builddir = @abs_builddir@
LIBTOOL=@LIBTOOL@
CFLAGS = -g3 -Wall -fno-strict-aliasing \
@APR_INCLUDES@ @APU_INCLUDES@ @PCRE_CFLAGS@ \
-I$(top_srcdir)/include
CPPFLAGS = @APR_CPPFLAGS@
LDFLAGS = @APR_LIBTOOL@ @APU_LIBTOOL@ @PCRE_LIBS@
ifeq (@OOO_MAINTAIN@,1)
CFLAGS += -Werror
endif
STD_DIST = Makefile.in
DISTFILES = $(STD_DIST) $(EXTRA_DIST) $(SOURCES) $(HEADERS)
SOURCES = shell.c config.c logparse.c ap_pcre.c util.c database.c
HEADERS = shell.h config.h logparse.h ap_pcre.h util.h database.h
OBJECTS = $(SOURCES:.c=.o)
DEPS = $(SOURCES:.c=.d)
TARGETS = mod_log_sql
all: $(TARGETS)
mod_log_sql: $(OBJECTS) $(HEADERS)
$(LIBTOOL) --tag=CC --mode=link $(CC) -o $@ $(OBJECTS) $(LDFLAGS)
%.o: %.c %.d
gcc -c $(CFLAGS) $(CPPFLAGS) $< -o $@
%.d: %.c
gcc -MM $(CFLAGS) $(CPPFLAGS) $< -o $@
-include $(DEPS)
clean:
$(RM) $(OBJECTS) $(TARGETS) $(DEPS)
local-dist: $(DISTFILES)
mkdir -p $(DESTDIR)
cp -dp --parents $(DISTFILES) $(DESTDIR)
Makefile: Makefile.in ../config.status
cd .. && ./config.status
|