aboutsummaryrefslogtreecommitdiffstats
path: root/testing/apache-mod-backtrace/Makefile.in
blob: 1f05b116f7c40c0f1c473daee884b3bd1df484cc (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
#
# Makefile for mod_backtrace
#
# Based off of Makefile for mod_auth_ntlm_winbind by
# Matt Smith <mcs@darkregion.net>, 2011/01/04
#

# Programs

APXS = @APXS@
APXS_FLAGS = @APXS_FLAGS@
SODIR = @SODIR@
APXSLIBDIR=$(DESTDIR)/$(shell $(APXS) -q LIBEXECDIR)

# Build the dso
MOD_BACKTRACE_SRC = mod_backtrace.c

$(SODIR)mod_backtrace.so: $(MOD_BACKTRACE_SRC)
	$(APXS) $(APXS_FLAGS) -Wc,-Wall -c -lubacktrace $(MOD_BACKTRACE_SRC)

install: $(SODIR)mod_backtrace.so
	$(APXS) $(APXS_FLAGS) -S LIBEXECDIR=$(APXSLIBDIR) -n backtrace -i $(SODIR)mod_backtrace.so

# Clean targets
clean:
	@rm -f *~ $(MOD_BACKTRACE_SRC:.c=.{la,lo,o,slo})
	@rm -rf $(SODIR)

realclean: clean
	@rm -f config.log

distclean: realclean
	@rm -f config.h Makefile \
	config.status config.cache
	@rm -rf autom4te.cache