############################################################
#                                                          #
#    Swumsuit Engine Makefile                              #
#                                                          #
############################################################

# binary file
MAINBIN = SWUM_ENGINE_LINUX

# object files
MAINOBJS = init.o main.o opendata.o output.o subs.o bodyforce.o anybody.o

# compiler
FC = /opt/intel_fc_80/bin/ifort
#FFLAGS = -Wall -O2

# for debug purpose
#FFLAGS = -g

# linker
#LDFLAGS = -lslatec 

# compile
${MAINBIN} : ${MAINOBJS}
	${FC} -static ${MAINOBJS} ../../libslateci.a -o ${MAINBIN}

# clean
debugclean :
	/bin/rm -f core *.combine *.cse *.cse2 *.dbr *.flow \
                        *.greg *.jump *.jump2 *.loop *.lreg *.rtl \
                        *.sched *.sched2 *.stack

# clean all
clean :
	/bin/rm -f core *.o *.combine *.cse *.cse2 *.dbr *.flow \
                        *.greg *.jump *.jump2 *.loop *.lreg *.rtl \
                        *.sched *.sched2 *.stack
