#
# "basic" makefile for C programs:
#
# "make hello" to compile hello.c to hello
#
CC = gcc
CFLAGS = -Wall -pedantic -O -std=c99 

# uncomment the lines below to get more warnings
# "man gcc" to read all about them
#CFLAGS = -Wall -pedantic -O -std=c99 \
#	-ansi -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast \
#	-Wcast-qual -Wcast-align -Wwrite-strings -Wconversion \
#	-Wstrict-prototypes -Wmissing-prototypes  \
#	-Wunreachable-code -Wundef \
#	-Wnested-externs -Wold-style-definition 

# one optional linker flag, specifying "include math library"
LDLIBS = -lm