.POSIX:
.SUFFIXES:

CFLAGS=-Wall
CC=cc
debug=-g -DDEBUG -DLOCAL
fs=thing.c

all: thing

thing: $(fs)
	$(CC) $(CFLAGS) -o thing $(fs)

debug:
	$(CC) $(CFLAGS) $(debug) -o thing $(fs)

run: all
	./thing

dr: debug
	./thing