No -Wall after typing 'make ex1'

I was just wondering if anybody can help me out with what was probably preventing me from being able to complete exercise 2 with the makefiles. After scratching my head and googling all I could about makefiles I later realised that when I run the code ‘make ex1’ in my terminal that I don’t get the output in the exact same form as Zed does. I get an output in the form:

cc ex1.c -o ex1

Does anybody know why this might be? If you could keep your answer super basic that would be great.

Looks like your CFLAGS weren’t recognised. Can you post your Makefile?

It might have actually worked. Try this:

ls ex1

Then try this:

rm ex1
make ex1

27

A free service run by Zed A. Shaw for learncodethehardway.org.