# Makefile template for Configure for the SH sim library.
-# Copyright (C) 1990, 91, 92, 95, 96, 1997 Free Software Foundation, Inc.
+# Copyright (C) 1990, 91, 92, 95, 96, 1997, 2007
+# Free Software Foundation, Inc.
# Written by Cygnus Support.
#
# This program is free software; you can redistribute it and/or modify
SIM_OBJS = interp.o table.o sim-load.o
SIM_EXTRA_LIBS = -lm
+SIM_EXTRA_CLEAN = sh-clean
## COMMON_POST_CONFIG_FRAG
-interp.o: interp.c code.c table.c
+interp.o: interp.c code.c table.c ppi.c $(srcroot)/include/gdb/sim-sh.h
code.c: gencode
./gencode -x >code.c
./gencode -s >table.c
# indent table.c
+ppi.c: gencode
+ ./gencode -p >ppi.c
+
gencode: gencode.c
$(CC_FOR_BUILD) -o gencode $(srcdir)/gencode.c
+
+sh-clean:
+ rm -f gencode code.c table.c