-$(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