From: Ben Gras Date: Tue, 3 Aug 2010 11:20:31 +0000 (+0000) Subject: test Makefile: use any gcc in path X-Git-Tag: v3.1.8~112 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doc/syslog.3.html?a=commitdiff_plain;h=e1dc59bd16453b29bf910d44cbf99013bb43cbf2;p=minix.git test Makefile: use any gcc in path --- diff --git a/test/Makefile b/test/Makefile index 83c9b2b40..c76c30dfe 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,6 +1,6 @@ # 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 @@ -29,10 +29,10 @@ $(BIGOBJ): $(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