
MESA_DIR = ../../..

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

# STEP 1: set up the standard info

include $(MESA_DIR)/utils/makefile_header

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

# STEP 2: info about the libraries

LOAD_LOCAL = -L$(LOCAL_LIB_DIR) -lgyre $(LOAD_LAPACK) -L$(MESA_DIR)/lib -lconst

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

# STEP 3: build the test program

ifeq ($(USE_GYRE),NO)
TEST_OBJS = test_gyre_stub.o
else
TEST_OBJS = test_gyre.o
endif


TEST = tester

$(TEST) : $(TEST_OBJS)
	$(FC) $(FCopenmp) -o $(TEST_DIR)/$(TEST) $(TEST_OBJS) $(LOAD_LOCAL)
	
#################################################################

%.o: $(TEST_SRC_DIR)/%.f
	$(TEST_COMPILE) $(FCfree) $<

clean:
	-@rm -f *.o *.mod $(TEST_LIB) $(TEST_DIR)/$(TEST)
