1 CFLAGS
+=-g
-pipe
-std
=c99
-D_POSIX_C_SOURCE
=200809L -Wall
-Wno-unused-function
-Wno-missing-braces
2 CFLAGS
+=-Wno-unknown-pragmas
-fno-builtin
-ffloat-store
-frounding-math
-D_GNU_SOURCE
5 SRC
=$(sort $(wildcard *.c
))
7 BINOBJ
=$(filter-out util.o
,$(OBJ
))
10 include ..
/..
/config.mak
14 @N
=0; for i in
$(BIN
);do .
/$$i || N
=$$((N
+1)); done
; [ "$$N" = 0 ] && echo PASS || echo FAILS
: $$N
20 %.o
: %.c sanity
/%.h ucb
/%.h crlibm
/%.h util.h
21 $(CC
) $(CFLAGS
) -c
-o
$@
$<
24 $(CC
) $(LDFLAGS
) -o
$@
$^