# Makefile for dla3d, a 3-D particle system

# the neccessary c files
CFILES = main.c octree.c density.c setup.c writeout.c
HFILES = structs.h

# To make a normal version 
#CFLAGS = -lm -O1 -funroll-loops
#CFLAGS = -lm -O1 -funroll-loops -pg
CFLAGS = -lm -O2 -funroll-loops -ffast-math
#CFLAGS = -lm -O1 -funroll-loops -pg


all: dla3d

dla3d: $(CFILES) $(HFILES) Makefile
	gcc -o dla3d $(CFLAGS) $(CFILES)
	@echo "dla3d made"

lint:
	lint -abchp $(CFILES)

