Annotation of gforth/Makefile.in, revision 1.6

1.1       pazsan      1: #Copyright 1992 by the ANSI figForth Development Group
                      2: 
1.5       anton       3: VERSION        = 0.1alpha#gforth version
1.4       pazsan      4: RM     = rm
                      5: CP     = cp
1.1       pazsan      6: GCC    = gcc
                      7: FORTH  = gforth
                      8: CC     = gcc
1.4       pazsan      9: MAKE   = gmake
1.1       pazsan     10: XCFLAGS        =
                     11: XDEFINES       =
1.2       pazsan     12: SWITCHES       = $(XCFLAGS) $(XDEFINES) -DDEFAULTBIN='"'`pwd`'"' #-DNDEBUG #turn off assertions
                     13: CFLAGS = -O4 -Wall $(SWITCHES)
1.1       pazsan     14: 
                     15: #-Xlinker -n puts text and data into the same 256M region
                     16: #John Wavrik should use -Xlinker -N to get a writable text (executable)
                     17: LDFLAGS        = -Xlinker -N
1.2       pazsan     18: LDLIBS = -lm
1.1       pazsan     19: 
                     20: EMACS  = emacs
                     21: 
                     22: INCLUDES = forth.h io.h
                     23: 
1.6     ! pazsan     24: FORTH_SRC = add.fs assert.fs ansi.fs blocks.fs bufio.fs checkans.fs \
        !            25:        colorize.fs cross.fs debug.fs debugging.fs doskey.fs ds2texi.fs \
        !            26:        dumpimage.fs environ.fs errore.fs etags.fs extend.fs filedump.fs \
        !            27:        float.fs glocals.fs glosgen.fs gray.fs hash.fs history.fs \
        !            28:        kernal.fs locals-test.fs look.fs mach32b.fs mach32l.fs main.fs \
        !            29:        other.fs prims2x.fs random.fs search-order.fs see.fs sieve.fs \
        !            30:        startup.fs struct.fs tools.fs toolsext.fs tt.fs vars.fs vt100.fs \
        !            31:        vt100key.fs wordinfo.fs wordsets.fs
1.1       pazsan     32: 
1.5       anton      33: SOURCES        = Makefile.in configure  config.sub  config.guess \
                     34:        INSTALL README ToDo BUGS model gforth.ds \
1.6     ! pazsan     35:        primitives engine.c main.c io.c \
1.5       anton      36:        apollo68k.h decstation.h 386.h hppa.h cache.c sparc.h \
                     37:        getopt.c getopt1.c getopt.h \
1.6     ! pazsan     38:        makefile.dos io-dos.h configure.bat \
        !            39:        glosgen.glo glossaries.doc \
1.1       pazsan     40:        $(INCLUDES) $(FORTH_SRC)
                     41: 
1.5       anton      42: RCS_FILES =  ToDo model high-level
1.1       pazsan     43: 
                     44: GEN = gforth
                     45: 
                     46: OBJECTS        = engine.o io.o main.o
                     47: 
                     48: # things that need a working forth system to be generated
                     49: # this is used for antidependences,
1.5       anton      50: 
                     51: FORTH_GEN =  primitives.b primitives.i prim_labels.i aliases.fs kernl32l.fi kernl32b.fi
                     52: 
                     53: GEN_PRECIOUS = $(FORTH_GEN) gforth.texi gforth.dvi gforth.ps Makefile
1.1       pazsan     54: 
1.2       pazsan     55: all:
                     56:        if [ ! -x gforth ]; then $(MAKE) first; fi
                     57:        $(MAKE) more
1.1       pazsan     58: 
1.2       pazsan     59: first: gforth
                     60: 
1.3       pazsan     61: more:  $(FORTH_GEN) gforth
1.2       pazsan     62: 
1.1       pazsan     63: #from the gcc Makefile: 
                     64: #"Deletion of files made during compilation.
                     65: # There are four levels of this:
                     66: #   `mostlyclean', `clean', `distclean' and `realclean'.
                     67: # `mostlyclean' is useful while working on a particular type of machine.
                     68: # It deletes most, but not all, of the files made by compilation.
                     69: # It does not delete libgcc.a or its parts, so it won't have to be recompiled.
                     70: # `clean' deletes everything made by running `make all'.
                     71: # `distclean' also deletes the files made by config.
                     72: # `realclean' also deletes everything that could be regenerated automatically."
                     73: 
                     74: clean:         
1.4       pazsan     75:                -$(RM) $(GEN) *.o *.s
1.1       pazsan     76: 
                     77: distclean:     clean
1.4       pazsan     78:                -$(RM) machine.h machine.fs
1.1       pazsan     79: 
                     80: realclean:     distclean
1.4       pazsan     81:                -$(RM) $(GEN_PRECIOUS)
1.1       pazsan     82: 
1.6     ! pazsan     83: package:       $(SOURCES) $(FORTH_GEN)
        !            84:                -rm ../gforth-$(VERSION)
        !            85:                ln -s `pwd` ../gforth-$(VERSION)
        !            86:                echo "" $(SOURCES) $(FORTH_GEN) |\
        !            87:                        sed -e 's| | gforth-$(VERSION)/|g' |\
        !            88:                        (cd ..; xargs tar cvf gforth/gforth-$(VERSION).tar)
1.5       anton      89:                gzip -9 -f gforth-$(VERSION).tar
1.6     ! pazsan     90:                -rm ../gforth-$(VERSION)
1.1       pazsan     91: 
1.5       anton      92: Makefile:      Makefile.in
                     93:                configure
                     94: 
1.2       pazsan     95: gforth:        $(OBJECTS)
1.4       pazsan     96:                -$(CP) gforth gforth~
1.1       pazsan     97:                $(GCC) $(LDFLAGS) $(OBJECTS) $(LDLIBS) -o $@
                     98: 
                     99: kernl32l.fi:   main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \
                    100:                errore.fs kernal.fs extend.fs tools.fs toolsext.fs \
                    101:                mach32l.fs $(FORTH_GEN)
1.4       pazsan    102:                -$(CP) kernl32l.fi kernl32l.fi~
1.1       pazsan    103:                $(FORTH) -e 's" mach32l.fs"' main.fs
                    104: 
                    105: kernl32b.fi:   main.fs search-order.fs cross.fs aliases.fs vars.fs add.fs \
                    106:                errore.fs kernal.fs extend.fs tools.fs toolsext.fs \
                    107:                mach32b.fs $(FORTH_GEN)
1.4       pazsan    108:                -$(CP) kernl32b.fi kernl32b.fi~
1.1       pazsan    109:                $(FORTH) -e 's" mach32b.fs"' main.fs
                    110: 
                    111: engine.s:      engine.c primitives.i prim_labels.i machine.h $(INCLUDES)
                    112:                $(GCC) $(CFLAGS) -S engine.c
                    113: 
                    114: engine.o:      engine.c primitives.i prim_labels.i machine.h $(INCLUDES)
                    115: 
                    116: primitives.b:  primitives
                    117:                m4 primitives >$@ 
                    118: 
                    119: primitives.i : primitives.b prims2x.fs
                    120:                $(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-c process-file bye" >$@
                    121: 
                    122: prim_labels.i :        primitives.b prims2x.fs
                    123:                $(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-label process-file bye" >$@
                    124: 
                    125: aliases.fs:    primitives.b prims2x.fs
                    126:                $(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-alias process-file bye" >$@
                    127: 
                    128: primitives.fs: primitives.b prims2x.fs
                    129:                $(FORTH) prims2x.fs -e "s\" primitives.b\" ' output-forth process-file bye" >$@
                    130: 
                    131: gforth.texi:   gforth.ds primitives.b ds2texi.fs prims2x.fs
1.4       pazsan    132:                $(FORTH) ds2texi.fs >$@
1.1       pazsan    133: 
                    134: gforth.dvi:    gforth.texi
                    135:                tex gforth.texi
1.5       anton     136: 
                    137: gforth.ps:     gforth.dvi
                    138:                dvips gforth.dvi -o $@
1.1       pazsan    139: 
                    140: %.s :          %.c $(INCLUDES)
                    141:                $(CC) $(CFLAGS) -S $< -o $@
                    142: 
                    143: %.o :          %.s
                    144:                $(CC) $(CFLAGS) -c $< -o $@
                    145: 

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