--- gforth/mkos2mf.sed 1997/02/12 00:25:35 1.5 +++ gforth/mkos2mf.sed 2007/12/31 19:02:24 1.18 @@ -1,9 +1,26 @@ +#Copyright (C) 1995,1996,1997,1998,2000,2003,2007 Free Software Foundation, Inc. + +#This file is part of Gforth. + +#Gforth is free software; you can redistribute it and/or +#modify it under the terms of the GNU General Public License +#as published by the Free Software Foundation, either version 3 +#of the License, or (at your option) any later version. + +#This program is distributed in the hope that it will be useful, +#but WITHOUT ANY WARRANTY; without even the implied warranty of +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.#See the +#GNU General Public License for more details. + +#You should have received a copy of the GNU General Public License +#along with this program. If not, see http://www.gnu.org/licenses/. + s% /bin/sh% bash%g s% cp% copy%g s% rm% del%g s% ./gforth % gforth %g s%@srcdir@%.%g -s%\"$(FORTHPATH)\"%\".\"%g +s%\"$(FORTHPATH)\"%\"~+\"%g s%@CFLAGS@%%g s%@CPPFLAGS@%%g s%@CXXFLAGS@%%g @@ -35,9 +52,12 @@ s%@host_vendor@%%g s%@host_os@%os2%g s%@ENGINE_FLAGS@%%g s%gforth:%gforth.exe:%g +s%gforth-ditc:%gforth-ditc.exe:%g s%-$(CP) gforth gforth~%-$(CP) gforth.exe gforth.exe~%g -s%@MAKE_EXE@%\ +s%@GFORTH_EXE@%\ gforth: gforth.exe%g +s%@GFORTHDITC_EXE@%\ +gforth-ditc: gforth-ditc.exe%g s%@PATHSEP@%;%g s%@LINK_KERNL@%%g s%-DDEFAULTPATH=\\".*"%-DDEFAULTPATH=\\".\\"%g @@ -46,17 +66,31 @@ s%@LN_S@%ln -s%g s%@INSTALL@%install-sh -c%g s%@INSTALL_PROGRAM@%${INSTALL}%g s%@INSTALL_DATA@%${INSTALL} -m 644%g -s%@LIBOBJS@% pow10.o strsignal.o ecvt.o atanh.o%g +s%@LIBOBJS@% pow10.o strsignal.o ecvt.o atanh.o getopt.o getopt1.o%g s%@getopt_long@%getopt.o getopt1.o%g s%@kernel_fi@%kernl32l.fi%g s%@PATHSEP@%;%g s%-fforce-mem -fforce-addr %%g -s%echo "static char gforth_version.*;" >$@%$(CP) version.h1 version.h%g -s%echo ": version-string.*;" >$@%$(CP) version.fs1 version.fs%g +# s%echo "static char gforth_version.*;" >$@%$(CP) version.h1 engine\version.h%g +# s%echo ": version-string.*;" >$@%$(CP) version.fs1 kernel\version.fs%g s%$(srcdir)/config.h.in: stamp-h.in%#$(srcdir)/config.h.in: stamp-h.in%g -s%config.h: stamp-h%#config.h: stamp-h%g +s%engine/config.h: stamp-h%#engine/config.h: stamp-h%g s%$(FORTHPATH)$(PATHSEP)%%g s%@FORTHSIZES@%%g -s%$(PATHSEP)$(srcdir)%%g s%test x'$(VERSION)' = x`cat $@` || %%g -s%--clear-dictionary%-c%g +s%GFORTHD="./gforth-ditc -p .* $(srcdir)/%%g +s%'s"%"s\\"%g +s%"'%\\""%g +s%@OSCLASS@%dos%g +s%@machine@%386%g +s%@PACKAGE_VERSION@%0.5.9%g +s%@EXEEXT@%.exe%g +s%engine/$@%engine\\$@%g +s%gforthmi gforth\$(EXE)%gforthmi.cmd gforth\$(EXE)%g +s%if test -r $@ && test x'$(VERSION)' = x`cat $@` ; then true ; else echo $(VERSION) > $@ ; fi%echo $(VERSION) > $@%g +s%echo ": version-string s\\" $(VERSION)\\" ;" > kernel/version.fs%%g +s%GFORTHD="./gforth-ditc -p .$(PATHSEP)$(srcdir)" GFORTH="./gforth-ditc -p .$(PATHSEP)$(srcdir) -i $(kernel_fi) startup.fs" ./%%g +s%\*\.h %%g +s%\*\.\[h\]%machine.h%g +s%config.h.in ../config.status%%g +s%cd .. && CONFIG_FILES=$@ CONFIG_HEADERS=engine/config.h ./config.status%%g \ No newline at end of file