]> Zhao Yanbai Git Server - minix.git/commitdiff
Larger dummy -lm
authorBen Gras <ben@minix3.org>
Mon, 10 Oct 2005 15:28:55 +0000 (15:28 +0000)
committerBen Gras <ben@minix3.org>
Mon, 10 Oct 2005 15:28:55 +0000 (15:28 +0000)
lib/dummy/Makefile
lib/dummy/Makefile.ack [new file with mode: 0755]
lib/dummy/Makefile.gnu [new file with mode: 0644]
lib/dummy/dummy.c [new file with mode: 0644]

index 41b2cf9ac426dd18839a2c8e3f842248af00ed2b..d3801078bade969affdc501af6019a374c12e5f5 100755 (executable)
@@ -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 (executable)
index 0000000..41b2cf9
--- /dev/null
@@ -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 (file)
index 0000000..259774c
--- /dev/null
@@ -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 (file)
index 0000000..6473470
--- /dev/null
@@ -0,0 +1 @@
+int __dummy__;