mirror of
https://github.com/sfilippone/amg4psblas.git
synced 2026-10-06 22:55:12 +00:00
Fix Makefiles for parallel builds
This commit is contained in:
+4
-4
@@ -8,19 +8,19 @@ MODDIR=../modules/
|
||||
LIBNAME=$(CBINDLIBNAME)
|
||||
LIBNAME=libamg_cbind.a
|
||||
|
||||
all: lib
|
||||
lib: amgprecd
|
||||
objs: amgprecd
|
||||
lib: objs
|
||||
/bin/cp -p $(CPUPDFLAG) $(HERE)/$(LIBNAME) $(LIBDIR)
|
||||
/bin/cp -p $(CPUPDFLAG) *.h $(INCDIR)
|
||||
/bin/cp -p $(CPUPDFLAG) *$(.mod) $(MODDIR)
|
||||
|
||||
|
||||
amgprecd:
|
||||
$(MAKE) -C amgprec lib LIBNAME=$(LIBNAME)
|
||||
cd amgprec && $(MAKE) objs LIBNAME=$(LIBNAME)
|
||||
|
||||
|
||||
clean:
|
||||
$(MAKE) -C amgprec clean
|
||||
cd amgprec &&$(MAKE) clean
|
||||
|
||||
|
||||
veryclean: clean
|
||||
|
||||
@@ -18,8 +18,9 @@ LIBMOD=amg_prec_cbind_mod$(.mod) amg_dprec_cbind_mod$(.mod) amg_zprec_cbind_mod$
|
||||
LOCAL_MODS=$(LIBMOD)
|
||||
#LIBNAME=$(CPRECLIBNAME)
|
||||
|
||||
objs: $(OBJS)
|
||||
|
||||
lib: $(OBJS) $(CMOD)
|
||||
lib: objs $(CMOD)
|
||||
$(AR) $(HERE)/$(LIBNAME) $(OBJS)
|
||||
$(RANLIB) $(HERE)/$(LIBNAME)
|
||||
/bin/cp -p $(HERE)/$(LIBNAME) $(DEST)
|
||||
|
||||
Reference in New Issue
Block a user