mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
0b16afafb0
New version 2.10 is here! Release Notes: http://www.dhondt.de/new_calc.htm PR: 208301 Submitted by: pfg@
35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
--- ccx_2.10/src/Makefile.orig 2016-03-05 11:18:03 UTC
|
|
+++ ccx_2.10/src/Makefile
|
|
@@ -1,9 +1,9 @@
|
|
|
|
-CFLAGS = -Wall -O3 -fopenmp -I ../../../SPOOLES.2.2 -DARCH="Linux" -DSPOOLES -DARPACK -DMATRIXSTORAGE
|
|
-FFLAGS = -Wall -O3 -fopenmp
|
|
+CFLAGS += -O3 -fopenmp -I%%LOCALBASE%%/include -I%%LOCALBASE%%/include/spooles -DARCH="FreeBSD" -DSPOOLES -DARPACK -DMATRIXSTORAGE
|
|
+FFLAGS += -O3 -fopenmp
|
|
|
|
-CC=cc
|
|
-FC=gfortran
|
|
+CC=%%CC%%
|
|
+FC=%%FC%%
|
|
|
|
.c.o :
|
|
$(CC) $(CFLAGS) -c $<
|
|
@@ -18,15 +18,10 @@ OCCXF = $(SCCXF:.f=.o)
|
|
OCCXC = $(SCCXC:.c=.o)
|
|
OCCXMAIN = $(SCCXMAIN:.c=.o)
|
|
|
|
-DIR=../../../SPOOLES.2.2
|
|
-
|
|
-LIBS = \
|
|
- $(DIR)/spooles.a \
|
|
- ../../../ARPACK/libarpack_INTEL.a \
|
|
- -lpthread -lm -lc
|
|
+LIBS = -lspooles -larpack %%BLAS_LIBS%% %%LAPACK_LIBS%% -lm
|
|
|
|
ccx_2.10: $(OCCXMAIN) ccx_2.10.a $(LIBS)
|
|
- ./date.pl; $(CC) $(CFLAGS) -c ccx_2.10.c; $(FC) -fopenmp -Wall -O3 -o $@ $(OCCXMAIN) ccx_2.10.a $(LIBS)
|
|
+ ./date.pl; $(CC) $(CFLAGS) -c ccx_2.10.c; $(FC) -fopenmp -Wall -O3 -o $@ $(OCCXMAIN) ccx_2.10.a -lpthread $(LIBS)
|
|
|
|
ccx_2.10.a: $(OCCXF) $(OCCXC)
|
|
ar vr $@ $?
|