From: Ben Gras Date: Mon, 10 Oct 2005 15:28:55 +0000 (+0000) Subject: Larger dummy -lm X-Git-Tag: v3.1.2a~646 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=a65191aa6b1d9ab450cd1499bd1e4e245681177a;p=minix.git Larger dummy -lm --- 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__;