
#
# 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
        DEFINES = -DCGW
         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
        SNMPLIB = libsnmp.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)/"vax"/gw -I$(TOP)/"vax"/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

all:: testgw.out

testgw.o: ../default_flag_values.h

testgw.out:  systbl.o incnf.testgw.o inga.testgw.o \
           inpcnf.o arpcnf.o testgw.o testgw.st.o
	-rm -f testgw.out.old; mv testgw.out testgw.out.old
	$(LD) -e start -o testgw.out $(GWLIB)/$(SCB) $(GWLIB)/$(CRTDDT) systbl.o \
		$(GWLIB)/$(GATELIB) $(GWLIB)/$(DEVLIB) \
		incnf.testgw.o inga.testgw.o arpcnf.o \
		inpcnf.o \
		$(GWLIB)/$(APLIB) $(GWLIB)/$(PROTLIB) \
		testgw.o \
		$(GWLIB)/$(SNMPLIB) \
		$(GWLIB)/$(NETLIB) $(GWLIB)/$(FAKELIB) $(GWLIB)/$(SYSLIB) \
		$(GWLIB)/$(DDTLIB) $(GWLIB)/$(CLIB) $(GWLIB)/$(DDTST)	st.o

testgw.st.o: testgw.e
	nm -gn a.out | $(MKSYMT) > st.s
	cc -c st.s

testgw.e:  systbl.o incnf.testgw.o inga.testgw.o \
         inpcnf.o arpcnf.o testgw.o
	$(LD) -e start -o a.out $(GWLIB)/$(SCB) $(GWLIB)/$(CRTDDT) \
		systbl.o \
		$(GWLIB)/$(GATELIB) $(GWLIB)/$(DEVLIB) \
		incnf.testgw.o inga.testgw.o arpcnf.o \
		inpcnf.o \
		$(GWLIB)/$(APLIB) $(GWLIB)/$(PROTLIB) \
		testgw.o \
		$(GWLIB)/$(SNMPLIB) \
		$(GWLIB)/$(NETLIB) $(GWLIB)/$(FAKELIB) $(GWLIB)/$(SYSLIB) \
		$(GWLIB)/$(DDTLIB) $(GWLIB)/$(CLIB) \
		$(GWLIB)/$(DDTST) $(GWLIB)/$(FAKEDDTST)

clean::
	rm -f a.out st.s

in::
	(cd /mit/cgw/vax/gw/in; make)

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::

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      