X-Git-Url: http://gitweb/?a=blobdiff_plain;f=Makefile;h=9fe0dd945654225af48d6a03a6476e7cdc13ae66;hb=3c7d9496abff68c7aa3482984faac7f7583ddfba;hp=f50bd06684753d6d26c3725aa65c6c5a572709ef;hpb=904576609f86da57ecc4ef20718728ed031bc5ff;p=toolchain-softfp.git

diff --git a/Makefile b/Makefile
index f50bd06..9fe0dd9 100644
--- a/Makefile
+++ b/Makefile
@@ -243,28 +243,18 @@ gcc-final-distclean: gcc-final-clean
 
 
 # TEST THE TOOLCHAIN
-$(WORK)/build-test:
-	mkdir -p $(WORK)/build-test
-	touch $(WORK)/build-test
+$(WORK)/test: $(WORK)/test.c
+	export PATH=$$PATH:$(CROSSTOOLS)/bin && \
+	unset CFLAGS && unset CXXFLAGS && unset CC && \
+	AR=ar LDFLAGS="-Wl,-rpath,$(CROSSTOOLS)/lib" \
+	$(TARGET)-gcc -Wall -o $(WORK)/test $(WORK)/test.c
+	[ "`file -b $(WORK)/test | cut -d',' -f2 | sed 's| ||g'`" = "ARM"  ] || exit 1
+	touch $(WORK)/test
 
-$(WORK)/build-test/hello.c: $(WORK)/build-test
-	echo '#include <stdio.h>' > $(WORK)/build-test/hello.c
-	echo 'int main(int argc,char ** argv){printf("Hello World!\n");return 0;}' >> $(WORK)/build-test/hello.c
-	touch $(WORK)/build-test/hello.c
-
-$(WORK)/build-test/hello: $(WORK)/build-test/hello.c
-	cd $(WORK)/build-test && \
-		export PATH=$$PATH:$(CROSSTOOLS)/bin && \
-		unset CFLAGS && unset CXXFLAGS && unset CC && \
-		AR=ar LDFLAGS="-Wl,-rpath,$(CROSSTOOLS)/lib" \
-		$(TARGET)-gcc -Wall -o hello hello.c
-	[ "$$(file -b $(WORK)/build-test/hello | cut -d',' -f2 | sed 's| ||g' )" == "ARM"  ] || exit 1
-	touch $(WORK)/build-test/hello
-
-test: gcc-final $(WORK)/build-test/hello
+test: gcc-final $(WORK)/test
 
 test-clean:
-	rm -vrf $(WORK)/build-test
+	rm -vrf $(WORK)/test
 
 test-distclean: test-clean