Fix makefiles for parallel build

fixmatch
Salvatore Filippone 3 years ago
parent f0c40d348e
commit 9818c3f5d1

@ -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

@ -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

Loading…
Cancel
Save