forked from robhuls/calculix_build
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathccx_Makefile
executable file
·46 lines (35 loc) · 963 Bytes
/
ccx_Makefile
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
CFLAGS = -w -O3 -L $(MY_LIB) -I $(MY_INCLUDE) -DARCH="Linux" -DMATRIXSTORAGE -lm -lc -lpthread -ldl
FFLAGS = -w -O3 -fopenmp -m64 $(OPTIONS)
LIBS =
# Spooles
CFLAGS += -I $(MY_INCLUDE)/spooles -DSPOOLES
LIBS += $(MY_LIB)/spooles.a
# Multithreaded spooles
CFLAGS += -DUSE_MT
LIBS += $(MY_LIB)/spoolesMT.a
# ARPACK
LIBS += $(MY_LIB)/libarpack_linux.a
CFLAGS += -DARPACK
CC=gcc
FC=gfortran
OPTIONS = -w -fno-second-underscore -fcray-pointer -x f77-cpp-input
FPPSTOP=-x none
.SUFFIXES: .o .c .cu
.c.o :
$(CC) $(CFLAGS) -c $<
.f.o :
$(FC) $(FFLAGS) -c $<
include Makefile.inc
SCCXMAIN = ccx_2.11.c
# OCCXCU = $(SCCXCU:.cu=.o)
OCCXF = $(SCCXF:.f=.o)
OCCXC = $(SCCXC:.c=.o)
OCCXMAIN = $(SCCXMAIN:.c=.o)
ccx_2.11: $(OCCXMAIN) ccx_2.11.a \
./date.pl; $(CC) $(CFLAGS) -c ccx_2.11.c; \
$(FC) $(FFLAGS) -o $@ $(FPPSTOP) $(OCCXMAIN) ccx_2.11.a \
-Wl,--start-group \
$(LIBS) \
-Wl,--end-group
ccx_2.11.a: $(OCCXCU) $(OCCXF) $(OCCXC)
ar vr $@ $?