Diff for /gforth/Attic/makefile.dos between versions 1.1 and 1.2

version 1.1, 1994/11/17 15:53:17 version 1.2, 1994/11/29 16:22:43
Line 1 Line 1
 #Copyright 1992 by the ANSI figForth Development Group  #Copyright 1992 by the ANSI figForth Development Group
   
   VERSION = 0.1alpha#gforth version
 RM      = xdel  RM      = xdel
 CP      = copy  CP      = copy
 GCC     = gcc  GCC     = gcc
 FORTH   = gforth  FORTH   = gforth
 CC      = gcc  CC      = gcc
 MAKE = make  MAKE    = make
 XCFLAGS =  -fforce-mem -fforce-addr -fomit-frame-pointer -fno-defer-pop -fcaller-saves  XCFLAGS =  -fforce-mem -fforce-addr -fomit-frame-pointer -fno-defer-pop -fcaller-saves
 XDEFINES        = -DDIRECT_THREADED -DUSE_GETOPT  XDEFINES        =  -DUSE_GETOPT -DDIRECT_THREADED
 SWITCHES        = $(XCFLAGS) $(XDEFINES) -DDEFAULTBIN='"/forth/ansforth"' #-DNDEBUG #turn off assertions  SWITCHES        = $(XCFLAGS) $(XDEFINES) -DDEFAULTBIN='"/forth/gforth-0.1alpha"' #-DNDEBUG #turn off assertions
 CFLAGS  = -g -O4 -Wall $(SWITCHES)  CFLAGS  = -g -O4 -Wall $(SWITCHES)
   
 #-Xlinker -n puts text and data into the same 256M region  #-Xlinker -n puts text and data into the same 256M region
 #John Wavrik should use -Xlinker -N to get a writable text (executable)  #John Wavrik should use -Xlinker -N to get a writable text (executable)
 LDFLAGS = -g -Xlinker -N  LDFLAGS = -g -Xlinker -N
 LDLIBS  = -lm -lpc  LDLIBS  =  -lm -lpc
   
 EMACS   = emacs  EMACS   = emacs
   
 INCLUDES = forth.h io.h getopt.h  INCLUDES = forth.h io.h
   
 MACHINES = apollo68k.h decstation.h 386.h hppa.h sparc.h  FORTH_SRC = add.fs assert.fs ansi.fs blocks.fs bufio.fs checkans.fs \
           colorize.fs cross.fs debug.fs debugging.fs doskey.fs ds2texi.fs \
           dumpimage.fs environ.fs errore.fs etags.fs extend.fs filedump.fs \
           float.fs glocals.fs glosgen.fs gray.fs hash.fs history.fs \
           kernal.fs locals-test.fs look.fs mach32b.fs mach32l.fs main.fs \
           other.fs prims2x.fs random.fs search-order.fs see.fs sieve.fs \
           startup.fs struct.fs tools.fs toolsext.fs tt.fs vars.fs vt100.fs \
           vt100key.fs wordinfo.fs wordsets.fs
   
   SOURCES = Makefile.in configure  config.sub  config.guess \
           INSTALL README ToDo BUGS model gforth.ds \
           primitives engine.c main.c io.c \
           apollo68k.h decstation.h 386.h hppa.h cache.c ecvt.c sparc.h \
           getopt.c getopt1.c getopt.h \
           makefile.dos io-dos.h configure.bat startup.dos \
           glosgen.glo glossaries.doc \
           $(INCLUDES) $(FORTH_SRC)
   
 FORTH_SRC = add.fs assert.fs blocks.fs bufio.fs cross.fs debug.fs \  RCS_FILES =  ToDo model high-level
         debugging.fs dumpimage.fs environ.fs errore.fs etags.fs \  
         extend.fs filedump.fs float.fs glocals.fs glosgen.fs gray.fs \  
         hash.fs kernal.fs locals-test.fs look.fs mach32b.fs \  
         mach32l.fs main.fs other.fs prims2x.fs search-order.fs \  
         see.fs sieve.fs startup.fs struct.fs test2.fs tools.fs \  
         toolsext.fs vars.fs vt100.fs wordinfo.fs  
   
 SOURCES = Makefile primitives engine.c main.c ecvt.c \  
         gforth.ds $(MACHINES) $(INCLUDES) $(FORTH_SRC)  
   
 RCS_FILES = $(SOURCES) INSTALL ToDo model high-level  
   
 GEN = gforth  GEN = gforth
   
 GEN_PRECIOUS = primitives.i prim_labels.i primitives.b aliases.fs  OBJECTS =  engine.o main.o getopt1.o getopt.o ecvt.o
   
 OBJECTS =  engine.o ecvt.o main.o getopt1.o getopt.o  
   
 # things that need a working forth system to be generated  # things that need a working forth system to be generated
 # this is used for antidependences,  # this is used for antidependences,
 FORTH_GEN = primitives.i prim_labels.i aliases.fs \  
         kernl32l.fi kernl32b.fi gforth.texi  FORTH_GEN =  primitives.b primitives.i prim_labels.i aliases.fs kernl32l.fi kernl32b.fi
   
   GEN_PRECIOUS = $(FORTH_GEN) gforth.texi gforth.dvi gforth.ps Makefile
   
 all:  all:
         if not exist gforth.exe $(MAKE) first          if [ ! -f gforth ]; then $(MAKE) first; fi
         $(MAKE) more          $(MAKE) more
   
 first:  gforth  first:  gforth
Line 74  distclean: clean Line 80  distclean: clean
 realclean:      distclean  realclean:      distclean
                 -$(RM) $(GEN_PRECIOUS)                  -$(RM) $(GEN_PRECIOUS)
   
 #does not work  package:        $(SOURCES) $(FORTH_GEN)
 #gforth.tar.gz: $(SOURCES) $(GEN_PRECIOUS) CVS                  -rm ../gforth-$(VERSION)
 #               cd ..; tar cvf gforth/gforth.tar gforth/{$^}; gzip -9 gforth/gforth.tar                  ln -s `pwd` ../gforth-$(VERSION)
                   echo "" $(SOURCES) $(FORTH_GEN) |\
                           sed -e 's| | gforth-$(VERSION)/|g' |\
                           (cd ..; xargs tar cvf gforth/gforth-$(VERSION).tar)
                   gzip -9 -f gforth-$(VERSION).tar
                   -rm ../gforth-$(VERSION)
   
   Makefile:       Makefile.in
                   configure
   
 gforth: $(OBJECTS)  gforth: $(OBJECTS)
                 -$(CP) gforth gforth~                  -$(CP) gforth gforth~
Line 88  kernl32l.fi: main.fs search-order.fs cro Line 102  kernl32l.fi: main.fs search-order.fs cro
                 mach32l.fs $(FORTH_GEN)                  mach32l.fs $(FORTH_GEN)
                 -$(CP) kernl32l.fi kernl32l.fi~                  -$(CP) kernl32l.fi kernl32l.fi~
                 $(FORTH) -e 's" mach32l.fs"' main.fs                  $(FORTH) -e 's" mach32l.fs"' main.fs
                 -$(CP) kernl32l.fi gforth.fi                  $(CP) kernl32l.fi gforth.fi
   
 kernl32b.fi:    main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \  kernl32b.fi:    main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \
                 errore.fs kernal.fs extend.fs tools.fs toolsext.fs \                  errore.fs kernal.fs extend.fs tools.fs toolsext.fs \
Line 96  kernl32b.fi: main.fs search-order.fs cro Line 110  kernl32b.fi: main.fs search-order.fs cro
                 -$(CP) kernl32b.fi kernl32b.fi~                  -$(CP) kernl32b.fi kernl32b.fi~
                 $(FORTH) -e 's" mach32b.fs"' main.fs                  $(FORTH) -e 's" mach32b.fs"' main.fs
   
   
 engine.s:       engine.c primitives.i prim_labels.i machine.h $(INCLUDES)  engine.s:       engine.c primitives.i prim_labels.i machine.h $(INCLUDES)
                 $(GCC) $(CFLAGS) -S engine.c                  $(GCC) $(CFLAGS) -S engine.c
   
Line 122  gforth.texi: gforth.ds primitives.b ds2t Line 137  gforth.texi: gforth.ds primitives.b ds2t
 gforth.dvi:     gforth.texi  gforth.dvi:     gforth.texi
                 tex gforth.texi                  tex gforth.texi
   
 #GNU make default rules  gforth.ps:      gforth.dvi
 #% ::           RCS/%,v                  dvips gforth.dvi -o $@
 #               co $@  
   
 %.s :           %.c $(INCLUDES)  %.s :           %.c $(INCLUDES)
                 $(CC) $(CFLAGS) -S $< -o $@                  $(CC) $(CFLAGS) -S $< -o $@

Removed from v.1.1  
changed lines
  Added in v.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>