mirror of
https://github.com/sfilippone/amg4psblas.git
synced 2026-10-06 22:55:12 +00:00
Fix makefiles for parallel build
This commit is contained in:
+2
-2
@@ -65,11 +65,11 @@ LIBNAME=libamg_prec.a
|
||||
all: objs impld
|
||||
|
||||
objs: $(OBJS)
|
||||
/bin/cp -p amg_const.h $(INCDIR)
|
||||
/bin/cp -p *$(.mod) $(MODDIR)
|
||||
|
||||
impld: objs
|
||||
cd impl && $(MAKE)
|
||||
/bin/cp -p amg_const.h $(INCDIR)
|
||||
/bin/cp -p *$(.mod) $(MODDIR)
|
||||
|
||||
lib: $(OBJS) impld
|
||||
cd impl && $(MAKE) lib
|
||||
|
||||
+1
-2
@@ -9,8 +9,7 @@ LIBNAME=$(CBINDLIBNAME)
|
||||
LIBNAME=libamg_cbind.a
|
||||
|
||||
objs: amgprecd
|
||||
/bin/cp -p $(CPUPDFLAG) *.h $(INCDIR)
|
||||
/bin/cp -p $(CPUPDFLAG) *$(.mod) $(MODDIR)
|
||||
|
||||
lib: objs
|
||||
cd amgprec && $(MAKE) lib LIBNAME=$(LIBNAME)
|
||||
/bin/cp -p $(CPUPDFLAG) $(HERE)/$(LIBNAME) $(LIBDIR)
|
||||
|
||||
@@ -6,7 +6,7 @@ MODDIR=$(TOP)/modules
|
||||
HERE=.
|
||||
DEST=../
|
||||
|
||||
CINCLUDES=-I. -I$(LIBDIR) -I$(PSBLAS_INCDIR)
|
||||
CINCLUDES=-I. -I$(INCDIR) -I$(PSBLAS_INCDIR)
|
||||
FINCLUDES=$(FMFLAG)$(HERE) $(FMFLAG)$(INCDIR) $(FMFLAG)$(MODDIR) $(PSBLAS_INCLUDES)
|
||||
|
||||
|
||||
@@ -19,12 +19,13 @@ LOCAL_MODS=$(LIBMOD)
|
||||
#LIBNAME=$(CPRECLIBNAME)
|
||||
|
||||
objs: $(OBJS)
|
||||
/bin/cp -p $(LIBMOD) $(MODDIR)
|
||||
/bin/cp -p $(CMOD) $(INCDIR)
|
||||
|
||||
lib: objs $(CMOD)
|
||||
$(AR) $(HERE)/$(LIBNAME) $(OBJS)
|
||||
$(RANLIB) $(HERE)/$(LIBNAME)
|
||||
/bin/cp -p $(HERE)/$(LIBNAME) $(DEST)
|
||||
/bin/cp -p $(LIBMOD) $(CMOD) $(DEST)
|
||||
|
||||
amg_prec_cbind_mod.o: amg_dprec_cbind_mod.o amg_zprec_cbind_mod.o
|
||||
#amg_prec_cbind_mod.o: psb_prec_cbind_mod.o
|
||||
|
||||
Reference in New Issue
Block a user