aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/common
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-04-15 08:54:01 +0000
committerAndrew Cagney <cagney@redhat.com>1997-04-15 08:54:01 +0000
commit7ec396d27078c164b10c6cf2552f630d518b7498 (patch)
tree3c8ef4d0d4aeec7cd9a52edcb43d3dfde5885ffb /sim/testsuite/common
parent8e7c36868b463734ee36a576acb833878cd90589 (diff)
downloadgdb-7ec396d27078c164b10c6cf2552f630d518b7498.zip
gdb-7ec396d27078c164b10c6cf2552f630d518b7498.tar.gz
gdb-7ec396d27078c164b10c6cf2552f630d518b7498.tar.bz2
Get the BIT/MASK/ROT/... macros to work with any 32/64/MSB0/MSBn target.
Diffstat (limited to 'sim/testsuite/common')
-rw-r--r--sim/testsuite/common/Makefile.in33
1 files changed, 33 insertions, 0 deletions
diff --git a/sim/testsuite/common/Makefile.in b/sim/testsuite/common/Makefile.in
new file mode 100644
index 0000000..12e0977
--- /dev/null
+++ b/sim/testsuite/common/Makefile.in
@@ -0,0 +1,33 @@
+CFLAGS = -Wall -Werror -I../../common -I../../../include -g
+
+check: bits32m0.ok bits32m31.ok bits64m0.ok bits64m63.ok
+
+clean:
+ rm -f *.o
+ rm -f *.ok
+ rm -f bits32m0 bits32m31 bits64m0 bits64m63 bits-gen
+ rm -f tmp-*
+
+.SUFIXES: .ok
+%.ok: %
+ ./$<
+ touch $<.ok
+
+all: bits32m0 bits32m31 bits64m0 bits64m63
+
+bits32m0.c: bits-gen bits-tst.c
+ ./bits-gen 32 0 > tmp-bits32m0.c
+ cat bits-tst.c >> tmp-bits32m0.c
+ mv tmp-bits32m0.c bits32m0.c
+bits32m31.c: bits-gen bits-tst.c
+ ./bits-gen 32 31 > tmp-bits32m31.c
+ cat bits-tst.c >> tmp-bits32m31.c
+ mv tmp-bits32m31.c bits32m31.c
+bits64m0.c: bits-gen bits-tst.c
+ ./bits-gen 64 0 > tmp-bits64m0.c
+ cat bits-tst.c >> tmp-bits64m0.c
+ mv tmp-bits64m0.c bits64m0.c
+bits64m63.c: bits-gen bits-tst.c
+ ./bits-gen 64 63 > tmp-bits64m63.c
+ cat bits-tst.c >> tmp-bits64m63.c
+ mv tmp-bits64m63.c bits64m63.c