SHELL = /bin/sh
.SUFFIXES: .c .o
CPPFLAGS=
CFLAGS = -g -pedantic -Wall -ggdb3 -O2
LDFLAGS= -lm
ALL_CFLAGS = -I. $(CFLAGS)

# Common prefix for installation directories.
# NOTE: This directory must exist when you start the install.
prefix = /usr/local
datarootdir = $(prefix)/share
datadir = $(datarootdir)
exec_prefix = $(prefix)
# Where to put the executable for the command `gcc'.
bindir = $(exec_prefix)/bin
# Where to put the directories used by the compiler.
libexecdir = $(exec_prefix)/libexec
# Where to put the Info files.
infodir = $(datarootdir)/info


.c.o:
	$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<

all: main


clean:
	rm -rf *.o main
