# Very simple example of a Makefile
# (see the page "How to organize, compile, and debug a C program")


STD = -std=c99
# -std=c99: C99 standard of the C language
# -ansi:    older C90 standard 

OPTIONS = -Wall -Wpedantic -Wno-unused-result -O0 -g
# -O0: no optimization of the compiled code
# -g:  prepares the ground for the gdb debugging tool

LIBRARIES = -lm
# needed in case you use math.h


# to produce the executable file xxx, just say "make xxx"

xxx : ppp.c qqq.c rrr.h
	gcc $(STD) $(OPTIONS) ppp.c qqq.c -o xxx $(LIBRARIES)

# what seems to be a sequence of spaces before the "gcc ..."
# is actually a single tab character!
