From a65191aa6b1d9ab450cd1499bd1e4e245681177a Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Mon, 10 Oct 2005 15:28:55 +0000 Subject: [PATCH] Larger dummy -lm --- lib/dummy/Makefile | 14 ++++++++------ lib/dummy/Makefile.ack | 11 +++++++++++ lib/dummy/Makefile.gnu | 19 +++++++++++++++++++ lib/dummy/dummy.c | 1 + 4 files changed, 39 insertions(+), 6 deletions(-) create mode 100755 lib/dummy/Makefile.ack create mode 100644 lib/dummy/Makefile.gnu create mode 100644 lib/dummy/dummy.c diff --git a/lib/dummy/Makefile b/lib/dummy/Makefile index 41b2cf9ac..d3801078b 100755 --- a/lib/dummy/Makefile +++ b/lib/dummy/Makefile @@ -2,10 +2,12 @@ # Make a dummy libm library so that -lm works. -all: ../libm.a -../libm.a: - echo "int __dummy__;" >dummy.c - $(CC) -c dummy.c - aal cr $@ dummy.o - rm dummy.? +LIBRARIES=libm + +libm_OBJECTS=dummy.o + +include ../Makefile.inc + +dummy.c: + echo "int __dummy__;" > $@ diff --git a/lib/dummy/Makefile.ack b/lib/dummy/Makefile.ack new file mode 100755 index 000000000..41b2cf9ac --- /dev/null +++ b/lib/dummy/Makefile.ack @@ -0,0 +1,11 @@ +# Makefile for lib/dummy. + +# Make a dummy libm library so that -lm works. + +all: ../libm.a + +../libm.a: + echo "int __dummy__;" >dummy.c + $(CC) -c dummy.c + aal cr $@ dummy.o + rm dummy.? diff --git a/lib/dummy/Makefile.gnu b/lib/dummy/Makefile.gnu new file mode 100644 index 000000000..259774c52 --- /dev/null +++ b/lib/dummy/Makefile.gnu @@ -0,0 +1,19 @@ + +CC=gcc +AR=gar +AS=gas +LD=gld +NM=gnm + +# Makefile for lib/dummy. + +# Make a dummy libm library so that -lm works. + +all: ../libm.a + +../libm.a: + echo "int __dummy__;" >dummy.c + $(CC) -c dummy.c + $(AR) cr $@ *.o + ranlib $@ + rm dummy.? diff --git a/lib/dummy/dummy.c b/lib/dummy/dummy.c new file mode 100644 index 000000000..647347004 --- /dev/null +++ b/lib/dummy/dummy.c @@ -0,0 +1 @@ +int __dummy__; -- 2.44.0