Makefile.master 1.0 KB

1234567891011121314151617181920212223242526
  1. .PHONY: master clean realclean dep-clean
  2. include $(MAKEFILE_CONFIG)
  3. master:$(IFS_BIN_DIR)/$(IFS_EXE_NAME)
  4. $(IFS_BIN_DIR)/$(IFS_EXE_NAME): $(addprefix $(IFS_LIB_DIR)/lib,$(addsuffix .a,$(sort $(IFS_LIBS))))
  5. $(AR) $(ARFLAGS_EXTRACT) $(IFS_LIB_DIR)/libifs.a master.o > $(IFS_BIN_DIR)/master.o
  6. $(LD) -o $@ $(IFS_BIN_DIR)/master.o $(LDFLAGS) \
  7. $(addprefix -L,$(IFS_LIB_DIR)) $(addprefix -l,$(IFS_LIBS)) \
  8. $(addprefix -L,$(OASIS_LIB_DIR)) $(addprefix -l,$(OASIS_LIBS)) \
  9. $(addprefix -L,$(MPI_LIB_DIR)) $(addprefix -l,$(MPI_LIBS)) \
  10. $(addprefix -L,$(NETCDF_LIB_DIR)) $(addprefix -l,$(NETCDF_LIBS)) \
  11. $(addprefix -L,$(GRIBAPI_LIB_DIR)) $(addprefix -l,$(GRIBAPI_LIBS)) \
  12. $(addprefix -L,$(GRIBEX_LIB_DIR)) $(addprefix -l,$(GRIBEX_LIBS)) \
  13. $(addprefix -L,$(LAPACK_LIB_DIR)) $(addprefix -l,$(LAPACK_LIBS))
  14. %.a:
  15. @echo "==> WARNING: Library '$(notdir $@)' out of date! Run 'make lib' first."
  16. clean:
  17. rm -f $(IFS_BIN_DIR)/master.o
  18. realclean: clean
  19. rm -f $(IFS_BIN_DIR)/$(IFS_EXE_NAME)