home *** CD-ROM | disk | FTP | other *** search
Makefile | 1999-01-10 | 5.2 KB | 170 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
- ##
-
- MODULES= \
- modules/standard/libstandard.a
-
- SUBDIRS=regex os/os2 ap main modules
- SUBTARGET=target_static
- SHLIB_SUFFIX_NAME=
- SHLIB_SUFFIX_LIST=
-
- ##
- ## 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=$(EXTRA_LIBS) $(LIBS1)
- INCLUDES=$(INCLUDES1) $(INCLUDES0) $(EXTRA_INCLUDES)
- LDFLAGS=$(LDFLAGS1) $(EXTRA_LDFLAGS)
-
- OBJS= \
- modules.o \
- $(MODULES) \
- main/libmain.a \
- $(OSDIR)/libos.a \
- ap/libap.a
-
- .c.o:
- $(CC) -c $(INCLUDES) $(CFLAGS) $<
-
- all: Configuration $(TARGET)
-
- Configuration: Configuration.tmpl
- @echo "++ File 'Configuration' older than 'Configuration.tmpl',"
- @echo "++ or still doesn't exist. Please consider copying 'Configuration.tmpl'"
- @echo "++ to 'Configuration', editing and rerunning 'Configure'."
- @echo "++ If not, you will at least have to touch 'Configuration'."
- @false
-
- $(TARGET): $(EXTRA_DEPS) $(SUBTARGET)
-
- target_static: subdirs modules.o
- $(CC) -c $(INCLUDES) $(CFLAGS) buildmark.c
- $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SHLIB_EXPORT) \
- -o $(TARGET) buildmark.o $(OBJS) $(REGLIB) $(LIBS)
-
- target_compile_only: subdirs modules.o
- $(CC) -c $(INCLUDES) $(CFLAGS) buildmark.c
-
- target_shared: lib$(TARGET).ep
- $(CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SHLIB_EXPORT) \
- -o $(TARGET) -DSHARED_CORE_BOOTSTRAP main/http_main.c
-
- lib$(TARGET).ep: lib$(TARGET).$(SHLIB_SUFFIX_NAME)
- $(CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SHLIB_EXPORT) \
- -o lib$(TARGET).ep -DSHARED_CORE_TIESTATIC main/http_main.c \
- -L. -l$(TARGET) $(LIBS)
-
- lib$(TARGET).$(SHLIB_SUFFIX_NAME): subdirs modules.o
- $(CC) -c $(INCLUDES) $(CFLAGS) buildmark.c
- $(LD_SHLIB) $(LDFLAGS_SHLIB) -o lib$(TARGET).$(SHLIB_SUFFIX_NAME) buildmark.o $(OBJS) $(REGLIB)
- @if [ ".$(SHLIB_SUFFIX_LIST)" != . ]; then \
- rm -f lib$(TARGET).$(SHLIB_SUFFIX_NAME).*; \
- for suffix in $(SHLIB_SUFFIX_LIST) ""; do \
- [ ".$$suffix" = . ] && continue; \
- echo "ln lib$(TARGET).$(SHLIB_SUFFIX_NAME) lib$(TARGET).$(SHLIB_SUFFIX_NAME).$$suffix"; \
- ln lib$(TARGET).$(SHLIB_SUFFIX_NAME) lib$(TARGET).$(SHLIB_SUFFIX_NAME).$$suffix; \
- done; \
- fi
-
- subdirs:
- @for i in $(SUBDIRS); do \
- echo "===> $(SDP)$$i"; \
- ( cd $$i && $(MAKE) $(MFLAGS_STATIC) SDP='$(SDP)' CC='$(CC)' AUX_CFLAGS='$(CFLAGS)' RANLIB='$(RANLIB)') || exit 1; \
- echo "<=== $(SDP)$$i"; \
- done
-
- support: support-dir
-
- support-dir:
- @echo "===> $(SDP)support"; \
- cd support; $(MAKE) $(MFLAGS_STATIC) SDP='$(SDP)' CC='$(CC)' AUX_CFLAGS='$(CFLAGS)' RANLIB='$(RANLIB)'; \
- echo "<=== $(SDP)support"
-
- clean:
- -rm -f $(TARGET) lib$(TARGET).* *.o
- @for i in $(SUBDIRS); do \
- echo "===> $(SDP)$$i"; \
- ( cd $$i && $(MAKE) $(MFLAGS_STATIC) SDP='$(SDP)' $@ ) || exit 1; \
- echo "<=== $(SDP)$$i"; \
- done
-
- distclean:
- -rm -f $(TARGET) lib$(TARGET).* *.o
- @for i in $(SUBDIRS); do \
- echo "===> $(SDP)$$i"; \
- ( cd $$i && $(MAKE) $(MFLAGS_STATIC) SDP='$(SDP)' $@ ) || exit 1; \
- echo "<=== $(SDP)$$i"; \
- done
- -rm -f include/ap_config_auto.h
- -rm -f modules.c
- -rm -f modules/Makefile
- -rm -f regex/Makefile
- -rm -f Makefile.config
- -rm -f Makefile
-
- install:
- @echo "++ Sorry, no installation procedure available at this level."
- @echo "++ Go to the parent directory for an 'install' target."
-
- # 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
- for i in $(SUBDIRS); do \
- ( cd $$i && $(MAKE) CC='$(CC)' AUX_CFLAGS='$(CFLAGS)' RANLIB='$(RANLIB)' depend ) || exit 1; \
- done
-
- #Dependencies
-
- $(OBJS): Makefile subdirs
-
- # DO NOT REMOVE
- buildmark.o: buildmark.c include/ap_config.h include/ap_mmn.h \
- include/ap_config_auto.h os/unix/os.h include/ap_ctype.h \
- include/hsregex.h include/httpd.h include/alloc.h include/buff.h \
- include/ap.h include/util_uri.h
- modules.o: modules.c include/httpd.h include/ap_config.h \
- include/ap_mmn.h include/ap_config_auto.h os/unix/os.h \
- include/ap_ctype.h include/hsregex.h include/alloc.h include/buff.h \
- include/ap.h include/util_uri.h include/http_config.h
-