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 36 37 38 39 40 41 42
|
# To compile directly, uncomment the line below.
# include ../Make.in
include ../../Makefile.inc
#
# Otherwise, adequate variables for CC, CFLAGS, AR and
# RANLIB must be passed to make.
#
.PHONY: clean realclean
INCLUDES = -I../include
COPTIONS = $(INCLUDES) $(CFLAGS) $(OPTFLAGS) $(FPIC)
OBJS = graph.o gbipart.o gbisect.o ddcreate.o ddbisect.o nestdiss.o \
multisector.o gelim.o bucket.o tree.o \
symbfac.o interface.o sort.o minpriority.o
# Note: numfac.c read.c mapping.c triangular.c matrix.c kernel.c
# were not direcly used by MUMPS and have been removed from the
# original SPACE package.
# OUTC = -o
.c.o:
$(CC) $(COPTIONS) -c $*.c $(OUTC)$*.o
libpord$(PLAT)$(LIBEXT):$(OBJS)
$(AR)$@ $(OBJS)
$(RANLIB) $@
libpord$(PLAT)$(LIBEXT_SHARED):$(OBJS)
$(CC) -shared $(OBJS) -Wl,$(SONAME),libpord$(PLAT)-$(SOVERSION)$(LIBEXT_SHARED) -o libpord$(PLAT)-$(VERSION)$(LIBEXT_SHARED) -Wl,-z,defs
ln -s libpord$(PLAT)-$(VERSION)$(LIBEXT_SHARED) libpord$(PLAT)-$(SOVERSION)$(LIBEXT_SHARED)
ln -s libpord$(PLAT)-$(VERSION)$(LIBEXT_SHARED) $@
clean:
rm -f *.o
realclean:
rm -f *.o libpord$(PLAT)$(LIBEXT) libpord$(PLAT)*$(LIBEXT_SHARED)
|