1 # The ACK ANSI C compiler has an nice trick to reduce the size of programs
2 # that do not use floating point. If a program uses floating point then the
3 # compiler generates an external reference to the label '_fp_hook'. This makes
4 # the loader bring in the floating point printing and conversion routines
5 # '_f_print' and 'strtod' from the library libd.a. Otherwise two dummy
6 # routines are found in libc.a. (The printf and scanf need floating point
7 # for the %f formats, whether you use them or not.)
10 .PATH: ${.CURDIR}/ack/fphook
12 CPPFLAGS.fltpr.c+=-I${.CURDIR}/stdio
14 SRCS+=fltpr.c strtod.c