
#
# This makefile is automatically generated by imake... do not modify
# or you may lose your changes when imake generates makefiles again.
# Ignore this message if you are not using imake.
#

            TOP = /mit/cgw
             AS = as
             CC = cc
            CPP = /lib/cpp
             LD = ld
           LINT = lint
       LINTOPTS = -abchpx
           MAKE = make

    CDEBUGFLAGS = -O
        DESTDIR =

            TOP = /mit/cgw
        INSTALL = install
           TAGS = etags
         CFLAGS = $(CDEBUGFLAGS) $(INCLUDES) $(DEFINES)
        LDFLAGS = $(CDEBUGFLAGS) $(SYS_LIBRARIES)
   INSTLIBFLAGS = -c -m 0664
          GWLIB = $(TOP)/"vax"/libexl
      GWLIBINST = $(TOP)/"vax"/lib
         DEVLIB = libdev.a
        FAKELIB = libfake.a
        GATELIB = libgate.a
        PROTLIB = libprot.a
          APLIB = libappl.a
         NETLIB = libnet.a
           CLIB = libc.a
            SCB = scb.o
            CRT = crt.o
         CRTDDT = crtddt.o
         DDTLIB = libddt.a
          DDTST = isymt.o
      FAKEDDTST = fst.o
         SYSLIB = libsys.a
          TOOLS = $(TOP)/src/tools
        TOOLBIN = $(TOP)/"vax"/bin
        TOOLMAN = $(TOP)/man/ManSuffix
         DOCSRC = $(TOP)/doc
         DEPEND = $(TOOLBIN)/makedepend
      DEPENDSRC = $(TOOLS)/makedepend
       IMAKESRC = $(TOOLS)/imake
         MKSYMT = $(TOOLBIN)/mksymt

       INCLUDES = -I$(TOP)/src/gw -I$(TOP)/src/sys/include
      MACROFILE = Vax.macros
          IMAKE = $(TOOLBIN)/imake

      IMAKE_CMD = $(IMAKE) -TImake.tmpl \
			-I$(TOOLS)/imake.includes \
			-s Makefile
         RM_CMD = rm -f *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a \
			tags TAGS make.log

OBJS = make.o glob.o arscan.o

        PROGRAM = make

all:: make

make: $(OBJS) $(LOCAL_LIBRARIES)
	rm -f $@
	$(CC) -o $@ $(OBJS) $(LOCAL_LIBRARIES) $(LDFLAGS)

relink:
	rm -f $(PROGRAM)
	$(MAKE) $(MFLAGS) $(PROGRAM)

install:: make
	$(INSTALL) -c $(INSTALLFLAGS) make $(BINDIR)

install:: make.man
	$(INSTALL) -c -m 0664 make.man $(MANDIR)/make.ManSuffix

depend::
	$(DEPEND) -s "# DO NOT DELETE" $(CFLAGS) $(SRCS)
clean::
	rm -f $(PROGRAM)

clean::
	$(RM_CMD) \#*

Makefile:: Imakefile \
	$(TOOLS)/imake.includes/Imake.tmpl \
	$(TOOLS)/imake.includes/Imake.rules \
	$(TOOLS)/imake.includes/$(MACROFILE)
		-rm -f Makefile.bak; mv Makefile Makefile.bak
		$(IMAKE_CMD) -DTOPDIR=$(TOP)

tags::
	$(TAGS) -w *.[ch]
	$(TAGS) -xw *.[ch] > TAGS

install::
	@echo "install done"

Makefiles::

