Rev | Line | |
---|
[9] | 1 | # Makefile for lib/ack/fphook.
|
---|
| 2 |
|
---|
| 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.)
|
---|
| 10 |
|
---|
| 11 | CFLAGS="-O -D_MINIX -D_POSIX_SOURCE -I.."
|
---|
| 12 |
|
---|
| 13 | LIBRARIES="libd libc"
|
---|
| 14 |
|
---|
| 15 | libd_FILES=fphook.c
|
---|
| 16 |
|
---|
| 17 | libc_FILES="fltpr.c strtod.c"
|
---|
| 18 |
|
---|
| 19 | TYPE=ack
|
---|
Note:
See
TracBrowser
for help on using the repository browser.