version 1.407, 2008/07/15 09:30:12
|
version 1.411, 2008/07/15 22:04:14
|
Line 1
|
Line 1
|
#Makefile for Gforth |
#Makefile for Gforth |
|
|
#Copyright (C) 1995,1996,1997,1998,2000,2003,2004,2005,2006,2007 Free Software Foundation, Inc. |
#Copyright (C) 1995,1996,1997,1998,2000,2003,2004,2005,2006,2007,2008 Free Software Foundation, Inc. |
|
|
#This file is part of Gforth. |
#This file is part of Gforth. |
|
|
Line 348 ARCHS = \
|
Line 348 ARCHS = \
|
arch/sharc/types.h \ |
arch/sharc/types.h \ |
arch/sharc/g21k-3.3.4-bp1.diff \ |
arch/sharc/g21k-3.3.4-bp1.diff \ |
arch/r8c/asm.fs \ |
arch/r8c/asm.fs \ |
arch/r8c/asm-test.fs \ |
arch/r8c/mach.fs \ |
arch/r8c/prim.fs \ |
arch/r8c/prim.fs |
arch/r8c/errors.fs \ |
|
arch/r8c/tt.fs \ |
|
arch/r8c/tasker.fs \ |
|
arch/r8c/lauflicht.fs \ |
|
arch/r8c/terminal.fs \ |
|
arch/r8c/mach.fs |
|
|
|
#not included in distribution until distribution terms are included: |
#not included in distribution until distribution terms are included: |
ARCHS_NO_DIST = \ |
ARCHS_NO_DIST = \ |
Line 372 ARCHS_NO_DIST = \
|
Line 366 ARCHS_NO_DIST = \
|
arch/c165/mach.fs \ |
arch/c165/mach.fs \ |
arch/c165/prim.fs \ |
arch/c165/prim.fs \ |
arch/h8/asm.fs \ |
arch/h8/asm.fs \ |
|
arch/r8c/asm-test.fs \ |
|
arch/r8c/errors.fs \ |
|
arch/r8c/lauflicht.fs \ |
|
arch/r8c/tasker.fs \ |
|
arch/r8c/terminal.fs \ |
|
arch/r8c/tt.fs \ |
arch/sharc/unistd.h |
arch/sharc/unistd.h |
|
|
VMGEN_EX = vmgen-ex/CVS vmgen-ex/Makefile vmgen-ex/README vmgen-ex/disasm.c \ |
VMGEN_EX = vmgen-ex/CVS vmgen-ex/Makefile vmgen-ex/README vmgen-ex/disasm.c \ |
Line 424 ENGINES = gforth$(EC)$(EXE) gforth-ditc$
|
Line 424 ENGINES = gforth$(EC)$(EXE) gforth-ditc$
|
|
|
ENGINES_FAST = gforth-fast$(OPT)$(EC)$(EXE) #gforth-native$(OPT)$(EC)$(EXE) |
ENGINES_FAST = gforth-fast$(OPT)$(EC)$(EXE) #gforth-native$(OPT)$(EC)$(EXE) |
|
|
GEN = $(ENGINES) $(ENGINES_FAST) kernel/version.fs gforth.elc |
GEN = $(ENGINES) $(ENGINES_FAST) gforth.elc |
|
|
# things that need a working forth system to be generated |
# things that need a working forth system to be generated |
FORTH_GEN_ENGINE=engine/prim.i engine/prim_lab.i engine/prim_names.i \ |
FORTH_GEN_ENGINE=engine/prim.i engine/prim_lab.i engine/prim_names.i \ |
Line 620 install: gforth$(EC)$(EXE) $(FORTH_SRC)
|
Line 620 install: gforth$(EC)$(EXE) $(FORTH_SRC)
|
$(INSTALL_DATA) install.TAGS $(DESTDIR)$(datadir)/gforth/$(VERSION)/TAGS |
$(INSTALL_DATA) install.TAGS $(DESTDIR)$(datadir)/gforth/$(VERSION)/TAGS |
$(RM) gforth.fi install.TAGS |
$(RM) gforth.fi install.TAGS |
$(INSTALL_DATA) include/gforth/$(VERSION)/* $(DESTDIR)$(includedir)/gforth/$(VERSION) |
$(INSTALL_DATA) include/gforth/$(VERSION)/* $(DESTDIR)$(includedir)/gforth/$(VERSION) |
for i in $(LIBCC_SRC); do $(DESTDIR)$(bindir)/gforth -e "s\" $(DESTDIR)$(libccdir)\" libcc-named-dir-v 2! libcc-path clear-path libcc-named-dir libcc-path also-path" $$i -e bye; done |
for i in $(LIBCC_SRC); do libtool --silent --mode=install $(INSTALL) lib/gforth/$(VERSION)/libcc-named/`basename $$i .fs`.la $(DESTDIR)$(libccdir)`basename $$i .fs`.la; done |
$(POST_INSTALL) |
$(POST_INSTALL) |
$(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/gforth.info |
$(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/gforth.info |
#$(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/vmgen.info |
#$(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/vmgen.info |
Line 647 uninstall: FORCE
|
Line 647 uninstall: FORCE
|
check-libcc-named: $(LIBCC_SRC) |
check-libcc-named: $(LIBCC_SRC) |
$(RMTREE) lib/gforth/$(VERSION)/libcc-named/ |
$(RMTREE) lib/gforth/$(VERSION)/libcc-named/ |
$(srcdir)/mkinstalldirs lib/gforth/$(VERSION)/libcc-named/ |
$(srcdir)/mkinstalldirs lib/gforth/$(VERSION)/libcc-named/ |
for i in $(LIBCC_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" $$i -e bye; done |
for i in $(LIBCC_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" $$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 |
Line 806 MAKELINE-noll-reg = OPT=-noll-reg OPTDEF
|
Line 806 MAKELINE-noll-reg = OPT=-noll-reg OPTDEF
|
MAKELINE-ll = OPT=-ll OPTDEFINES=-DFORCE_LL OPTOBJECTS= |
MAKELINE-ll = OPT=-ll OPTDEFINES=-DFORCE_LL OPTOBJECTS= |
MAKELINE-noll = OPT=-noll OPTDEFINES= OPTOBJECTS=dblsub.o |
MAKELINE-noll = OPT=-noll OPTDEFINES= OPTOBJECTS=dblsub.o |
|
|
gforth$(OPT)$(EC)$(EXE): $(ENGINE_SOURCES) $(FORTH_GEN_ENGINE) engine/config.h $(kernel_fi) |
gforth$(OPT)$(EC)$(EXE): $(ENGINE_SOURCES) $(FORTH_GEN_ENGINE) engine/config.h |
if test -z "$(OPT)"; then \ |
if test -z "$(OPT)"; then \ |
for i in $(OPTS); do $(MAKE) optgforth OPT=$$i && $(CP) gforth$${i}$(EC)$(EXE) $@ && break; done; \ |
for i in $(OPTS); do $(MAKE) optgforth OPT=$$i && $(CP) gforth$${i}$(EC)$(EXE) $@ && break; done; \ |
else \ |
else \ |