# compiles the program in File: "helloworld.c", by typing "make" on # the command line CFLAGS = -g CC = gcc # if make followed by no target then will compile 'Hello' all: helloworld # before the "rm" there is only one white space character: a "TAB". # If you have any other white space this Makefile while not work # before the "${CC}" there is only one white space character: a "TAB". # If you have any other white space this makefile while not work helloworld: helloworld.o $(CC) $(CFLAGS) -o $@.out helloworld.o -ansi guessumber: $(CC) $(CFLAGS) $@.c -o $@ -ansi # generic %.o : %.c $(CC) $(CFLAGS) -c $< -o $@ clean: rm -f core *.o a.out helloworld guessnumber webclean: rm -f DIRECTORY.html