2008-06-12 04:14:13 +02:00
|
|
|
$NetBSD: patch-al,v 1.6 2008/06/12 02:14:31 joerg Exp $
|
2006-11-14 14:16:00 +01:00
|
|
|
|
|
|
|
Libtoolize.
|
2001-01-27 09:16:00 +01:00
|
|
|
|
2001-04-20 19:16:19 +02:00
|
|
|
--- src/mgg/makefile.orig Wed Apr 11 19:58:09 2001
|
|
|
|
+++ src/mgg/makefile
|
2006-11-14 14:16:00 +01:00
|
|
|
@@ -24,7 +24,7 @@
|
|
|
|
include ../gmtalldeps.macros
|
2001-04-19 22:51:30 +02:00
|
|
|
|
|
|
|
CFLAGS = $(CC_OPT) $(WIN32) -I$(srcdir) -I$(NETCDF)/include
|
|
|
|
-CDF = -L$(NETCDF)/lib -lnetcdf
|
|
|
|
+CDF = -Wl,-R$(NETCDF)/lib -L$(NETCDF)/lib -lnetcdf
|
|
|
|
|
|
|
|
MGG_H = gmt_mgg.h
|
|
|
|
|
2006-11-14 14:16:00 +01:00
|
|
|
@@ -54,19 +54,17 @@
|
2001-04-20 19:16:19 +02:00
|
|
|
#-------------------------------------------------------------------------------
|
2001-01-27 09:16:00 +01:00
|
|
|
|
|
|
|
install: all
|
2006-11-14 14:16:00 +01:00
|
|
|
- for i in $(MGG) $(MGGPS); do \
|
2001-01-27 09:16:00 +01:00
|
|
|
- $(INSTALL) $$i$(EXE) $(bindir); \
|
2001-04-20 19:16:19 +02:00
|
|
|
- done
|
2001-04-19 22:51:30 +02:00
|
|
|
if [ ! -d $(libdir) ]; then \
|
|
|
|
mkdir -p $(libdir); \
|
|
|
|
fi
|
|
|
|
if [ ! $(libdir) = $(srcdir) ]; then \
|
2006-11-14 14:16:00 +01:00
|
|
|
rm -f $(libdir)/libgmt_mgg.*; \
|
2001-04-19 22:51:30 +02:00
|
|
|
- $(INSTALL) -m 444 libgmt_mgg.a $(libdir); \
|
|
|
|
- if [ -f libgmt_mgg.$(SL) ]; then \
|
|
|
|
- $(INSTALL) -m 444 libgmt_mgg.$(SL) $(libdir); \
|
|
|
|
- fi; \
|
2006-11-14 14:16:00 +01:00
|
|
|
+ $(LIBTOOL) --mode=install $(INSTALL_DATA) libgmt_mgg.la $(libdir); \
|
2001-04-19 22:51:30 +02:00
|
|
|
fi
|
2006-11-14 14:16:00 +01:00
|
|
|
+ for i in $(MGG) $(MGGPS); do \
|
2005-06-22 10:34:54 +02:00
|
|
|
+ $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXE) $(bindir); \
|
2001-04-20 19:16:19 +02:00
|
|
|
+ done
|
2006-11-14 14:16:00 +01:00
|
|
|
+
|
2001-01-27 09:16:00 +01:00
|
|
|
|
|
|
|
uninstall:
|
2006-11-14 14:16:00 +01:00
|
|
|
for i in $(MGG) $(MGGPS); do \
|
|
|
|
@@ -93,8 +91,7 @@
|
2001-01-27 09:16:00 +01:00
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
libgmt_mgg.a: gmt_mgg.o
|
|
|
|
- $(AR) cvr libgmt_mgg.a $?
|
|
|
|
- $(RANLIB) libgmt_mgg.a
|
2008-06-12 04:14:13 +02:00
|
|
|
+ @$(LIBTOOL) --mode=link $(CC) -o libgmt_mgg.la gmt_mgg.lo --version-info 0:0 -rpath $(PLAIN_LIBDIR)
|
2001-01-27 09:16:00 +01:00
|
|
|
|
|
|
|
gmt_mgg.o: $(MGG_H)
|
|
|
|
|
2006-11-14 14:16:00 +01:00
|
|
|
@@ -102,11 +99,12 @@
|
|
|
|
# program dependencies
|
2001-01-27 09:16:00 +01:00
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
2006-11-14 14:16:00 +01:00
|
|
|
-$(MGG): libgmt_mgg.a $(MGG_O) $(GMTLIB)
|
|
|
|
- $(CC) $(CFLAGS) $(LDFLAGS) $@.o -L. -lgmt_mgg -L.. -L$(libdir) -lgmt $(CDF) $(LIBS) -o $@
|
|
|
|
+$(MGG): libgmt_mgg.a $(MGG_O)
|
2005-06-22 10:34:54 +02:00
|
|
|
+ @$(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) $@.o libgmt_mgg.la ../libpsl.la ../libgmt.la $(CDF) $(LIBS) -o $@
|
2006-11-14 14:16:00 +01:00
|
|
|
+
|
|
|
|
|
|
|
|
-$(MGGPS): libgmt_mgg.a $(MGGPS_O) $(GMTLIB)
|
|
|
|
- $(CC) $(CFLAGS) $(LDFLAGS) $@.o -L. -lgmt_mgg -L.. -L$(libdir) -lgmt -lgmtps -lpsl $(CDF) $(LIBS) -o $@
|
|
|
|
+$(MGGPS): libgmt_mgg.a $(MGGPS_O)
|
|
|
|
+ @$(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) $@.o libgmt_mgg.la ../libgmt.la ../libgmtps.la ../libpsl.la $(CDF) $(LIBS) -o $@
|
2001-01-27 09:16:00 +01:00
|
|
|
|
|
|
|
.c.o:
|
|
|
|
- $(CC) -c $(CFLAGS) $<
|
2005-06-22 10:34:54 +02:00
|
|
|
+ @$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -c $(CFLAGS) $<
|