Annotation of gforth/engine/Makefile.in, revision 1.4

1.1       anton       1: #Makefile for library replace functions
                      2: 
                      3: #Copyright (C) 1995-1997 Free Software Foundation, Inc.
                      4: 
                      5: #This file is part of Gforth.
                      6: 
                      7: #Gforth is free software; you can redistribute it and/or
                      8: #modify it under the terms of the GNU General Public License
                      9: #as published by the Free Software Foundation; either version 2
                     10: #of the License, or (at your option) any later version.
                     11: 
                     12: #This program is distributed in the hope that it will be useful,
                     13: #but WITHOUT ANY WARRANTY; without even the implied warranty of
                     14: #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.#See the
                     15: #GNU General Public License for more details.
                     16: 
                     17: #You should have received a copy of the GNU General Public License
                     18: #along with this program; if not, write to the Free Software
                     19: #Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
                     20: 
1.4     ! jwilke     21: # ------------- gforth version
        !            22: 
        !            23: VERSION_MAJOR=0
        !            24: VERSION_MINOR=3
        !            25: VERSION_RELEASE=1
        !            26: VERSION =$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_RELEASE)
        !            27: DOSVERSION=$(VERSION_MAJOR)$(VERSION_MINOR)$(VERSION_RELEASE)
        !            28: 
        !            29: # ------------- System specific variables
        !            30: 
        !            31: machine=@mach_h@
        !            32: # this is the type of machine
        !            33: # used to extend the include path with ./arch/$machine
        !            34: # so we could include a machine specific
        !            35: # machine.h file
        !            36: 
        !            37: PATHSEP = @PATHSEP@
        !            38: 
        !            39: osclass = @OSCLASS@
        !            40: 
        !            41: # ------------- Utility programs
1.3       jwilke     42: 
1.1       anton      43: SHELL  = /bin/sh
                     44: RM     = rm
                     45: RMTREE = rm -rf
                     46: CP     = cp
                     47: TAR    = tar cf -
                     48: GCC    = @CC@
                     49: CC     = $(GCC)
                     50: STRIP  = strip
1.3       jwilke     51: 
1.4     ! jwilke     52: FORTHPATH = $(libdir)/gforth/site-forth$(PATHSEP)$(datadir)/gforth/site-forth$(PATHSEP)$(libdir)/gforth/$(VERSION)$(PATHSEP)$(datadir)/gforth/$(VERSION)$(PATHSEP).
        !            53: 
        !            54: # ------------- Compiler Flags
1.3       jwilke     55: 
1.1       anton      56: XCFLAGS        = @CFLAGS@
                     57: XDEFINES = @DEFS@
                     58: SWITCHES = $(XCFLAGS) $(XDEFINES)
1.3       jwilke     59: ENGINE_FLAGS = @ENGINE_FLAGS@ -fno-defer-pop -fcaller-saves
1.1       anton      60: DEBUGFLAG = @DEBUGFLAG@
1.3       jwilke     61: CFLAGS = $(DEBUGFLAG) -I../arch/$(machine) -O4 -Wall $(SWITCHES) -DDEFAULTPATH=\"$(FORTHPATH)\"
1.4     ! jwilke     62: 
        !            63: #John Wavrik should use -Xlinker -N to get a writable text (executable)
        !            64: XLDFLAGS = @LDFLAGS@
        !            65: GCCLDFLAGS = @GCCLDFLAGS@
        !            66: LDFLAGS =  $(DEBUGFLAG) $(XLDFLAGS) $(GCCLDFLAGS)
        !            67: LDLIBS  = @LIBS@
1.3       jwilke     68: 
                     69: AOBJECTS = io.o memcmpc.o @LIBOBJS@ @getopt_long@
1.1       anton      70: 
1.3       jwilke     71: OBJECTS0 = replace.a
                     72: OBJECTS = engine.o main.o
                     73: OBJECTS_DITC =  engine-ditc.o main-ditc.o
                     74: 
                     75: # In engine subdirectory there are (or should be) only files that belong to
                     76: # our engine, so we can make life easy
                     77: ENGINE_DEPS = *.c *.h *.i ../arch/$(machine)/*
1.1       anton      78: 
                     79: all:   replace.a
                     80: 
1.3       jwilke     81: replace.a:     $(AOBJECTS)
                     82:                ar r $@ $(AOBJECTS)
                     83: 
                     84: engine.s:      $(ENGINE_DEPS)
                     85:                $(GCC) $(CFLAGS) $(ENGINE_FLAGS) -S engine.c
                     86: 
                     87: engine.o:      $(ENGINE_DEPS)
                     88:                $(GCC) $(CFLAGS) $(ENGINE_FLAGS) -c engine.c -o $@
                     89: 
                     90: engine-ditc.o: $(ENGINE_DEPS)
                     91:                $(GCC) $(CFLAGS) $(ENGINE_FLAGS) -DDOUBLY_INDIRECT -o $@ -c engine.c
                     92: 
                     93: main.o:                $(ENGINE_DEPS) 
                     94:                $(GCC) $(CFLAGS) $(ENGINE_FLAGS) -o $@ -c main.c
                     95: 
                     96: main-ditc.o:   $(ENGINE_DEPS)
                     97:                $(GCC) $(CFLAGS) $(ENGINE_FLAGS) -DDOUBLY_INDIRECT -o $@ -c main.c
                     98: 
                     99: engine:                $(OBJECTS) $(OBJECTS0) ;
                    100: 
                    101: engine_ditc:   $(OBJECTS_DITC) $(OBJECTS0) ;
1.2       pazsan    102: 
                    103: #NeXTstep hack
                    104: 
                    105: termios.o:     /usr/lib/libposix.a
1.3       jwilke    106:        ar x /usr/lib/libposix.a termios.o
                    107: 

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