##
##  Apache Makefile, automatically generated by Configure script.
##  Hand-edited changes will be lost if the Configure script is re-run.
##  Sources: - ../../Makefile.config (via Configuration.apaci)
##           - ./Makefile.tmpl
##

##
##  Inherited Makefile options from Configure script
##  (Begin of automatically generated section)
##
SRCDIR=../..
EXTRA_CFLAGS=`$(SRCDIR)/apaci`
EXTRA_LDFLAGS=
EXTRA_LIBS= /usr/athena/lib/libhesiod.a
EXTRA_INCLUDES=-I/usr/athena/include
EXTRA_DEPS=
TARGET=httpsd
SSL_BASE=/var/ssl
SSL_INCLUDE=-I$(SSL_BASE)/include
SSL_CFLAGS=-DAPACHE_SSL
SSL_LIB_DIR=/var/ssl/lib
SSL_LIBS=-L$(SSL_LIB_DIR) -lssl -lcrypto
SSL_APP_DIR=/var/ssl/bin
CC=gcc
OPTIM=
CFLAGS1= -DSOLARIS2=260 $(SSL_CFLAGS)
OSDIR=$(SRCDIR)/os/unix
INCDIR=$(SRCDIR)/include
INCLUDES0=-I$(OSDIR) -I$(INCDIR) $(SSL_INCLUDE)
INCLUDES1=
LDFLAGS1=
MFLAGS_STATIC=--no-print-directory
REGLIB=
RANLIB=ranlib
SHELL=/bin/sh
LIBS1= -lsocket -lnsl $(SSL_LIBS)
##
##  (End of automatically generated section)
##

##
##  Default Makefile options from Configure script
##  (Begin of automatically generated section)
##
CFLAGS=$(OPTIM) $(CFLAGS1) $(EXTRA_CFLAGS)
LIBS=$(EXTRA_LIBS) $(LIBS1)
INCLUDES=$(INCLUDES1) $(INCLUDES0) $(EXTRA_INCLUDES)
LDFLAGS=$(LDFLAGS1) $(EXTRA_LDFLAGS)
INCDIR=$(SRCDIR)/include
LIBEXT=a
##
##  (End of automatically generated section)
##

LIB=libathena.a

OBJS=\
	mod_athena.o
all: lib

lib: $(LIB) 

libathena.a: $(OBJS)
	rm -f $@
	ar cr $@ $(OBJS)
	$(RANLIB) $@


.SUFFIXES: .o .lo

.c.o:
	$(CC) -c $(INCLUDES) $(CFLAGS) $<


clean:
	rm -f $(OBJS) $(OBJS_PIC) $(LIB) gcache

distclean: clean
	-rm -f Makefile

# We really don't expect end users to use this rule.  It works only with
# gcc, and rebuilds Makefile.tmpl.  You have to re-run Configure after
# using it.
depend:
	cp Makefile.tmpl Makefile.tmpl.bak \
	    && sed -ne '1,/^# DO NOT REMOVE/p' Makefile.tmpl > Makefile.new \
	    && gcc -MM $(INCLUDES) $(CFLAGS) *.c >> Makefile.new \
	    && sed -e '1,$$s: $(INCDIR)/: $$(INCDIR)/:g' \
	           -e '1,$$s: $(OSDIR)/: $$(OSDIR)/:g' Makefile.new \
		> Makefile.xxx \
	    && rm Makefile.new

# Version for Ben - the above may or may not work, I haven't tested it.
xdepend:
	cp Makefile.tmpl Makefile.tmpl.bak \
	&& cp Makefile.tmpl Makefile.new \
	&& makedepend -DAPACHE_SSL -I../../include -I../../../../SSLeay-0.9.0-ben/include -I../../os/unix -f Makefile.new *.c \
	&& sed -e '/^# DO NOT REMOVE/,$$s: ../../../../SSLeay-0.9.0-ben/include/[^ ]*::g' -e '/^# DO NOT REMOVE/,$$s: /usr/include/[^ ]*::g'  -e '/^# DO NOT REMOVE/,$$s/[^:]*:$$//' Makefile.new > Makefile.tmpl \
	&& rm Makefile.new

#Dependencies

$(OBJS) $(OBJS_PIC): Makefile

# DO NOT REMOVE
# DO NOT DELETE THIS LINE -- make depend depends on it.
apache_ssl.o: ../../include/httpd.h ../../include/ap_config.h
apache_ssl.o: ../../include/ap_config_auto.h
apache_ssl.o: ../../os/unix/os.h
apache_ssl.o: ../../include/ap_ctype.h
apache_ssl.o: ../../include/hsregex.h
apache_ssl.o: ../../include/alloc.h
apache_ssl.o: ../../include/buff.h ../../include/ap.h
apache_ssl.o: ../../include/util_uri.h ../../include/http_config.h
apache_ssl.o: ../../include/http_log.h
apache_ssl.o: ../../include/gcache.h
gcache.o: ../../include/gcache.h ../../include/httpd.h
gcache.o: ../../include/ap_config.h ../../include/ap_config_auto.h
gcache.o: ../../os/unix/os.h
gcache.o: ../../include/ap_ctype.h
gcache.o: ../../include/hsregex.h
gcache.o: ../../include/alloc.h
gcache.o: ../../include/buff.h






























gcache.o: ../../include/ap.h
gcache.o: ../../include/util_uri.h










gcacheclient.o: ../../include/gcache.h




gcachecommon.o: ../../include/gcache.h
