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

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.3     ! jwilke     21: machine = @mach_h@
        !            22: 
1.1       anton      23: SHELL  = /bin/sh
                     24: RM     = rm
                     25: RMTREE = rm -rf
                     26: CP     = cp
                     27: TAR    = tar cf -
                     28: GCC    = @CC@
                     29: CC     = $(GCC)
                     30: STRIP  = strip
1.3     ! jwilke     31: 
        !            32: 
1.1       anton      33: XCFLAGS        = @CFLAGS@
                     34: XDEFINES = @DEFS@
                     35: SWITCHES = $(XCFLAGS) $(XDEFINES)
1.3     ! jwilke     36: ENGINE_FLAGS = @ENGINE_FLAGS@ -fno-defer-pop -fcaller-saves
1.1       anton      37: DEBUGFLAG = @DEBUGFLAG@
1.3     ! jwilke     38: CFLAGS = $(DEBUGFLAG) -I../arch/$(machine) -O4 -Wall $(SWITCHES) -DDEFAULTPATH=\"$(FORTHPATH)\"
        !            39: 
        !            40: AOBJECTS = io.o memcmpc.o @LIBOBJS@ @getopt_long@
1.1       anton      41: 
1.3     ! jwilke     42: OBJECTS0 = replace.a
        !            43: OBJECTS = engine.o main.o
        !            44: OBJECTS_DITC =  engine-ditc.o main-ditc.o
        !            45: 
        !            46: # In engine subdirectory there are (or should be) only files that belong to
        !            47: # our engine, so we can make life easy
        !            48: ENGINE_DEPS = *.c *.h *.i ../arch/$(machine)/*
1.1       anton      49: 
                     50: all:   replace.a
                     51: 
1.3     ! jwilke     52: replace.a:     $(AOBJECTS)
        !            53:                ar r $@ $(AOBJECTS)
        !            54: 
        !            55: engine.s:      $(ENGINE_DEPS)
        !            56:                $(GCC) $(CFLAGS) $(ENGINE_FLAGS) -S engine.c
        !            57: 
        !            58: engine.o:      $(ENGINE_DEPS)
        !            59:                $(GCC) $(CFLAGS) $(ENGINE_FLAGS) -c engine.c -o $@
        !            60: 
        !            61: engine-ditc.o: $(ENGINE_DEPS)
        !            62:                $(GCC) $(CFLAGS) $(ENGINE_FLAGS) -DDOUBLY_INDIRECT -o $@ -c engine.c
        !            63: 
        !            64: main.o:                $(ENGINE_DEPS) 
        !            65:                $(GCC) $(CFLAGS) $(ENGINE_FLAGS) -o $@ -c main.c
        !            66: 
        !            67: main-ditc.o:   $(ENGINE_DEPS)
        !            68:                $(GCC) $(CFLAGS) $(ENGINE_FLAGS) -DDOUBLY_INDIRECT -o $@ -c main.c
        !            69: 
        !            70: engine:                $(OBJECTS) $(OBJECTS0) ;
        !            71: 
        !            72: engine_ditc:   $(OBJECTS_DITC) $(OBJECTS0) ;
1.2       pazsan     73: 
                     74: #NeXTstep hack
                     75: 
                     76: termios.o:     /usr/lib/libposix.a
1.3     ! jwilke     77:        ar x /usr/lib/libposix.a termios.o
        !            78: 

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