#------------------------------------------------------------------------- # Makefile targets common to all of the decoders. #------------------------------------------------------------------------- all: init ${DECODER}: ${OBJS} ${FC} ${LDFLAGS} ${LDFLAGS_XT} -o ../exec/${@} \ ${OBJS} ${LIBS} ${LIBS_XT} ${DECOD_BUFR} make clean init: ${SHELL} -c "module reset >& /dev/null; \ module use -a ${DECOD_INCLUDE}/../lib/modulefiles ${MODULEDIRS_XT}; \ module load $(shell ${DECOD_INCLUDE}/get_module_list.sh \ ${DECOD_INCLUDE}/MODULES ${MODULES_XT}); \ make ${DECODER}" clean: rm -f ${OBJS} clobber: clean -rm -f ../exec/${DECODER}