home *** CD-ROM | disk | FTP | other *** search
Makefile | 1999-01-10 | 3.5 KB | 120 lines |
- ##
- ## 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)
- ## - ./Makefile.tmpl
- ##
-
- ##
- ## Inherited Makefile options from Configure script
- ## (Begin of automatically generated section)
- ##
- SRCDIR=..
- EXTRA_CFLAGS=
- EXTRA_LDFLAGS=-s
- EXTRA_LIBS=
- EXTRA_INCLUDES=
- EXTRA_DEPS=
- OPTIM=-O2
- OSDIR=$(SRCDIR)/os/os2
- INCDIR=$(SRCDIR)/include
- INCLUDES0=-I$(OSDIR) -I$(INCDIR)
- SHELL=sh
- CC=gcc
- CPP=gcc -E
- TARGET=httpd
- CFLAGS1= -DOS2 -Zbsd-signals -Zbin-files -DTCPIPV4 -g -DUSE_HSREGEX
- INCLUDES1=
- LIBS_SHLIB=
- LDFLAGS1= -Zexe
- MFLAGS_STATIC=--no-print-directory
- REGLIB=regex/libregex.a
- RANLIB=true
- LIBS1= -lsocket -lufc -lbsd
- ##
- ## (End of automatically generated section)
- ##
-
-
- CFLAGS=$(OPTIM) $(CFLAGS1) $(EXTRA_CFLAGS)
- LIBS=-los -lap $(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.pl >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_SHLIB@%$(LDFLAGS_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 ../main/md5c.c $(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
-