# This is the makefile for the mesa neutrino losses library

MESA_DIR = ../..

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

# STEP 1: set up the standard info

include $(MESA_DIR)/utils/makefile_header

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

# STEP 2: build the library

LIB = libneu.a
LIB_DEFS = neu_def.o
LIB_OBJS = neu.o neu_lib.o

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

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

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

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

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