
# You can change these.

# C compilers: gcc: GNU; icc: Intel; pgcc: Portland Group Inc (PGI)
CC     = gcc
# -O means optimize for performance;
# -g -pg means save information about percentage
#   of runtime spent in each routine.
CFLAGS = -O2 -g -pg
# -UDEBUG: don't show debugging output
# -DDEBUG: do    show debugging output
DEBUG  = -UDEBUG

# You shouldn't change the rest of this file unless you know what you're doing.

NBODY_PARTICLE_STAR_H     = nbody_particle_star.h
NBODY_HS                  = ${NBODY_PARTICLE_STAR_H}
NBODY_PARTICLE_STAR_C     = nbody_particle_star.c
NBODY_C                   = nbody.c
NBODY_CS                  = ${NBODY_PARTICLE_STAR_C} ${NBODY_C}
NBODY_EXE                 = nbody

LIBS                      = -lm
EXECUTABLES               = ${NBODY_EXE}

all:	${EXECUTABLES}

clean:	
	rm -f *.[aodD] *.[mM][oO][dD] ${EXECUTABLES}

${NBODY_EXE}:	${NBODY_HS} ${NBODY_CS}
	${CC} ${CFLAGS} ${DEBUG} -o ${NBODY_EXE} ${NBODY_C} ${LIBS}

