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