Diff for /gforth/Attic/Makefile between versions 1.6 and 1.19

version 1.6, 1994/07/07 14:59:19 version 1.19, 1994/10/24 19:15:52
Line 2 Line 2
   
 RM      = echo 'Trying to remove'  RM      = echo 'Trying to remove'
 GCC     = gcc  GCC     = gcc
   FORTH   = gforth
 CC      = gcc  CC      = gcc
 SWITCHES = -D_POSIX_VERSION -DDEFAULTBIN='"'$(PWD)'"' -DUSE_TOS -DUSE_FTOS # -DDIRECT_THREADED   SWITCHES = \
           -fno-defer-pop -fcaller-saves \
           -DUSE_TOS -DUSE_FTOS -DDEFAULTBIN='"'`pwd`'"' \
           -DDIRECT_THREADED -D_POSIX_VERSION -DUSE_GETOPT #-DNDEBUG #turn off assertions
 CFLAGS  = -O4 -Wall -g $(SWITCHES)  CFLAGS  = -O4 -Wall -g $(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  LDLIBS = -lm
   
 EMACS   = emacs  EMACS   = emacs
   
 INCLUDES = forth.h io.h  INCLUDES = forth.h io.h
   
 FORTH_SRC = cross.fs debug.fs environ.fs errore.fs extend.fs \  FORTH_SRC = add.fs assert.fs blocks.fs bufio.fs cross.fs debug.fs \
         filedump.fs glosgen.fs kernal.fs look.fs machine32b.fs \          debugging.fs environ.fs errore.fs etags.fs extend.fs filedump.fs \
         machine32l.fs main.fs other.fs search-order.fs see.fs sieve.fs \          float.fs glocals.fs glosgen.fs gray.fs hash.fs kernal.fs \
         struct.fs tools.fs toolsext.fs vars.fs wordinfo.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 primitives2c.el engine.c main.c io.c \  SOURCES = Makefile primitives primitives2c.el engine.c main.c io.c \
         apollo68k.h decstation.h 386.h hppa.h sparc.h \          apollo68k.h decstation.h 386.h hppa.h sparc.h gforth.ds \
         $(INCLUDES) $(FORTH_SRC)          $(INCLUDES) $(FORTH_SRC)
   
 RCS_FILES = $(SOURCES) INSTALL ToDo model high-level  RCS_FILES = $(SOURCES) INSTALL ToDo model high-level
   
 GEN = ansforth  GEN = gforth
   
 GEN_PRECIOUS = primitives.i prim_labels.i primitives.b prim_alias.4th aliases.fs  GEN_PRECIOUS = primitives.i prim_labels.i primitives.b aliases.fs
   
 OBJECTS = engine.o io.o main.o  OBJECTS = engine.o io.o main.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 prim_alias.4th kernal.32limg  FORTH_GEN = primitives.i prim_labels.i prim_alias.4th \
           kernl32l.fi kernl32b.fi gforth.texi
   
 all:    ansforth aliases.fs  all:    gforth
   
 #from the gcc Makefile:   #from the gcc Makefile: 
 #"Deletion of files made during compilation.  #"Deletion of files made during compilation.
Line 50  all: ansforth aliases.fs Line 57  all: ansforth aliases.fs
 # `realclean' also deletes everything that could be regenerated automatically."  # `realclean' also deletes everything that could be regenerated automatically."
   
 clean:            clean:          
                 -rm $(GEN)                  -rm $(GEN) *.o *.s
   
 distclean:      clean  distclean:      clean
                 -rm machine.h                  -rm machine.h machine.fs
   
 realclean:      distclean  realclean:      distclean
                 -rm $(GEN_PRECIOUS)                  -rm $(GEN_PRECIOUS)
   
 current:        $(RCS_FILES)  #does not work
   #gforth.tar.gz: $(SOURCES) $(GEN_PRECIOUS) CVS
   #               cd ..; tar cvf gforth/gforth.tar gforth/{$^}; gzip -9 gforth/gforth.tar
   
 ansforth:       $(OBJECTS) $(FORTH_GEN)  gforth: $(OBJECTS) $(FORTH_GEN)
                 -cp ansforth ansforth.old                  -cp gforth gforth~
                 $(GCC) $(LDFLAGS) $(OBJECTS) $(LDLIBS) -o $@                  $(GCC) $(LDFLAGS) $(OBJECTS) $(LDLIBS) -o $@
   
 kernal.32limg:  search-order.fs cross.fs aliases.fs vars.fs add.fs \  kernl32l.fi:    main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \
                 environ.fs errore.fs kernal.fs extend.fs tools.fs toolsext.fs \                  errore.fs kernal.fs extend.fs tools.fs toolsext.fs \
                 $(FORTH_GEN)                  mach32l.fs $(FORTH_GEN)
                 -cp kernal.32limg kernal.32limg.old                  -cp kernl32l.fi kernl32l.fi~
                 ansforth "include main.fs"                  $(FORTH) -e 's" mach32l.fs"' main.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 \
                   mach32b.fs $(FORTH_GEN)
                   -cp kernl32b.fi kernl32b.fi~
                   $(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 80  primitives.b: primitives Line 94  primitives.b: primitives
                 m4 primitives >$@                   m4 primitives >$@ 
   
 primitives.i :  primitives.b prims2x.fs  primitives.i :  primitives.b prims2x.fs
                 ansforth "include prims2x.fs s\" primitives.b\" ' output-c process-file bye" >$@                  $(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-c process-file bye" >$@
   
 prim_labels.i : primitives.b prims2x.fs  prim_labels.i : primitives.b prims2x.fs
                 ansforth "include prims2x.fs s\" primitives.b\" ' output-label process-file bye" >$@                  $(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-label process-file bye" >$@
   
   aliases.fs:     primitives.b prims2x.fs
                   $(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-alias process-file bye" >$@
   
   primitives.fs:  primitives.b prims2x.fs
                   $(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-forth process-file bye" >$@
   
 prim_alias.4th: primitives.b prims2x.fs  gforth.texi:    gforth.ds primitives.b ds2texi.fs prims2x.fs
                 ansforth "include prims2x.fs s\" primitives.b\" ' output-alias process-file bye" >$@                  $(FORTH) search-order.fs struct.fs debugging.fs ds2texi.fs prims2x.fs -e "s\" primitives.b\" ' register-doc process-file s\" gforth.ds\" r/o open-file throw ds2texi bye" >$@
   
 aliases.fs:     prim_alias.4th  gforth.dvi:     gforth.texi
                 cp prim_alias.4th $@                  tex gforth.texi
   
 #primitives.4th:        primitives.b primitives2c.el  #primitives.4th:        primitives.b primitives2c.el
 #               $(EMACS) -batch -load primitives2c.el -funcall make-forth  #               $(EMACS) -batch -load primitives2c.el -funcall make-forth
   
 #GNU make default rules  #GNU make default rules
 % ::            RCS/%,v  #% ::           RCS/%,v
                 co $@  #               co $@
 %.o :           %.c $(INCLUDES)  
   %.s :           %.c $(INCLUDES)
                   $(CC) $(CFLAGS) -S $< -o $@
   
   %.o :           %.s
                 $(CC) $(CFLAGS) -c $< -o $@                  $(CC) $(CFLAGS) -c $< -o $@
   

Removed from v.1.6  
changed lines
  Added in v.1.19


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