version 1.50, 2003/01/30 00:07:47
|
version 1.90, 2012/12/31 15:25:19
|
Line 1
|
Line 1
|
#Makefile for the C part of Gforth |
#Makefile for the C part of Gforth |
|
|
#Copyright (C) 1995,1996,1997,1998,2000 Free Software Foundation, Inc. |
#Copyright (C) 1995,1996,1997,1998,2000,2003,2006,2007,2008,2009,2011,2012 Free Software Foundation, Inc. |
|
|
#This file is part of Gforth. |
#This file is part of Gforth. |
|
|
#Gforth is free software; you can redistribute it and/or |
#Gforth is free software; you can redistribute it and/or |
#modify it under the terms of the GNU General Public License |
#modify it under the terms of the GNU General Public License |
#as published by the Free Software Foundation; either version 2 |
#as published by the Free Software Foundation, either version 3 |
#of the License, or (at your option) any later version. |
#of the License, or (at your option) any later version. |
|
|
#This program is distributed in the hope that it will be useful, |
#This program is distributed in the hope that it will be useful, |
Line 15
|
Line 15
|
#GNU General Public License for more details. |
#GNU General Public License for more details. |
|
|
#You should have received a copy of the GNU General Public License |
#You should have received a copy of the GNU General Public License |
#along with this program; if not, write to the Free Software |
#along with this program. If not, see http://www.gnu.org/licenses/. |
#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. |
|
|
|
# ------------- gforth version |
# ------------- gforth version |
|
|
VERSION =@PACKAGE_VERSION@ |
VERSION =@PACKAGE_VERSION@ |
|
LIBVERSION=@LIB_VERSION@ |
DOSVERSION=`echo $VERSION|sed 's/\.//g'` |
DOSVERSION=`echo $VERSION|sed 's/\.//g'` |
EXE=@EXEEXT@ |
EXE=@EXEEXT@ |
|
|
# ------------- System specific variables |
# ------------- System specific variables |
|
|
machine=@machine@ |
machine=@machine@ |
kernel_fi=@kernel_fi@ |
kernel_fi = @kernel_fi@ |
include_fi=gforth.fi |
include_fi = @include_fi@ |
# this is the type of machine |
# this is the type of machine |
# used to extend the include path with ./arch/$machine |
# used to extend the include path with ./arch/$machine |
# so we could include a machine specific |
# so we could include a machine specific |
Line 36 include_fi=gforth.fi
|
Line 36 include_fi=gforth.fi
|
|
|
PATHSEP = @PATHSEP@ |
PATHSEP = @PATHSEP@ |
|
|
osclass = @OSCLASS@ |
EC = @EC@ |
|
ARCH= @ARCH@ |
|
|
# ------------- Utility programs |
# ------------- Utility programs |
|
|
Line 46 RMTREE = rm -rf
|
Line 47 RMTREE = rm -rf
|
CP = cp -p |
CP = cp -p |
TAR = tar cf - |
TAR = tar cf - |
GCC = @CC@ |
GCC = @CC@ |
|
BOOTFORTH = ../preforth |
CC = $(GCC) |
CC = $(GCC) |
|
LD = $(GCC:gcc=ld) |
|
AS = $(GCC:gcc=as) |
STRIP = strip |
STRIP = strip |
|
GCCLD = @GCC_LD@ |
|
LIBTOOL = @GNU_LIBTOOL@ |
|
LTLD = $(LIBTOOL) --mode=link $(GCCLD) -rpath $(libdir) -version-info $(LIBVERSION) -module |
|
|
FORTHPATH = .$(PATHSEP)$(libdir)/gforth/site-forth$(PATHSEP)$(datadir)/gforth/site-forth$(PATHSEP)$(libdir)/gforth/$(VERSION)$(PATHSEP)$(datadir)/gforth/$(VERSION) |
FORTHPATH = .$(PATHSEP)$(libdir)/gforth/site-forth$(PATHSEP)$(datadir)/gforth/site-forth$(PATHSEP)$(libdir)/gforth$(ARCH)/$(VERSION)$(PATHSEP)$(datadir)/gforth/$(VERSION) |
|
|
# ------------ Install Directorys |
# ------------ Source and Build directories |
|
|
|
top_srcdir = @top_srcdir@ |
|
top_builddir = @top_builddir@ |
|
|
|
# ------------ Install directories |
|
|
VPATH = @srcdir@ |
VPATH = @srcdir@ |
prefix = @prefix@ |
prefix = @prefix@ |
exec_prefix = @exec_prefix@ |
exec_prefix = @exec_prefix@ |
srcdir = @srcdir@ |
srcdir = @srcdir@ |
bindir = $(exec_prefix)/bin |
bindir = @bindir@ |
#read-only architecture-independent files |
#read-only architecture-independent files |
datadir = $(prefix)/share |
datadir = @datadir@ |
#read-only architecture-dependent non-ascii files |
#read-only architecture-dependent non-ascii files |
libdir = $(prefix)/lib |
libdir = @libdir@ |
infodir = $(prefix)/info |
infodir = @infodir@ |
mandir = $(prefix)/man |
mandir = @mandir@ |
man1dir= $(mandir)/man1 |
man1dir= $(mandir)/man1 |
man1ext= .1 |
man1ext= .1 |
|
|
|
# ------------- ltdl variables |
|
|
|
LTDLDEPS = @LTDLDEPS@ |
|
LTDLINCL = @LTDLINCL@ |
|
LIBLTDL = @LIBLTDL@ |
|
|
# ------------- Compiler Flags |
# ------------- Compiler Flags |
|
|
XCFLAGS = @CFLAGS@ |
XCFLAGS = @CFLAGS@ |
XDEFINES = @DEFS@ |
XDEFINES = @DEFS@ |
SWITCHES = $(XCFLAGS) $(XDEFINES) |
SWITCHES = $(XCFLAGS) $(XDEFINES) $(OPTDEFINES) |
ENGINE_FLAGS = @ENGINE_FLAGS@ -fno-defer-pop -fcaller-saves |
#use -fno-inline to avoid register problems with asinh, atanh on gcc-3.3 on 386 |
|
ENGINE_FLAGS = @ENGINE_FLAGS@ -fno-defer-pop -fcaller-saves -fno-inline |
DEBUGFLAG = @DEBUGFLAG@ |
DEBUGFLAG = @DEBUGFLAG@ |
CFLAGS = $(DEBUGFLAG) -I$(srcdir)/../arch/$(machine) -I. -O2 -Wall $(SWITCHES) -DDEFAULTPATH=\"$(FORTHPATH)\" |
CFLAGS = $(DEBUGFLAG) -I$(srcdir)/../arch/$(machine) -I. -Wall $(SWITCHES) -DDEFAULTPATH='"$(FORTHPATH)"' $(LTDLINCL) |
CFLAGS2 = $(DEBUGFLAG) -I$(srcdir)/../arch/$(machine) -I. -O2 -Wall $(SWITCHES) -DDEFAULTPATH=\"$(FORTHPATH)\" |
CPPFLAGS=@CPPFLAGS@ |
FORTHKFLAGS= --die-on-signal -p "..$(PATHSEP)$(srcdir)" -i ../$(kernel_fi) |
FORTHKFLAGS= --die-on-signal -p "..$(PATHSEP)$(srcdir)" -i ../$(kernel_fi) |
FORTHK = ../gforth $(FORTHKFLAGS) |
FORTHK = ../gforth $(FORTHKFLAGS) |
|
FORTH = $(BOOTFORTH) --die-on-signal |
|
|
#John Wavrik should use -Xlinker -N to get a writable text (executable) |
#John Wavrik should use -Xlinker -N to get a writable text (executable) |
XLDFLAGS = @LDFLAGS@ |
XLDFLAGS = @LDFLAGS@ |
LDFLAGS = $(DEBUGFLAG) $(XLDFLAGS) |
LDFLAGS = $(DEBUGFLAG) $(XLDFLAGS) |
LDLIBS = @LIBS@ |
LDLIBS = @LIBS@ @LTDL_LDLIBS@ |
|
|
AOBJECTS = io.o signals.o support.o @LIBOBJS@ |
AOBJECTS = @signals_o@ support$(OPT).o @LIBOBJS@ $(OPTOBJECTS) |
|
|
OBJECTS = engine.o engine2.o main.o |
@MAKEINC@ |
OBJECTS_NATIVE = engine-native.o engine-native2.o engine-native3.o main-native.o |
|
OBJECTS_FAST = engine-fast.o engine-fast2.o main-fast.o |
OBJECTS = engine$(OPT).o @engine2@ main$(OPT).o |
OBJECTS_ITC = engine-itc.o main-itc.o |
OBJECTS_NATIVE = engine-native$(OPT).o engine-native2$(OPT).o engine-native3$(OPT).o main-native$(OPT).o |
OBJECTS_DITC = engine-ditc.o main-ditc.o |
OBJECTS_FAST = engine-fast$(OPT).o @engine_fast2@ main-fast$(OPT).o |
OBJECTS_PROF = engine-prof.o main-prof.o |
OBJECTS_ITC = engine-itc$(OPT).o main-itc$(OPT).o |
OBJECTS_FI = engine.o main-fi.o |
OBJECTS_DITC = engine-ditc$(OPT).o main-ditc$(OPT).o |
|
OBJECTS_PROF = engine-prof$(OPT).o main-prof$(OPT).o |
|
OBJECTS_FI = engine$(OPT).o main-fi$(OPT).o |
|
|
# In engine subdirectory there are (or should be) only files that belong to |
# In engine subdirectory there are (or should be) only files that belong to |
# our engine, so we can make life easy |
# our engine, so we can make life easy |
DEPS = config.h *.h $(srcdir)/../arch/$(machine)/*.[h] |
DEPS = config.h forth.h io.h $(srcdir)/../arch/$(machine)/*.[h] |
ENGINE_DEPS = engine.c $(DEPS) prim_lab.i prim.i |
ENGINE_DEPS = engine.c $(DEPS) prim_lab.i prim.i @image_i@ fnmatch.h threaded.h |
MAIN_DEPS = main.c $(DEPS) prim_superend.i prim_num.i prim_grp.i |
MAIN_DEPS = main.c $(DEPS) prim_superend.i prim_num.i prim_grp.i costs.i super2.i |
|
ENGINE_FAST_DEPS = engine.c $(DEPS) prim_lab-fast.i prim-fast.i fnmatch.h threaded.h |
|
MAIN_FAST_DEPS = main.c $(DEPS) prim_superend-fast.i prim_num-fast.i prim_grp-fast.i costs-fast.i super2-fast.i |
|
|
|
COMPILE.c = $(GCC) $(CFLAGS) $(CPPFLAGS) -c # simulate BSD sys.mk |
|
LIBTOOL.c = $(LIBTOOL) --mode=compile $(COMPILE.c) |
|
COMPILER = $(COMPILE.c) |
|
|
|
%.lo: COMPILER = $(LIBTOOL.c) |
|
|
#some makes don't do the -o $@ correctly, so we help them |
#some makes don't do the -o $@ correctly, so we help them |
.c.o: |
.c.o: |
$(GCC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $< |
$(COMPILER) -o $@ $< |
|
|
|
%.lo: %.c |
|
$(COMPILER) -o $@ $< |
|
|
|
.s.o: |
|
$(COMPILER) -o $@ $< |
|
|
|
support$(OPT).o support$(OPT).lo: support.c config.h forth.h longlong.h |
|
$(COMPILER) -o $@ $(srcdir)/support.c |
|
|
|
strtol.o strtol.lo: strtol.c ansidecl.h |
|
|
|
fnmatch.o fnmatch.lo: fnmatch.c fnmatch.h |
|
|
|
getopt1.o getopt1.lo: getopt1.c getopt.h |
|
|
|
getopt.o getopt.lo: getopt.c getopt.h |
|
|
|
GFORTHDEPS = $(AOBJECTS) $(LTDLDEPS) libmain.o |
|
GFORTHOBJS = $(AOBJECTS) $(LDLIBS) libmain.o |
|
|
support.o: support.c config.h forth.h |
LINKER=$(GCCLD) $(LDFLAGS) |
|
%.la: LINKER=$(LTLD) $(LDFLAGS) |
|
|
gforth$(EXE): $(OBJECTS) $(AOBJECTS) |
gforth$(OPT)$(EC)$(ARCH)$(EXE): $(OBJECTS) $(GFORTHDEPS) |
$(GCC) $(LDFLAGS) $(OBJECTS) $(AOBJECTS) $(LDLIBS) -o $@ |
$(LINKER) $(OBJECTS) $(GFORTHOBJS) -o $@ |
|
|
gforth-native$(EXE): $(OBJECTS_NATIVE) $(AOBJECTS) |
gforth-native$(OPT)$(EC)$(ARCH)$(EXE): $(OBJECTS_NATIVE) $(GFORTHDEPS) |
$(GCC) $(LDFLAGS) $(OBJECTS_NATIVE) $(AOBJECTS) $(LDLIBS) -o $@ |
$(LINKER) $(OBJECTS_NATIVE) $(GFORTHOBJS) -o $@ |
|
|
gforth-fast$(EXE): $(OBJECTS_FAST) $(AOBJECTS) |
gforth-fast$(OPT)$(EC)$(ARCH)$(EXE): $(OBJECTS_FAST) $(GFORTHDEPS) |
$(GCC) $(LDFLAGS) $(OBJECTS_FAST) $(AOBJECTS) $(LDLIBS) -o $@ |
$(LINKER) $(OBJECTS_FAST) $(GFORTHOBJS) -o $@ |
|
|
gforth-itc$(EXE): $(OBJECTS_ITC) $(AOBJECTS) |
gforth-itc$(OPT)$(EC)$(ARCH)$(EXE): $(OBJECTS_ITC) $(GFORTHDEPS) |
$(GCC) $(LDFLAGS) $(OBJECTS_ITC) $(AOBJECTS) $(LDLIBS) -o $@ |
$(LINKER) $(OBJECTS_ITC) $(GFORTHOBJS) -o $@ |
|
|
gforth-ditc$(EXE): $(OBJECTS_DITC) $(AOBJECTS) |
gforth-ditc$(OPT)$(EC)$(ARCH)$(EXE): $(OBJECTS_DITC) $(GFORTHDEPS) |
$(GCC) $(LDFLAGS) $(OBJECTS_DITC) $(AOBJECTS) $(LDLIBS) -o $@ |
$(LINKER) $(OBJECTS_DITC) $(GFORTHOBJS) -o $@ |
|
|
gforth-prof$(EXE): $(OBJECTS_PROF) $(AOBJECTS) profile.o |
gforth-prof$(OPT)$(EC)$(ARCH)$(EXE): $(OBJECTS_PROF) profile$(OPT).o $(GFORTHDEPS) |
$(GCC) $(LDFLAGS) $(OBJECTS_PROF) $(AOBJECTS) profile.o $(LDLIBS) -o $@ |
$(LINKER) $(OBJECTS_PROF) $(AOBJECTS) profile$(OPT).o $(LDLIBS) -o $@ |
|
|
gforth-fi$(EXE): $(OBJECTS_FI) $(AOBJECTS) |
gforth-fi$(OPT)$(EC)$(ARCH)$(EXE): $(OBJECTS_FI) $(GFORTHDEPS) |
$(GCC) $(LDFLAGS) $(OBJECTS_FI) $(AOBJECTS) $(LDLIBS) -o $@ |
$(LINKER) $(OBJECTS_FI) $(GFORTHOBJS) -o $@ |
|
|
engine.s: $(ENGINE_DEPS) |
LIBGFORTHDEPS = $(AOBJECTS:%.o=%.lo) $(LTDLDEPS) |
$(GCC) $(CFLAGS2) $(ENGINE_FLAGS) -S $(srcdir)/engine.c |
LIBGFORTHOBJS = $(AOBJECTS:%.o=%.lo) $(LDLIBS) |
|
|
engine.o: $(ENGINE_DEPS) |
libgforth$(EC)$(ARCH).la libgforth$(OPT)$(EC)$(ARCH).la: $(OBJECTS:%.o=%.lo) $(LIBGFORTHDEPS) |
$(GCC) $(CFLAGS2) $(ENGINE_FLAGS) -DGFORTH_DEBUGGING -o $@ -c $(srcdir)/engine.c |
$(LINKER) $(OBJECTS:%.o=%.lo) $(LIBGFORTHOBJS) -o $@ |
|
|
engine2.o: $(ENGINE_DEPS) |
libgforth-native$(EC)$(ARCH).la libgforth-native$(OPT)$(EC)$(ARCH).la: $(OBJECTS_NATIVE:%.o=%.lo) $(LIBGFORTHDEPS) |
$(GCC) $(CFLAGS2) $(ENGINE_FLAGS) -DGFORTH_DEBUGGING -DENGINE=2 -o $@ -c $(srcdir)/engine.c |
$(LINKER) $(OBJECTS_NATIVE:%.o=%.lo) $(LIBGFORTHOBJS) -o $@ |
|
|
engine-native.o:$(ENGINE_DEPS) |
libgforth-fast$(EC)$(ARCH).la libgforth-fast$(OPT)$(EC)$(ARCH).la: $(OBJECTS_FAST:%.o=%.lo) $(LIBGFORTHDEPS) |
$(GCC) $(CFLAGS2) $(ENGINE_FLAGS) -DNO_IP -o $@ -c $(srcdir)/engine.c |
$(LINKER) $(OBJECTS_FAST:%.o=%.lo) $(LIBGFORTHOBJS) -o $@ |
|
|
engine-native2.o:$(ENGINE_DEPS) |
libgforth-itc$(EC)$(ARCH).la libgforth-itc$(OPT)$(EC)$(ARCH).la: $(OBJECTS_ITC:%.o=%.lo) $(LIBGFORTHDEPS) |
$(GCC) $(CFLAGS2) $(ENGINE_FLAGS) -DNO_IP -DENGINE=2 -o $@ -c $(srcdir)/engine.c |
$(LINKER) $(OBJECTS_ITC:%.o=%.lo) $(LIBGFORTHOBJS) -o $@ |
|
|
engine-native3.o:$(ENGINE_DEPS) |
libgforth-ditc$(EC)$(ARCH).la libgforth-ditc$(OPT)$(EC)$(ARCH).la: $(OBJECTS_DITC:%.o=%.lo) $(LIBGFORTHDEPS) |
$(GCC) $(CFLAGS2) $(ENGINE_FLAGS) -DNO_IP -DENGINE=3 -o $@ -c $(srcdir)/engine.c |
$(LINKER) $(OBJECTS_DITC:%.o=%.lo) $(LIBGFORTHOBJS) -o $@ |
|
|
engine-fast.o: $(ENGINE_DEPS) |
libgforth-prof$(EC)$(ARCH).la libgforth-prof$(OPT)$(EC)$(ARCH).la: $(OBJECTS_PROF:%.o=%.lo) profile$(OPT).o $(LIBGFORTHDEPS) |
$(GCC) $(CFLAGS2) $(ENGINE_FLAGS) -o $@ -c $(srcdir)/engine.c |
$(LINKER) $(OBJECTS_PROF:%.o=%.lo) $(AOBJECTS) profile$(OPT).o $(LDLIBS) -o $@ |
|
|
engine-fast2.o: $(ENGINE_DEPS) |
libgforth-fi$(EC)$(ARCH).la libgforth-fi$(OPT)$(EC)$(ARCH).la: $(OBJECTS_FI:%.o=%.lo) $(LIBGFORTHDEPS) |
$(GCC) $(CFLAGS2) $(ENGINE_FLAGS) -DENGINE=2 -o $@ -c $(srcdir)/engine.c |
$(LINKER) $(OBJECTS_FI:%.o=%.lo) $(LIBGFORTHOBJS) -o $@ |
|
|
engine-itc.o: $(ENGINE_DEPS) |
# executables generated by linking to library |
$(GCC) $(CFLAGS2) $(ENGINE_FLAGS) -DINDIRECT_THREADED -DGFORTH_DEBUGGING -o $@ -c $(srcdir)/engine.c |
|
|
|
engine-ditc.o: $(ENGINE_DEPS) |
libgforth%$(EXE): libgforth%.la libmain.lo |
$(GCC) $(CFLAGS2) $(ENGINE_FLAGS) -DDOUBLY_INDIRECT -o $@ -c $(srcdir)/engine.c |
$(LTLD) $(LDFLAGS) $(patsubst lib%,-l%,$@) libmain.lo -o $@ |
|
|
engine-prof.o: $(ENGINE_DEPS) |
libgforth$(EXE): libgforth.la libmain.lo |
$(GCC) $(CFLAGS2) $(ENGINE_FLAGS) -DVM_PROFILING -o $@ -c $(srcdir)/engine.c |
$(LTLD) $(LDFLAGS) $(patsubst lib%,-l%,$@) libmain.lo -o $@ |
|
|
main.o: $(MAIN_DEPS) |
engine.s: $(ENGINE_FAST_DEPS) |
$(GCC) $(CFLAGS) -DGFORTH_DEBUGGING -o $@ -c $(srcdir)/main.c |
$(GCC) $(CFLAGS) $(CPPFLAGS) $(ENGINE_FLAGS) -S $(srcdir)/engine.c |
|
|
main-native.o: $(MAIN_DEPS) |
engine$(OPT).o engine$(OPT).lo: $(ENGINE_DEPS) |
$(GCC) $(CFLAGS) -DNO_IP -o $@ -c $(srcdir)/main.c |
$(COMPILER) $(ENGINE_FLAGS) -DGFORTH_DEBUGGING -o $@ $(srcdir)/engine.c |
|
|
main-fast.o: $(MAIN_DEPS) |
engine2$(OPT).o engine2$(OPT).lo: $(ENGINE_DEPS) |
$(GCC) $(CFLAGS) -o $@ -c $(srcdir)/main.c |
$(COMPILER) $(ENGINE_FLAGS) -DGFORTH_DEBUGGING -DENGINE=2 -o $@ $(srcdir)/engine.c |
|
|
main-itc.o: $(MAIN_DEPS) |
engine-native$(OPT).o engine-native$(OPT).lo:$(ENGINE_FAST_DEPS) |
$(GCC) $(CFLAGS) -DINDIRECT_THREADED -DGFORTH_DEBUGGING -o $@ -c $(srcdir)/main.c |
$(COMPILER) $(ENGINE_FLAGS) -DNO_IP -o $@ $(srcdir)/engine.c |
|
|
main-ditc.o: $(MAIN_DEPS) |
engine-native2$(OPT).o engine-native2$(OPT).lo:$(ENGINE_FAST_DEPS) |
$(GCC) $(CFLAGS) -DDOUBLY_INDIRECT -o $@ -c $(srcdir)/main.c |
$(COMPILER) $(ENGINE_FLAGS) -DNO_IP -DENGINE=2 -o $@ $(srcdir)/engine.c |
|
|
main-prof.o: $(MAIN_DEPS) |
engine-native3$(OPT).o engine-native3$(OPT).lo:$(ENGINE_FAST_DEPS) |
$(GCC) $(CFLAGS) -DVM_PROFILING -o $@ -c $(srcdir)/main.c |
$(COMPILER) $(ENGINE_FLAGS) -DNO_IP -DENGINE=3 -o $@ $(srcdir)/engine.c |
|
|
main-fi.o: $(MAIN_DEPS) |
engine-fast$(OPT).o engine-fast$(OPT).lo: $(ENGINE_FAST_DEPS) |
$(GCC) $(CFLAGS) -DINCLUDE_IMAGE -o $@ -c $(srcdir)/main.c |
$(COMPILER) $(ENGINE_FLAGS) -o $@ $(srcdir)/engine.c |
|
|
peephole.o: peephole.c peephole.i $(DEPS) |
engine-fast2$(OPT).o engine-fast2$(OPT).lo: $(ENGINE_FAST_DEPS) |
$(GCC) $(CFLAGS) -o $@ -c $(srcdir)/peephole.c |
$(COMPILER) $(ENGINE_FLAGS) -DENGINE=2 -o $@ $(srcdir)/engine.c |
|
|
profile.o: profile.c profile.i $(DEPS) |
engine-itc$(OPT).o engine-itc$(OPT).lo: $(ENGINE_DEPS) |
$(GCC) $(CFLAGS) -o $@ -c $(srcdir)/profile.c |
$(COMPILER) $(ENGINE_FLAGS) -DINDIRECT_THREADED -DGFORTH_DEBUGGING -o $@ $(srcdir)/engine.c |
|
|
|
engine-ditc$(OPT).o engine-ditc$(OPT).lo: $(ENGINE_DEPS) |
|
$(COMPILER) $(ENGINE_FLAGS) -DDOUBLY_INDIRECT -o $@ $(srcdir)/engine.c |
|
|
|
engine-prof$(OPT).o engine-prof$(OPT).lo: $(ENGINE_DEPS) |
|
$(COMPILER) $(ENGINE_FLAGS) -DVM_PROFILING -o $@ $(srcdir)/engine.c |
|
|
|
main$(OPT).o main$(OPT).lo: $(MAIN_DEPS) |
|
$(COMPILER) -DGFORTH_DEBUGGING @no_dynamic@ -o $@ $(srcdir)/main.c |
|
|
|
main-native$(OPT).o main-native$(OPT).lo: $(MAIN_FAST_DEPS) |
|
$(COMPILER) -DNO_IP -o $@ $(srcdir)/main.c |
|
|
|
main-fast$(OPT).o main-fast$(OPT).lo: $(MAIN_FAST_DEPS) |
|
$(COMPILER) -o $@ $(srcdir)/main.c |
|
|
|
main-itc$(OPT).o main-itc$(OPT).lo: $(MAIN_DEPS) |
|
$(COMPILER) -DINDIRECT_THREADED -DGFORTH_DEBUGGING -o $@ $(srcdir)/main.c |
|
|
|
main-ditc$(OPT).o main-ditc$(OPT).lo: $(MAIN_DEPS) |
|
$(COMPILER) -DDOUBLY_INDIRECT -o $@ $(srcdir)/main.c |
|
|
|
main-prof$(OPT).o main-prof$(OPT).lo: $(MAIN_DEPS) |
|
$(COMPILER) -DVM_PROFILING -o $@ $(srcdir)/main.c |
|
|
|
main-fi$(OPT).o main-fi$(OPT).lo: $(MAIN_DEPS) |
|
$(COMPILER) -DINCLUDE_IMAGE -o $@ $(srcdir)/main.c |
|
|
|
peephole$(OPT).o peephole$(OPT).lo: peephole.c peephole.i $(DEPS) |
|
$(COMPILER) -o $@ $(srcdir)/peephole.c |
|
|
|
profile$(OPT).o profile$(OPT).lo: profile.c profile.i $(DEPS) |
|
$(COMPILER) -o $@ $(srcdir)/profile.c |
|
|
#The next two rules seem to be superfluous: |
#The next two rules seem to be superfluous: |
|
|
Line 198 profile.o: profile.c profile.i $(DEPS)
|
Line 281 profile.o: profile.c profile.i $(DEPS)
|
termios.o: /usr/lib/libposix.a |
termios.o: /usr/lib/libposix.a |
ar x /usr/lib/libposix.a termios.o |
ar x /usr/lib/libposix.a termios.o |
|
|
#duplicated rules to avoid too many recursive make invocations |
|
# !! No any forth stuff should be done in ../Makefile. |
|
# !! I added the dependencies on prim.i and prim_lab.i in the main Makefile, jens |
|
|
|
#I commented out the following rules because they are no longer up-to-date. - anton |
|
|
|
#prim.i: ../prim.b ../prims2x.fs |
|
# $(FORTHK) prims2x.fs -e "s\" ../prim.b\" ' output-c process-file bye" >$@- |
|
# $(CP) $@- $@ |
|
# $(RM) $@- |
|
# |
|
#prim_lab.i: ../prim.b ../prims2x.fs |
|
# $(FORTHK) prims2x.fs -e "s\" ../prim.b\" ' output-label process-file bye" >$@- |
|
# $(CP) $@- $@ |
|
# $(RM) $@- |
|
|
|
config.h: stamp-h |
config.h: stamp-h |
stamp-h: config.h.in ../config.status |
stamp-h: config.h.in ../config.status ../stamp-h.in |
cd .. && CONFIG_FILES=$@ CONFIG_HEADERS=engine/config.h ./config.status |
cd .. && CONFIG_FILES=$@ CONFIG_HEADERS=engine/config.h ./config.status |
echo timestamp > stamp-h |
echo timestamp > stamp-h |
|
|
image.c: ../fi2c.fs ../$(include_fi) |
Makefile: Makefile.in ../config.status ../configure.in |
$(FORTHK) fi2c.fs -e "s\" ../$(include_fi)\" fi2c bye" >$@ |
cd .. && $(MAKE) engine/Makefile.in |
|
|
|
image.i: ../fi2c.fs ../$(include_fi) |
|
$(BOOTFORTH) ../fi2c.fs -e "s\" ../$(include_fi)\" fi2c bye" >$@ |
|
|
../$(include_fi): FORCE |
../$(include_fi): FORCE |
cd .. && $(MAKE) $(include_fi) |
cd .. && $(MAKE) $(include_fi) |