# pick one (and comment out the rest)

# 0. Nothing
#CFLAGS =
#LDFLAGS =

# 1. debugger only
#CFLAGS = -g
#LDFLAGS = -g

# 2. old standard (okay, but not the best gcc can do)
CFLAGS = -g -Wall -Wstrict-prototypes
LDFLAGS = -g

# 3. new standard (better, but still not best gcc can do)
#include ../share/cflags.mk
#CFLAGS_BASE = $(CFLAGS_NORMAL)
#LDFLAGS = -g

# 4. truly paranoid (the best job gcc can do)
#include ../share/cflags.mk
#CFLAGS_BASE = $(CFLAGS_PARANOID)
#LDFLAGS = -g

# Add any necessary libraries or library flags.
LIBS = 

# --------------------------------------------------------

SRC = $(wildcard *.c)

CC = gcc

PROG = $(SRC:.c=)

.PHONY: default
default: $(PROG)

.PHONY: clean
clean:
	rm -rf core core.* *.o a.out *~ 

.PHONY: immaculate
immaculate: clean
	rm -rf $(PROG)

$(PROG): $(SRC)
	$(CC) $(CFLAGS) $^ -o $@ $(LIBS)
