]> Zhao Yanbai Git Server - minix.git/commitdiff
Restore -lm
authorBen Gras <ben@minix3.org>
Tue, 18 Oct 2005 10:42:05 +0000 (10:42 +0000)
committerBen Gras <ben@minix3.org>
Tue, 18 Oct 2005 10:42:05 +0000 (10:42 +0000)
lib/dummy/Makefile

index e5f1e9cab097ea3cb53d509b92fcf3c1a5074fae..37511b85f73911d6d56c12a52c2662a612697a6a 100755 (executable)
 #      echo "int __dummy__;" > $@
 #
 
-# Makefile for lib/dummy.
+all:   ../libm.a
 
-# Make a dummy libm library so that -lm works.
-
-
-LIBRARIES=libm
-
-libm_OBJECTS=dummy.o
-
-include ../Makefile.inc
-
-dummy.c:
-       echo "int __dummy__;" > $@
+../libm.a:
+       echo "int __dummy__;" >dummy.c
+       $(CC) -c dummy.c
+       aal cr $@ dummy.o
+       rm dummy.?