22 lines
300 B
Makefile
Executable file
22 lines
300 B
Makefile
Executable file
## Makefile for lib/dummy.
|
|
#
|
|
## Make a dummy libm library so that -lm works.
|
|
#
|
|
#
|
|
#LIBRARIES=libm
|
|
#
|
|
#libm_OBJECTS=dummy.o
|
|
#
|
|
#include ../Makefile.inc
|
|
#
|
|
#dummy.c:
|
|
# echo "int __dummy__;" > $@
|
|
#
|
|
|
|
all: ../libm.a
|
|
|
|
../libm.a:
|
|
echo "int __dummy__;" >dummy.c
|
|
$(CC) -c dummy.c
|
|
aal cr $@ dummy.o
|
|
rm dummy.?
|