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 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
#
# Makefile for mod_auth_pgsql.
#
# where is APXS?
APXS = @APXS@
APXS_EXP = @APXS_EXP@
BINNAME = @BINNAME@
INSTALL_IT = @INSTALL_IT@
LIBS = @LIBS@
RANLIB = @RANLIB@
AR = ar rc
# put the autoconf INCLUDE before the cflags. The Apache CFLAGS
# may point to the "wrong" directory, so we ensure that we use
# the correct directory by placing generated includes first.
CFLAGS = $(CPPFLAGS) @INCLUDE@ @CFLAGS@ $(INCLUDE) -DEAPI -fPIC
SRCS = \
mod_auth_pgsql.c \
STD_OBJS = $(SRCS:.c=.o)
OBJS = $(STD_OBJS)
all: $(BINNAME)
# For DSO installs with APXS
mod_auth_pgsql.so: $(OBJS)
$(APXS) -c -o $@ $(APXS_CFLAGS) $(OBJS) $(APXS_EXP) $(LIBS)
# For static installs
mod_auth_pgsql.a: $(OBJS)
rm -f $@
$(AR) $@ $(OBJS)
$(RANLIB) $@
install: $(BINNAME)
$(INSTALL_IT)
clean:
-rm -f mod_auth_pgsql.so mod_auth_pgsql.a *.o *.orig *.rej
distclean: clean
-rm -f Makefile Makefile.tmpl mod_auth_pgsql.module config.h config.status config.log config.cache *~
.c.o:
$(CC) -c $(CFLAGS) $< -o $@
|