--- gforth/mkos2mf.sed 1997/03/25 23:27:14 1.6 +++ gforth/mkos2mf.sed 2003/03/09 12:54:33 1.15 @@ -1,9 +1,27 @@ +#Copyright (C) 1995,1996,1997,1998,2000 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 2 +#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, write to the Free Software +#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. + 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 @@ -49,19 +67,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%GFORTHD="./gforth-ditc -p ." $(srcdir)/%%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