I have a very simple c programme:
int main() { return(1); }
and a simple Makefile:
all: gcc -ansi -pedantic -o tmp tm
You're returning an error code of 1 from your application. It's Make's job to report this as an error!