This repository has been archived by the owner on Mar 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.Trilinos
78 lines (56 loc) · 2.84 KB
/
Makefile.Trilinos
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#/************************************************************************ *
#* Goma - Multiphysics finite element software *
#* Sandia National Laboratories *
#* *
#* Copyright (c) 2014 Sandia Corporation. *
#* *
#* Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, *
#* the U.S. Government retains certain rights in this software. *
#* *
#* This software is distributed under the GNU General Public License. *
#\************************************************************************/
# Makefile for brk/fix, a tool to add nodes to an EXODUS FE database
#
# Note: Usually you should use the Makefile automatically generated by
# running configure. This one is for quick and dirty development
# work.
#
SHELL = /bin/sh
# PURE = purify -cache-dir="/tmp"
RM = rm -f
CC = mpicc
# CC = /home/sntools/extras/mpi/mpich-1.2.7p1-gcc-3.4.6-32Bit/bin/mpicc
# ACCESS = /usr/local/eng_sci/struct/current
# ACCESS = /home/goma/production/linux/SEAMS_2006-03-16-32-GCC
GOMA_LIBS = /home/goma/production
TRILINOS_TOP ?= $(GOMA_LIBS)/trilinos-12.6.3-Built
include $(TRILINOS_TOP)/include/Makefile.export.Trilinos
TRILINOS_INC ?= $(subst -I, -isystem, $(Trilinos_INCLUDE_DIRS) $(Trilinos_TPL_INCLUDE_DIRS))
TRILINOS_LIB ?= $(Trilinos_LIBRARY_DIRS) $(Trilinos_TPL_LIBRARY_DIRS) \
$(Trilinos_LIBRARIES) $(Trilinos_TPL_LIBRARIES)
INCLUDES = $(_INC) -I. $(TRILINOS_INC)
CDEBUGFLAGS = -g -Wall
COPTIMIZEFLAGS = -Wall
# DEFINES = -DHAVE_CONFIG_H=1 -DPOTATO_CHIP_DIET
DEFINES = -DHAVE_CONFIG_H=1
CFLAGS = $(CDEBUGFLAGS) $(COPTIMIZEFLAGS) $(CCOPTIONS) $(DEFINES) $(INCLUDES)
LIBS = $(TRILINOS_LIB)
FOBJS = fix.o rd_exo.o wr_exo.o rd_dpi.o wr_dpi.o utils.o \
aalloc.o eh.o bbb.o exo_utils.o
OBJS = brk.o rd_exo.o wr_exo.o rd_in.o wr_graph_file.o mk_dm.o \
wr_coords.o ppi.o sam_perea.o wr_dpi.o \
utils.o aalloc.o eh.o exo_utils.o exo_conn.o emuck.o \
rd_dpi.o
all: brk fix
tags:
find . -name "*.[c]" -exec etags -a '{}' \;
fix: $(FOBJS)
$(RM) $@;\
$(CC) $(COPTIMIZEFLAGS) -o $@ $(FOBJS) $(LIBS) $(Trilinos_EXTRA_LD_FLAGS)
brk: $(OBJS)
$(RM) $@;\
$(PURE) $(CC) $(COPTIMIZEFLAGS) -o $@ $(OBJS) $(LIBS) $(Trilinos_EXTRA_LD_FLAGS)
clean:
-rm -f *.o *~ tmp* core junk* *.BAK *%
realclean:
-rm -f *.fem *.pcon *.psplot *.o *~ tmp* junk* *.BAK *%