.POSIX: .PHONY: clean all pretty DEFINES=-D_XOPEN_SOURCE=500 CFLAGS=-std=c99 -Wall -pedantic $(DEFINES) RM=-rm -f BINARIES=turing OFILES=turing.o table.o program.o tape.o all: $(BINARIES) turing.o: turing.c table.h program.h tape.h table.o: table.c table.h program.o: program.c program.h table.h tape.o: tape.c tape.h table.h turing: $(OFILES) $(CC) $(LDFLAGS) -o $@ $(OFILES) $(LDLIBS) pretty: astyle --style=mozilla *.c *.h clean: $(RM) *% *~ *.o *.orig core $(BINARIES)