# This is the makefile for the mesa atomic diffusion package

MESA_DIR = ../..

#################################################################

# STEP 1: set up the standard info

include $(MESA_DIR)/utils/makefile_header

#################################################################

# STEP 2: build the library

LIB = libdiffusion.a
LIB_DEFS = 
LIB_OBJS = \
   mod_diffusion_support.o \
   mod_diffusion_procs.o mod_diffusion.o diffusion_lib.o

$(LIB) : $(LIB_DEFS) $(LIB_OBJS)
	$(LIB_TOOL) $(LIB) $(LIB_OBJS)
	
#################################################################

COMPILE = $(COMPILE_TO_DEPLOY) $(FCfree)
#COMPILE = $(COMPILE_TO_TEST) $(FCfree)
#COMPILE = $(COMPILE_NO_OPENMP_NO_OPT) $(FCfree)

%.o: $(MOD_PUBLIC_DIR)/%.f
	$(COMPILE) $<

%.o: $(MOD_PRIVATE_DIR)/%.f
	$(COMPILE) $<


clean:
	-@rm -f *.o *.mod $(LIB)
