## ## 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= EXTRA_INCLUDES= EXTRA_DEPS= OSDIR=$(SRCDIR)/os/unix INCDIR=$(SRCDIR)/include INCLUDES0=-I$(OSDIR) -I$(INCDIR) SHELL=/bin/sh CC=gcc CPP=gcc -E TARGET=httpd OPTIM= CFLAGS1= -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I$(SRCDIR)/lib/expat-lite INCLUDES1= LIBS_SHLIB= LDFLAGS1= MFLAGS_STATIC=--no-print-directory REGLIB=regex/libregex.a EXPATLIB=lib/expat-lite/libexpat.a RANLIB=ranlib LIBS1= -lm -lcrypt ## ## (End of automatically generated section) ## CFLAGS=$(OPTIM) $(CFLAGS1) $(EXTRA_CFLAGS) LIBS=-lap -los $(EXTRA_LIBS) $(LIBS1) INCLUDES=$(INCLUDES1) $(INCLUDES0) $(EXTRA_INCLUDES) LDFLAGS=$(LDFLAGS1) $(EXTRA_LDFLAGS) -L$(OSDIR) -L$(SRCDIR)/ap TARGETS=htpasswd htdigest rotatelogs logresolve ab apxs OBJS=htpasswd.o htdigest.o rotatelogs.o logresolve.o ab.o .c.o: $(CC) -c $(INCLUDES) $(CFLAGS) $< all: $(TARGETS) htpasswd: htpasswd.o $(CC) $(CFLAGS) htpasswd.o -o htpasswd $(LDFLAGS) $(LIBS) htdigest: htdigest.o $(CC) $(CFLAGS) htdigest.o -o htdigest $(LDFLAGS) $(LIBS) rotatelogs: rotatelogs.o $(CC) $(CFLAGS) rotatelogs.o -o rotatelogs $(LDFLAGS) $(LIBS) logresolve: logresolve.o $(CC) $(CFLAGS) logresolve.o -o logresolve $(LDFLAGS) $(LIBS) ab: ab.o $(CC) $(CFLAGS) ab.o -o ab $(LDFLAGS) $(LIBS) apxs: apxs.pl sed apxs \ -e 's%@TARGET@%$(TARGET)%g' \ -e 's%@CC@%$(CC)%g' \ -e 's%@CFLAGS@%$(CFLAGS)%g' \ -e 's%@CFLAGS_SHLIB@%$(CFLAGS_SHLIB)%g' \ -e 's%@LD_SHLIB@%$(LD_SHLIB)%g' \ -e 's%@LDFLAGS_MOD_SHLIB@%$(LDFLAGS_MOD_SHLIB)%g' \ -e 's%@LIBS_SHLIB@%$(LIBS_SHLIB)%g' && chmod a+x apxs suexec: suexec.o $(CC) $(CFLAGS) suexec.o -o suexec $(LDFLAGS) $(LIBS) clean: rm -f $(TARGETS) *.o 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.tmpl \ && rm Makefile.new #Dependencies $(OBJS): Makefile # DO NOT REMOVE ab.o: ab.c $(INCDIR)/ap_config.h $(INCDIR)/ap_config_auto.h \ $(OSDIR)/os.h $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h htdigest.o: htdigest.c $(INCDIR)/ap_config.h \ $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h $(INCDIR)/ap_ctype.h \ $(INCDIR)/hsregex.h $(INCDIR)/ap_md5.h htpasswd.o: htpasswd.c $(INCDIR)/ap_config.h \ $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h $(INCDIR)/ap_ctype.h \ $(INCDIR)/hsregex.h logresolve.o: logresolve.c $(INCDIR)/ap_config.h \ $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h $(INCDIR)/ap_ctype.h \ $(INCDIR)/hsregex.h rotatelogs.o: rotatelogs.c $(INCDIR)/ap_config.h \ $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h $(INCDIR)/ap_ctype.h \ $(INCDIR)/hsregex.h suexec.o: suexec.c $(INCDIR)/ap_config.h $(INCDIR)/ap_config_auto.h \ $(OSDIR)/os.h $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h suexec.h