panic() cleanup.
[minix.git] / lib / ack / libd / Makefile
blob25e3bf67617155fbefdfb3206876bdf251a65446
1 # Makefile for libd
3 # The ACK ANSI C compiler has an nice trick to reduce the size of programs
4 # that do not use floating point. If a program uses floating point then the
5 # compiler generates an external reference to the label '_fp_hook'. This makes
6 # the loader bring in the floating point printing and conversion routines
7 # '_f_print' and 'strtod' from the library libd.a. Otherwise two dummy
8 # routines are found in libc.a. (The printf and scanf need floating point
9 # for the %f formats, whether you use them or not.)
11 CPPFLAGS+=-O -D_MINIX -D_POSIX_SOURCE -I${.CURDIR}/../../libc/stdio
13 LIB= d
15 SRCS= fphook.c
17 .include <minix.lib.mk>