Skip to content

Commit

Permalink
Simplify build
Browse files Browse the repository at this point in the history
  • Loading branch information
jwallwork23 committed Oct 22, 2024
1 parent 0fdd9af commit e8a5db9
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions decks/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,11 @@ ifeq ($(GC),YES)
@echo "***************************************************************"
mkdir -p $(GC_BUILD_DIR)
mkdir -p $(GC_LIB_DIR)
# If CMAKE_BUILD_TYPE is not specified, it defaults to "Release". May also be set to "Debug"
# If MECH is not specified, it defaults to "fullchem". May also be "carbon".
ifeq ($(COMPILER),gfortran)
cd $(GC_BUILD_DIR) && cmake ../ -DINSTALLCOPY=.. -DCMAKE_BUILD_TYPE=$(TYPE) -DOMP=$(MP) -DMECH=$(MECH) -DCMAKE_EXE_LINKER_FLAGS="-nostartfiles -Wno-main"
endif
ifeq ($(F90),intel)
cd $(GC_BUILD_DIR) && cmake ../ -DINSTALLCOPY=.. -DCMAKE_BUILD_TYPE=$(TYPE) -DOMP=$(MP) -DMECH=$(MECH) -DCMAKE_EXE_LINKER_FLAGS="-nostartfiles -nofor-main"
endif
# If CMAKE_BUILD_TYPE is not specified, it defaults to "Release". May also be set to "Debug"
# If MECH is not specified, it defaults to "fullchem". May also be "carbon".
cd $(GC_BUILD_DIR) && cmake ../ -DINSTALLCOPY=.. \
-DCMAKE_BUILD_TYPE=$(TYPE) -DOMP=$(MP) -DMECH=$(MECH) \
-DCMAKE_EXE_LINKER_FLAGS=$(LFLAGS)
cd $(GC_BUILD_DIR) && make -j install
cp $(GC_BUILD_DIR)/mod/*.mod $(MODEL_DIR)/mod/
cp $(GC_BUILD_DIR)/src/HEMCO/mod/*.mod $(MODEL_DIR)/mod/
Expand Down

0 comments on commit e8a5db9

Please sign in to comment.