diff options
Diffstat (limited to 'utility/Makefile.in')
| -rw-r--r-- | utility/Makefile.in | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/utility/Makefile.in b/utility/Makefile.in new file mode 100644 index 0000000..fdc3846 --- /dev/null +++ b/utility/Makefile.in | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | # @configure_input@ | ||
| 2 | |||
| 3 | top_srcdir = @top_srcdir@ | ||
| 4 | srcdir = @abs_srcdir@ | ||
| 5 | top_builddir = @top_builddir@ | ||
| 6 | builddir = @abs_builddir@ | ||
| 7 | |||
| 8 | LIBTOOL=@LIBTOOL@ | ||
| 9 | CFLAGS = -g3 -Wall -fno-strict-aliasing \ | ||
| 10 | @APR_INCLUDES@ @APU_INCLUDES@ @PCRE_CFLAGS@ \ | ||
| 11 | -I$(top_srcdir)/include | ||
| 12 | CPPFLAGS = @APR_CPPFLAGS@ | ||
| 13 | LDFLAGS = @APR_LIBTOOL@ @APU_LIBTOOL@ @PCRE_LIBS@ | ||
| 14 | |||
| 15 | ifeq (@OOO_MAINTAIN@,1) | ||
| 16 | CFLAGS += -Werror | ||
| 17 | endif | ||
| 18 | |||
| 19 | STD_DIST = Makefile.in | ||
| 20 | |||
| 21 | DISTFILES = $(STD_DIST) $(EXTRA_DIST) $(SOURCES) $(HEADERS) | ||
| 22 | |||
| 23 | SOURCES = shell.c config.c logparse.c ap_pcre.c util.c database.c | ||
| 24 | HEADERS = shell.h config.h logparse.h ap_pcre.h util.h database.h | ||
| 25 | OBJECTS = $(SOURCES:.c=.o) | ||
| 26 | DEPS = $(SOURCES:.c=.d) | ||
| 27 | TARGETS = mod_log_sql | ||
| 28 | |||
| 29 | all: $(TARGETS) | ||
| 30 | |||
| 31 | mod_log_sql: $(OBJECTS) $(HEADERS) | ||
| 32 | $(LIBTOOL) --tag=CC --mode=link $(CC) -o $@ $(OBJECTS) $(LDFLAGS) | ||
| 33 | |||
| 34 | %.o: %.c %.d | ||
| 35 | gcc -c $(CFLAGS) $(CPPFLAGS) $< -o $@ | ||
| 36 | %.d: %.c | ||
| 37 | gcc -MM $(CFLAGS) $(CPPFLAGS) $< -o $@ | ||
| 38 | |||
| 39 | -include $(DEPS) | ||
| 40 | |||
| 41 | clean: | ||
| 42 | $(RM) $(OBJECTS) $(TARGETS) $(DEPS) | ||
| 43 | |||
| 44 | local-dist: $(DISTFILES) | ||
| 45 | mkdir -p $(DESTDIR) | ||
| 46 | cp -dp --parents $(DISTFILES) $(DESTDIR) | ||
| 47 | |||
| 48 | Makefile: Makefile.in ../config.status | ||
| 49 | cd .. && ./config.status | ||
