c1caa32a12
Both of them installed libpsl library, meaning only one of them could be installed at one time. Changed the GMT libpsl library name to libgmtpsl. Changing GMT library was more appropriate as only iGMT depends on GMT and it does not use libraries.
57 lines
1.9 KiB
Text
57 lines
1.9 KiB
Text
$NetBSD: patch-ap,v 1.5 2019/11/08 03:09:22 kivinen Exp $
|
|
|
|
Libtoolize.
|
|
|
|
--- src/meca/makefile.orig Wed Apr 11 19:58:09 2001
|
|
+++ src/meca/makefile
|
|
@@ -11,9 +11,9 @@
|
|
|
|
NETCDFLIB = $(NETCDF)/lib
|
|
NETCDFINC = $(NETCDF)/include
|
|
-CDF = -L$(NETCDFLIB) -lnetcdf
|
|
+CDF = -Wl,-R$(NETCDFLIB) -L$(NETCDFLIB) -lnetcdf
|
|
CFLAGS = $(CC_OPT) -I$(srcdir) -I$(NETCDFINC)
|
|
-ALLLIB = -L.. -L$(libdir) -lgmt -lgmtps -lpsl $(CDF) $(LIBS) $(LDFLAGS)
|
|
+ALLLIB = ../libgmt.la ../libgmtps.la ../libgmtpsl.la $(CDF) $(LIBS) $(LDFLAGS)
|
|
#
|
|
#
|
|
|
|
@@ -25,7 +25,7 @@
|
|
|
|
install: all
|
|
for i in $(MECA); do \
|
|
- $(INSTALL) $$i$(EXE) $(bindir); \
|
|
+ $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXE) $(bindir); \
|
|
done
|
|
|
|
uninstall:
|
|
@@ -35,20 +35,20 @@
|
|
|
|
spotless: clean
|
|
|
|
-psmeca: psmeca.o utilmeca.o nrutil.o $(GMTLIB)
|
|
- $(CC) $(CFLAGS) psmeca.o utilmeca.o nrutil.o $(ALLLIB) -o ./$@
|
|
+psmeca: psmeca.o utilmeca.o nrutil.o
|
|
+ @$(LIBTOOL) --mode=link $(CC) $(CFLAGS) psmeca.lo utilmeca.lo nrutil.lo $(ALLLIB) -o ./$@
|
|
|
|
-pscoupe: pscoupe.o utilmeca.o submeca.o distaz.o nrutil.o $(GMTLIB)
|
|
- $(CC) $(CFLAGS) pscoupe.o utilmeca.o submeca.o distaz.o nrutil.o $(ALLLIB) -o ./$@
|
|
+pscoupe: pscoupe.o utilmeca.o submeca.o distaz.o nrutil.o
|
|
+ @$(LIBTOOL) --mode=link $(CC) $(CFLAGS) pscoupe.lo utilmeca.lo submeca.lo distaz.lo nrutil.lo $(ALLLIB) -o ./$@
|
|
|
|
-pspolar: pspolar.o $(GMTLIB)
|
|
- $(CC) $(CFLAGS) pspolar.o $(ALLLIB) -o ./$@
|
|
+pspolar: pspolar.o
|
|
+ @$(LIBTOOL) --mode=link $(CC) $(CFLAGS) pspolar.lo $(ALLLIB) -o ./$@
|
|
|
|
-psvelo: psvelo.o utilvelo.o utilstrain.o $(GMTLIB)
|
|
- $(CC) $(CFLAGS) psvelo.o utilvelo.o utilstrain.o $(ALLLIB) -o ./$@
|
|
+psvelo: psvelo.o utilvelo.o utilstrain.o
|
|
+ @$(LIBTOOL) --mode=link $(CC) $(CFLAGS) psvelo.lo utilvelo.lo utilstrain.lo $(ALLLIB) -o ./$@
|
|
|
|
.c.o: $(GMT_H) $(PS_H) meca.h nrutil.h submeca.h utilmeca.h utilstrain.h utilvelo.h
|
|
- $(CC) -c $(CFLAGS) $<
|
|
+ @$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -c $(CFLAGS) $<
|
|
|
|
clean:
|
|
rm -f *.o
|