# # 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 $@