# This is the makefile for the mesa atm library

MESA_DIR = ../..

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

# STEP 1: set up the standard info
include $(MESA_DIR)/utils/makefile_header

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

# STEP 2: build the library
LIB = libatm.a
LIB_DEFS = atm_def.o
LIB_OBJS = integrate_atm.o table_atm.o \
   mod_atm.o atm_lib.o

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

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

#COMPILE = $(COMPILE_NO_OPENMP_NO_OPT)


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

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

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