You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.4 KiB
Makefile
53 lines
1.4 KiB
Makefile
include ../Make.inc
|
|
|
|
|
|
LIBDIR=../lib
|
|
INCDIR=../include
|
|
MODDIR=../modules
|
|
|
|
HERE=.
|
|
|
|
BASEOBJS= psb_blockpart_mod.o psb_metispart_mod.o psb_partidx_mod.o \
|
|
psb_hbio_mod.o psb_mmio_mod.o psb_mat_dist_mod.o \
|
|
psb_s_mat_dist_mod.o psb_d_mat_dist_mod.o psb_c_mat_dist_mod.o psb_z_mat_dist_mod.o \
|
|
psb_renum_mod.o psb_gps_mod.o
|
|
IMPLOBJS= psb_s_hbio_impl.o psb_d_hbio_impl.o \
|
|
psb_c_hbio_impl.o psb_z_hbio_impl.o \
|
|
psb_s_mmio_impl.o psb_d_mmio_impl.o \
|
|
psb_c_mmio_impl.o psb_z_mmio_impl.o psb_i_mmio_impl.o\
|
|
psb_s_mat_dist_impl.o psb_d_mat_dist_impl.o \
|
|
psb_c_mat_dist_impl.o psb_z_mat_dist_impl.o \
|
|
psb_s_renum_impl.o psb_d_renum_impl.o \
|
|
psb_c_renum_impl.o psb_z_renum_impl.o
|
|
|
|
MODOBJS=psb_util_mod.o $(BASEOBJS)
|
|
COBJS=metis_int.o psb_amd_order.o
|
|
OBJS=$(COBJS) $(MODOBJS) $(IMPLOBJS)
|
|
LOCAL_MODS=$(MODOBJS:.o=$(.mod))
|
|
LIBNAME=$(UTILLIBNAME)
|
|
FINCLUDES=$(FMFLAG). $(FMFLAG)$(MODDIR)
|
|
|
|
|
|
lib: $(HERE)/$(LIBNAME)
|
|
/bin/cp -p $(CPUPDFLAG) $(HERE)/$(LIBNAME) $(LIBDIR)
|
|
/bin/cp -p $(CPUPDFLAG) *$(.mod) $(MODDIR)
|
|
|
|
$(HERE)/$(LIBNAME): $(OBJS)
|
|
$(AR) $(HERE)/$(LIBNAME) $(OBJS)
|
|
$(RANLIB) $(HERE)/$(LIBNAME)
|
|
|
|
$(OBJS): $(MODDIR)/$(BASEMODNAME)$(.mod)
|
|
psb_util_mod.o: $(BASEOBJS)
|
|
psb_metispart_mod.o: metis_int.o
|
|
psb_mat_dist_mod.o: psb_s_mat_dist_mod.o psb_d_mat_dist_mod.o psb_c_mat_dist_mod.o psb_z_mat_dist_mod.o
|
|
|
|
$(IMPLOBJS): $(BASEOBJS)
|
|
|
|
veryclean: clean
|
|
/bin/rm -f $(HERE)/$(LIBNAME)
|
|
|
|
clean:
|
|
/bin/rm -f $(OBJS) $(LOCAL_MODS)
|
|
|
|
veryclean: clean
|