On 29 Apr 2007, at 09:17, Giuliano Gavazzi wrote:
I don't remember how I got to this, perhaps modifying some other one, but attached you find a Makefile I use for my module mod_authnz_sasl (yes, I know, it's probably not thread-safe...).


I have not yet tested it on intel, and it will presumably not create a universal binary, but the latter is usually not important.

except that the list munges attachments...

So, although you might find similar and perhaps more correct Makefiles elsewhere, here is one that works for me (don't remember where I got it from), substute authnz_sasl for your module name:

LIBS=
MOD_NAME = authnz_sasl
# try this, if you're not root and apxs is in the standard place
APXS=/usr/local/apache2/bin/apxs

SOURCES=mod_$(MOD_NAME).c
# Apache 2.0 uses GNU libtool, hence the libtool suffix
TARGETS=$(SOURCES:.c=.la)

all: $(TARGETS)

# general rule to build
%.la: %.c
        $(APXS) -c $< $(LIBS)

install: $(TARGETS)
        $(APXS) -i -A mod_$(MOD_NAME).la

clean:
-rm -f $(TARGETS) *~ $(SOURCES:.c=.slo) $(SOURCES:.c=.lo) $ (SOURCES:.c=.so) $(SOURCES:.c=.o)


Reply via email to