2010-02-16 15:41:33 +01:00
|
|
|
# Makefile for libd
|
2005-10-10 17:27:47 +02:00
|
|
|
|
|
|
|
# The ACK ANSI C compiler has an nice trick to reduce the size of programs
|
|
|
|
# that do not use floating point. If a program uses floating point then the
|
|
|
|
# compiler generates an external reference to the label '_fp_hook'. This makes
|
|
|
|
# the loader bring in the floating point printing and conversion routines
|
|
|
|
# '_f_print' and 'strtod' from the library libd.a. Otherwise two dummy
|
|
|
|
# routines are found in libc.a. (The printf and scanf need floating point
|
|
|
|
# for the %f formats, whether you use them or not.)
|
|
|
|
|
2010-06-11 18:05:36 +02:00
|
|
|
CPPFLAGS+=-I${.CURDIR}/../../libc/stdio
|
2005-10-10 17:27:47 +02:00
|
|
|
|
2010-02-16 15:41:33 +01:00
|
|
|
LIB= d
|
2005-10-10 17:27:47 +02:00
|
|
|
|
2010-02-16 15:41:33 +01:00
|
|
|
SRCS= fphook.c
|
2005-10-10 17:27:47 +02:00
|
|
|
|
2010-02-16 15:41:33 +01:00
|
|
|
.include <minix.lib.mk>
|