1 diff -ruN ParMGridGen-1.0_orig/Makefile.in ParMGridGen-1.0/Makefile.in
2 --- ParMGridGen-1.0_orig/Makefile.in 2001-12-04 16:30:33.000000000 -0800
3 +++ ParMGridGen-1.0/Makefile.in 2013-08-22 20:07:33.491171127 -0700
5 #--------------------------------------------------------------------------
10 # Which compiler to use
11 # CC is the compiler for the serial code
15 # What options to be used by the compiler
23 # In which directories to look for any additional libraries
31 # What additional libraries to link the programs with (eg., -lmpi)
33 -PARLIBS = -lparmgrid -lmgrid -lmpi -lm
36 +LIBS = -Xlinker --add-needed -Xlinker --no-as-needed -lMGridGen -lm
37 +PARLIBS = -Xlinker --add-needed -Xlinker --no-as-needed -lparmgrid -lMGridGen -lmpi -lm
40 # What archiving to use
44 # What to use for indexing the archive
49 #--------------------------------------------------------------------------
51 diff -ruN ParMGridGen-1.0_orig/MGridGen/IMlib/Makefile ParMGridGen-1.0/MGridGen/IMlib/Makefile
52 --- ParMGridGen-1.0_orig/MGridGen/IMlib/Makefile 2001-12-04 14:46:56.000000000 -0800
53 +++ ParMGridGen-1.0/MGridGen/IMlib/Makefile 2013-08-22 20:03:32.925673296 -0700
56 $(CC) $(CFLAGS) -c $*.c
58 -./libIMlib.a: $(OBJS)
59 +libIMlib.$(LIBEXT): $(OBJS)
67 - rm -f *.o ; rm -f ./libIMlib.a
68 + rm -f *.o ; rm -f ./libIMlib.$(LIBEXT)
69 diff -ruN ParMGridGen-1.0_orig/MGridGen/Lib/Makefile ParMGridGen-1.0/MGridGen/Lib/Makefile
70 --- ParMGridGen-1.0_orig/MGridGen/Lib/Makefile 2001-12-04 15:01:00.000000000 -0800
71 +++ ParMGridGen-1.0/MGridGen/Lib/Makefile 2013-08-22 20:03:32.925673296 -0700
73 INCLUDES = -I./ -I$(IMLIBDIR) $(INCDIR)
74 CFLAGS = $(COPTIONS) $(OPTFLAGS) $(DEBUGFLAGS) $(INCLUDES)
76 -OBJS = coarsen.o kwayfm.o match.o merge.o mgridgen.o refine.o setup.o
77 +OBJS = aratio.o coarsen.o kwayfm.o match.o merge.o mgridgen.o refine.o setup.o
78 IOBJS = blas.o dfkeysort.o dkeysort.o file.o ifkeysort.o ifloatsort.o \
79 iintsort.o ikeysort.o memory.o sort.o util.o
80 IMOBJS = $(addprefix ../IMlib/, $(IOBJS))
83 $(CC) $(CFLAGS) -c $*.c
85 -../../libmgrid.a: $(OBJS) $(IMOBJS)
86 +libMGridGen.$(LIBEXT): $(OBJS) $(IMOBJS)
87 $(AR) $@ $(OBJS) $(IMOBJS)
94 - rm -f *.o ; rm -f ../../libmgrid.a
95 + rm -f *.o ; rm -f ./libMGridGen.$(LIBEXT)
96 diff -ruN ParMGridGen-1.0_orig/MGridGen/Programs/Makefile ParMGridGen-1.0/MGridGen/Programs/Makefile
97 --- ParMGridGen-1.0_orig/MGridGen/Programs/Makefile 2001-12-04 15:02:26.000000000 -0800
98 +++ ParMGridGen-1.0/MGridGen/Programs/Makefile 2013-08-22 20:03:32.925673296 -0700
100 include ../../Makefile.in
102 -MGRIDLIB = ../../libmgrid.a
103 +MGRIDLIB = ../Lib/libMGridGen.$(LIBEXT)
105 ifeq ($(ddmalloc),yes)
106 DEBUGFLAGS := $(DEBUGFLAGS) -DDMALLOC -DDEBUG