freebsd-ports/cad/calculix/files/patch-ccx_VER+src+Makefile
2009-09-03 08:06:33 +00:00

34 lines
1.1 KiB
Text

--- ccx_2.0/src/Makefile.orig 2009-08-13 04:54:17.000000000 +0900
+++ ccx_2.0/src/Makefile 2009-09-03 15:03:05.000000000 +0900
@@ -1,9 +1,9 @@
-CFLAGS = -Wall -O3 -I ../../../SPOOLES.2.2 -DARCH="Linux" -DSPOOLES -DARPACK -DMATRIXSTORAGE
+CFLAGS = -Wall -O3 -I%%LOCALBASE%%/include -I%%LOCALBASE%%/include/spooles -DARCH="FreeBSD" -DSPOOLES -DARPACK -DMATRIXSTORAGE %%PTHREAD_CFLAGS%%
FFLAGS = -Wall -O3 -fopenmp
-CC=cc
-FC=gfortran
+CC=%%CC%%
+FC=%%FC%%
.c.o :
$(CC) $(CFLAGS) -c $<
@@ -18,15 +18,12 @@
OCCXC = $(SCCXC:.c=.o)
OCCXMAIN = $(SCCXMAIN:.c=.o)
-DIR=../../../SPOOLES.2.2
+DIR=%%LOCALBASE%%/lib
-LIBS = \
- $(DIR)/spooles.a \
- ../../../ARPACK/libarpack_INTEL.a \
- -lm -lc
+LIBS = -lspooles -larpack %%BLAS_LIBS%% %%LAPACK_LIBS%% -lm
ccx_2.0: $(OCCXMAIN) ccx_2.0.a $(LIBS)
- ./date.pl; $(CC) $(CFLAGS) -c ccx_2.0.c; $(FC) -Wall -O3 -o $@ $(OCCXMAIN) ccx_2.0.a -lpthread $(LIBS)
+ ./date.pl; $(CC) $(CFLAGS) -c ccx_2.0.c; $(FC) -Wall -O3 -o $@ $(OCCXMAIN) ccx_2.0.a -L$(DIR) %%PTHREAD_LIBS%% $(LIBS)
ccx_2.0.a: $(OCCXF) $(OCCXC)
ar vr $@ $?