# 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__;" > $@
--- /dev/null
+# 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.?
--- /dev/null
+
+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.?
--- /dev/null
+int __dummy__;