Skip to content

Commit

Permalink
cmp - build modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
claudioperez committed May 28, 2021
1 parent 5d72514 commit 4964600
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 22 deletions.
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ include Makefile.def

all:
ifdef MKDIR
$(MKDIR) $(HOME)/bin
$(MKDIR) $(HOME)/lib
$(MKDIR) $(PROJHOME)/bin
$(MKDIR) $(PROJHOME)/lib
endif
@( \
for f in $(DIRS); \
Expand All @@ -60,8 +60,8 @@ OpenSees: tcl

tcl:
ifdef MKDIR
$(MKDIR) $(HOME)/bin
$(MKDIR) $(HOME)/lib
$(MKDIR) $(PROJHOME)/bin
$(MKDIR) $(PROJHOME)/lib
endif
@$(ECHO) Building OpenSees Program ..;
@$(CD) $(FE)/tcl; $(MAKE) tcl;
Expand All @@ -78,8 +78,8 @@ OpenSeesPy: python

python:
ifdef MKDIR
$(MKDIR) $(HOME)/bin
$(MKDIR) $(HOME)/lib
$(MKDIR) $(PROJHOME)/bin
$(MKDIR) $(PROJHOME)/lib
endif
@( \
for f in $(DIRS); \
Expand All @@ -93,8 +93,8 @@ endif

pythonmain:
ifdef MKDIR
$(MKDIR) $(HOME)/bin
$(MKDIR) $(HOME)/lib
$(MKDIR) $(PROJHOME)/bin
$(MKDIR) $(PROJHOME)/lib
endif
@( \
for f in $(DIRS); \
Expand Down
12 changes: 6 additions & 6 deletions SRC/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ all:
@$(AR) $(ARFLAGS) $(FE_LIBRARY) $(FMK_LIBS)
@$(AR) $(ARFLAGS) $(FE_LIBRARY) $(KJE_LIBS)
@$(RANLIB) $(RANLIBFLAGS) $(FE_LIBRARY)
@$(AR) $(ARFLAGS) $(HOME)/lib/libOpenSeesTclCommands.a $(TCL_COMMAND_LIBS)
@$(RANLIB) $(RANLIBFLAGS) $(HOME)/lib/libOpenSeesTclCommands.a
@$(AR) $(ARFLAGS) $(OPENSEESHOME)/lib/libOpenSeesTclCommands.a $(TCL_COMMAND_LIBS)
@$(RANLIB) $(RANLIBFLAGS) $(OPENSEESHOME)/lib/libOpenSeesTclCommands.a

else

Expand Down Expand Up @@ -122,8 +122,8 @@ all:
@$(AR) $(ARFLAGS) $(FE_LIBRARY) $(KJE_LIBS)
@$(AR) $(ARFLAGS) $(FE_LIBRARY) $(ACTOR_LIBS)
@$(RANLIB) $(RANLIBFLAGS) $(FE_LIBRARY)
@$(AR) $(ARFLAGS) $(HOME)/lib/libOpenSeesTclCommands.a $(TCL_COMMAND_LIBS)
@$(RANLIB) $(RANLIBFLAGS) $(HOME)/lib/libOpenSeesTclCommands.a
@$(AR) $(ARFLAGS) $(OPENSEESHOME)/lib/libOpenSeesTclCommands.a $(TCL_COMMAND_LIBS)
@$(RANLIB) $(RANLIBFLAGS) $(OPENSEESHOME)/lib/libOpenSeesTclCommands.a

endif

Expand Down Expand Up @@ -183,11 +183,11 @@ TCL_COMMAND_LIBS = $(FE)/domain/pattern/TclPatternCommand.o \


skypack:
@$(CD) $(HOME)/lib; rm -f $(HOME)/lib/libskypack.a;
@$(CD) $(OPENSEESHOME)/lib; rm -f $(OPENSEESHOME)/lib/libskypack.a;
@$(CD) $(FE)/system_of_eqn/linearSOE/profileSPD/skypack; creator;

metis:
@$(CD) $(HOME)/lib; rm -f $(METIS_LIBRARY);
@$(CD) $(OPENSEESHOME)/lib; rm -f $(METIS_LIBRARY);
@$(CD) $(FE)/graph/partitioner/metis-2.0; $(MAKE) clean;
@$(CD) $(FE)/graph/partitioner/metis-2.0; $(MAKE) lib;

Expand Down
2 changes: 1 addition & 1 deletion SRC/interpreter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ include ../../Makefile.def
OBJS = DL_Interpreter.o OpenSeesCommands.o OpenSeesUniaxialMaterialCommands.o OpenSeesElementCommands.o OpenSeesTimeSeriesCommands.o OpenSeesPatternCommands.o OpenSeesSectionCommands.o OpenSeesOutputCommands.o OpenSeesCrdTransfCommands.o OpenSeesBeamIntegrationCommands.o OpenSeesNDMaterialCommands.o OpenSeesMiscCommands.o OpenSeesParameterCommands.o OpenSeesFrictionModelCommands.o OpenSeesReliabilityCommands.o

TclOBJS = tclMain.o TclInterpreter.o TclWrapper.o $(OBJS)
PythonOBJS = pythonMain.o PythonModule.o PythonWrapper.o $(OBJS)
PythonOBJS = pythonMain.o PythonModule.o PythonWrapper.o $(OBJS) #
PythonModuleOBJS = PythonModule.o PythonWrapper.o $(OBJS)

# Compilation control
Expand Down
2 changes: 1 addition & 1 deletion SRC/java/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ include ../Makefile

OBJS = OpenSeesEvaluator.o OpenSeesEvaluatorKepler.o

FE_LIBRARY = $(HOME)/lib/libOpenSees.so
FE_LIBRARY = $(OPENSEESHOME)/lib/libOpenSees.so

all: $(OBJS)

Expand Down
2 changes: 1 addition & 1 deletion SRC/optimization/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include ../../Makefile.def

ifndef OPTIMIZATION_LIBRARY
OPTIMIZATION_LIBRARY = $(HOME)/lib/libOptimization.a
OPTIMIZATION_LIBRARY = $(OPENSEESHOME)/lib/libOptimization.a
endif

OPTIMIZATION_OBJS = $(FE)/optimization/domain/Optimization.o \
Expand Down
2 changes: 1 addition & 1 deletion SRC/reliability/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include ../../Makefile.def

ifndef RELIABILITY_LIBRARY
RELIABILITY_LIBRARY = $(HOME)/lib/libReliability.a
RELIABILITY_LIBRARY = $(OPENSEESHOME)/lib/libReliability.a
endif

RELIABILITY_OBJS = $(FE)/domain/pattern/DiscretizedRandomProcessSeries.o \
Expand Down
2 changes: 1 addition & 1 deletion SRC/system_of_eqn/linearSOE/BJsolvers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ all: $(OBJS)


libBJsolvers.a: $(OBJS)
$(AR) -rv $(HOME)/lib/libBJsolvers.a $(OBJS)
$(AR) -rv $(OPENSEESHOME)/lib/libBJsolvers.a $(OBJS)

# Miscellaneous
tidy:
Expand Down
6 changes: 3 additions & 3 deletions SRC/system_of_eqn/linearSOE/mumps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@ test: $(OBJS) example.o
$(MACHINE_SPECIFIC_LIBS) -o test

test1:
@$(CC) $(CFLAGS) $(INCLUDES) -I$(HOME)/MUMPS_4.6.4/include -c c_example.c
@$(CC) $(CFLAGS) $(INCLUDES) -I$(OPENSEESHOME)/MUMPS_4.6.4/include -c c_example.c
@$(LINKER) $(LINKFLAGS) c_example.o mumps.o \
-L$(HOME)/MUMPS_4.6.4/lib \
-L$(OPENSEESHOME)/MUMPS_4.6.4/lib \
-ldmumps -lpord -lessl -lpesslsmp -lblacssmp \
$(HPM_LIB) \
-lm \
$(MACHINE_SPECIFIC_LIBS) -o test1

test2: c_example1.o
@$(LINKER) $(LINKFLAGS) c_example1.o mumps.o \
-L$(HOME)/MUMPS_4.6.4/lib \
-L$(OPENSEESHOME)/MUMPS_4.6.4/lib \
-ldmumps -lpord -lessl -lpesslsmp -lblacssmp \
$(HPM_LIB) \
$(FE)/actor/channel/MPI_Channel.o \
Expand Down

0 comments on commit 4964600

Please sign in to comment.