Index: sim/ppc/Makefile.in |
diff --git a/sim/ppc/Makefile.in b/sim/ppc/Makefile.in |
index 71c65cf8265d67065a23346d88a4829315ba2527..b811f6fccf875a11866da4beffdeb4df6ca9dc15 100644 |
--- a/sim/ppc/Makefile.in |
+++ b/sim/ppc/Makefile.in |
@@ -5,7 +5,7 @@ |
# |
# This program 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 |
+# 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, |
@@ -14,15 +14,16 @@ |
# 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-1307, USA. |
+# along with this program; if not, see <http://www.gnu.org/licenses/>. |
# |
default: all |
VPATH = @srcdir@ |
srcdir = @srcdir@ |
+srccom = $(srcdir)/../common |
srcroot = $(srcdir)/../.. |
+srcsim = $(srcdir)/.. |
prefix = @prefix@ |
exec_prefix = @exec_prefix@ |
@@ -563,11 +564,8 @@ $(TARGETLIB): tmp-igen tmp-dgen tmp-hw tmp-pk tmp-defines $(LIB_OBJ) $(GDB_OBJ) |
$(AR) $(AR_FLAGS) $(TARGETLIB) $(LIB_OBJ) $(GDB_OBJ) |
$(RANLIB) $(TARGETLIB) |
-version.c: Makefile ../../gdb/version.in |
- rm -f version.c-tmp version.c |
- echo '#include "version.h"' >> version.c-tmp |
- echo 'const char version[] = "'"`sed q ${srcdir}/../../gdb/version.in`"'";' >> version.c-tmp |
- mv version.c-tmp version.c |
+version.c: Makefile $(srccom)/create-version.sh ../../bfd/version.h ../../gdb/version.in |
+ $(SHELL) $(srccom)/create-version.sh $(srcsim) $(host_alias) $(target_alias) version.c |
version.o: version.c $(version_h) |
psim.o: psim.c $(CPU_H) $(IDECODE_H) $(OPTIONS_H) $(TREE_H) $(BFD_H) |