1LIBS=-lpam
2# try this, if you're not root and apxs is in the standard place
3#APXS=/usr/sbin/apxs
4
5SOURCES=mod_auth_pam.c mod_auth_sys_group.c
6# Apache 2.0 uses GNU libtool, hence the libtool suffix
7TARGETS=$(SOURCES:.c=.la)
8
9all: $(TARGETS)
10
11# general rule to build
12%.la: %.c
13	$(APXS) -c $< $(LIBS)
14
15install: $(TARGETS)
16	$(APXS) -i -A mod_auth_pam.la
17	$(APXS) -i -A mod_auth_sys_group.la
18
19clean:
20	-rm -f $(TARGETS) *~ $(SOURCES:.c=.slo) $(SOURCES:.c=.lo) $(SOURCES:.c=.so) $(SOURCES:.c=.o)
21