version 1.451, 2010/08/08 09:49:34
|
version 1.455, 2010/12/31 18:09:01
|
Line 1
|
Line 1
|
#Makefile for Gforth |
#Makefile for Gforth |
|
|
#Copyright (C) 1995,1996,1997,1998,2000,2003,2004,2005,2006,2007,2008,2009 Free Software Foundation, Inc. |
#Copyright (C) 1995,1996,1997,1998,2000,2003,2004,2005,2006,2007,2008,2009,2010 Free Software Foundation, Inc. |
|
|
#This file is part of Gforth. |
#This file is part of Gforth. |
|
|
Line 129 datarootdir = @datarootdir@
|
Line 129 datarootdir = @datarootdir@
|
datadir = @datadir@ |
datadir = @datadir@ |
#read-only architecture-dependent non-ascii files |
#read-only architecture-dependent non-ascii files |
libdir = @libdir@ |
libdir = @libdir@ |
libccdir = $(libdir)/gforth/$(VERSION)/libcc-named/ |
libccdir = $(subst $(DESTDIR),,$(libdir)/gforth/$(VERSION)/libcc-named/) |
includedir = @includedir@ |
includedir = @includedir@ |
infodir = @infodir@ |
infodir = @infodir@ |
htmldir = @htmldir@ |
htmldir = @htmldir@ |
Line 189 KERN_SRC = \
|
Line 189 KERN_SRC = \
|
kernel/doers.fs \ |
kernel/doers.fs \ |
kernel/getdoers.fs \ |
kernel/getdoers.fs \ |
kernel/pass.fs \ |
kernel/pass.fs \ |
kernel/xchars.fs |
kernel/xchars.fs \ |
|
string.fs |
|
|
EC_SRC = \ |
EC_SRC = \ |
asm/README \ |
asm/README \ |
Line 207 EC_SRC = \
|
Line 208 EC_SRC = \
|
ec/nesting.fs \ |
ec/nesting.fs \ |
build-ec.in |
build-ec.in |
|
|
GFORTH_FI_SRC = \ |
GFORTH_FI_SRC1=\ |
assert.fs \ |
assert.fs \ |
backtrac.fs \ |
backtrac.fs \ |
blocked.fb \ |
blocked.fb \ |
Line 218 GFORTH_FI_SRC = \
|
Line 219 GFORTH_FI_SRC = \
|
debugs.fs \ |
debugs.fs \ |
dis-gdb.fs \ |
dis-gdb.fs \ |
ekey.fs \ |
ekey.fs \ |
envos.fs \ |
|
|
GFORTH_FI_SRC2=\ |
savesys.fs \ |
savesys.fs \ |
environ.fs \ |
environ.fs \ |
errors.fs \ |
errors.fs \ |
Line 261 GFORTH_FI_SRC = \
|
Line 263 GFORTH_FI_SRC = \
|
arch/mips/testasm.fs arch/mips/testdisasm.fs \ |
arch/mips/testasm.fs arch/mips/testdisasm.fs \ |
arch/power/asm.fs arch/power/disasm.fs arch/power/inst.fs |
arch/power/asm.fs arch/power/disasm.fs arch/power/inst.fs |
|
|
|
# execlude envos.fs into list of distributed sources |
|
GFORTH_FI_DIST_SRC = \ |
|
$(GFORTH_FI_SRC1) \ |
|
$(GFORTH_FI_SRC2) |
|
|
|
GFORTH_FI_SRC = \ |
|
$(GFORTH_FI_SRC1) \ |
|
envos.fs \ |
|
$(GFORTH_FI_SRC2) |
|
|
LIBCC_SRC = cstr.fs unix/socket.fs |
LIBCC_SRC = cstr.fs unix/socket.fs |
|
|
LIBCC_DIST_SRC = libffi.fs fflib.fs $(LIBCC_SRC) |
LIBCC_DIST_SRC = libffi.fs fflib.fs $(LIBCC_SRC) |
|
|
LIBCC_BUILD_SRC = @LIBCC_BUILD_SRC@ $(LIBCC_SRC) |
LIBCC_BUILD_SRC = @LIBCC_BUILD_SRC@ $(LIBCC_SRC) |
|
|
FORTH_SRC = $(KERN_SRC) $(GFORTH_FI_SRC) $(EC_SRC) $(LIBCC_DIST_SRC) \ |
|
|
FORTH_SRC = $(KERN_SRC) $(GFORTH_FI_DIST_SRC) $(EC_SRC) $(LIBCC_DIST_SRC) \ |
ans-report.fs ansi.fs answords.fs \ |
ans-report.fs ansi.fs answords.fs \ |
colorize.fs comp-i.fs complex.fs \ |
colorize.fs comp-i.fs complex.fs \ |
depth-changes.fs dosekey.fs doskey.fs ds2texi.fs \ |
depth-changes.fs dosekey.fs doskey.fs ds2texi.fs \ |
Line 619 install: gforth$(EC)$(EXE) $(FORTH_SRC)
|
Line 632 install: gforth$(EC)$(EXE) $(FORTH_SRC)
|
(cd $(DESTDIR)$(bindir) && $(LN_S) vmgen-$(VERSION) vmgen) |
(cd $(DESTDIR)$(bindir) && $(LN_S) vmgen-$(VERSION) vmgen) |
-$(INSTALL_DATA) $(srcdir)/doc/gforth.1 $(DESTDIR)$(man1dir) |
-$(INSTALL_DATA) $(srcdir)/doc/gforth.1 $(DESTDIR)$(man1dir) |
-for i in $(srcdir)/doc/gforth.info* $(srcdir)/doc/vmgen.info*; do $(INSTALL_DATA) $$i $(DESTDIR)$(infodir); done |
-for i in $(srcdir)/doc/gforth.info* $(srcdir)/doc/vmgen.info*; do $(INSTALL_DATA) $$i $(DESTDIR)$(infodir); done |
for i in $(FORTH_SRC) $(COMPAT) prim; do \ |
for i in $(FORTH_SRC) $(COMPAT) envos.fs prim; do \ |
$(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(datadir)/gforth/$(VERSION)/$$i; \ |
$(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(datadir)/gforth/$(VERSION)/$$i; \ |
done |
done |
$(INSTALL_DATA) $(kernel_fi) $(DESTDIR)$(datadir)/gforth/$(VERSION) |
$(INSTALL_DATA) $(kernel_fi) $(DESTDIR)$(datadir)/gforth/$(VERSION) |
Line 663 uninstall: FORCE
|
Line 676 uninstall: FORCE
|
|
|
build-libcc-named: $(LIBCC_BUILD_SRC) $(FORTH_GEN) $(GEN) FORCE |
build-libcc-named: $(LIBCC_BUILD_SRC) $(FORTH_GEN) $(GEN) FORCE |
$(RMTREE) lib/gforth/$(VERSION)/libcc-named/ |
$(RMTREE) lib/gforth/$(VERSION)/libcc-named/ |
for i in $(LIBCC_BUILD_SRC); do ./gforth -e "s\" `pwd`/lib/gforth/$(VERSION)/libcc-named/\" libcc-named-dir-v 2! libcc-path clear-path libcc-named-dir libcc-path also-path :noname 2drop s\" $(libccdir)\" ; is replace-rpath" $(srcdir)/$$i -e bye; done |
for i in $(LIBCC_BUILD_SRC); do ./gforth -e "s\" `pwd`/lib/gforth/$(VERSION)/libcc-named/\" libcc-named-dir-v 2! libcc-path clear-path libcc-named-dir libcc-path also-path :noname 2drop s\" $(DESTDIR)$(libccdir)\" ; is replace-rpath" $(srcdir)/$$i -e bye; done |
|
|
check: gforths gforth.fi |
check: gforths gforth.fi |
$(MAKE) checkone check-nofast ENGINE="./gforth --no-dynamic" >/dev/null 2>&1 |
$(MAKE) checkone check-nofast ENGINE="./gforth --no-dynamic" >/dev/null 2>&1 |