# Makefile for the tests.
-GCC= /usr/gnu/bin/gcc
+GCC=gcc
CFLAGS= -O0 -D_MINIX -D_POSIX_SOURCE
CFLAGS-GCC= $(CFLAGS) -Wall
CFLAGS-GCCFPU= $(CFLAGS) -Wall -mhard-float
$(CC) $(CFLAGS) -o $@ $@.c
$(GCCOBJ):
- [ ! -x $(GCC) ] || $(GCC) $(CFLAGS-GCC) -o $@ ${@:S/-gcc//}.c
+ which $(GCC) >/dev/null && $(GCC) $(CFLAGS-GCC) -o $@ ${@:S/-gcc//}.c
$(GCCFPUOBJ):
- [ ! -x $(GCC) ] || $(GCC) $(CFLAGS-GCCFPU) -o $@ ${@:S/-gcc//}.c
+ which $(GCC) >/dev/null && $(GCC) $(CFLAGS-GCCFPU) -o $@ ${@:S/-gcc//}.c
$(ROOTOBJ):
$(CC) $(CFLAGS) $@.c