aboutsummaryrefslogtreecommitdiff
path: root/cad/calculix/files/patch-ccx_VER+src+Makefile
blob: b403ca7eeacf6ca6bd02733b3f5732027c43b2d9 (plain) (blame)
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
--- ccx_1.6/src/Makefile.orig	Sun Mar  4 02:34:11 2007
+++ ccx_1.6/src/Makefile	Sun Mar 25 14:25:45 2007
@@ -1,8 +1,8 @@
-CFLAGS = -Wall -O  -I ../../../SPOOLES.2.2 -DARCH="Linux" -DSPOOLES -DARPACK -DMATRIXSTORAGE
-FFLAGS = -Wall -O 
+CFLAGS+= -Wall -O  -I. -I%%LOCALBASE%%/include -I%%LOCALBASE%%/include/spooles -DARCH="FreeBSD" -DSPOOLES -DARPACK -DMATRIXSTORAGE %%PTHREAD_CFLAGS%%
+FFLAGS+= -Wall -O 
 
-CC=cc
-FC=g77
+CC=%%CC%%
+FC=%%FC%%
 
 .c.o :
 	$(CC) $(CFLAGS) -c $<
@@ -379,15 +379,12 @@
 OCCXC = $(SCCXC:.c=.o)
 OCCXMAIN = $(SCCXMAIN:.c=.o)
 
-DIR=../../../SPOOLES.2.2
-
-LIBS = \
-       $(DIR)/spooles.a \
-	../../../ARPACK/libarpack_INTEL.a \
-       -lm
+DIR=%%LOCALBASE%%/lib
+  
+LIBS = -lspooles -larpack -ltaucs -lmetis %%BLAS_LIBS%% %%LAPACK_LIBS%% -lm
 
 ccx_1.6: $(OCCXMAIN) ccx_1.6.a  $(LIBS)
-	./date.pl; $(CC) $(CFLAGS) -c ccx_1.6.c; g77 -Wall -O -o $@ $(OCCXMAIN) ccx_1.6.a  $(LIBS)
+	./date.pl; $(CC) $(CFLAGS) -c ccx_1.6.c; ${FC} ${FFLAGS} -o $@ $(OCCXMAIN) ccx_1.6.a  %%PTHREAD_LIBS%% $(LIBS) -L$(DIR) -lcompat
 
 ccx_1.6.a: $(OCCXF) $(OCCXC)
 	ar vr $@ $?