CC=cc -O4

all: cog weights

cog: cog.o calc.o print.o allocation.o
	$(CC) -o cog cog.o calc.o print.o allocation.o

cog.o: cog.c cog.h Makefile
	$(CC) -c cog.c

calc.o: calc.c cog.h Makefile
	$(CC) -c calc.c

print.o: print.c cog.h Makefile
	$(CC) -c print.c

allocation.o: allocation.c allocation.h Makefile
	$(CC) -c allocation.c



weights: weights.c cog.h Makefile
	$(CC) -o weights weights.c
