blob: 204ecc178a5b8c60df707a278dd84f383e0b9af7 (
plain)
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
|
$NetBSD: patch-aq,v 1.5 2006/11/14 13:16:00 wennmach Exp $
Libtoolize.
--- src/misc/makefile.orig Wed Apr 11 19:58:09 2001
+++ src/misc/makefile
@@ -8,7 +8,7 @@
GMTSRCDIR = ..
include ../gmtalldeps.macros
-CDF = -L$(NETCDF)/lib -lnetcdf
+CDF = -Wl,-R$(NETCDF)/lib -L$(NETCDF)/lib -lnetcdf
CFLAGS = $(CC_OPT) $(WIN32) -I$(srcdir) -I$(NETCDF)/include
@@ -39,7 +39,7 @@
install: all
for i in $(MISC); do \
- $(INSTALL) $$i$(EXE) $(bindir); \
+ $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXE) $(bindir); \
done
uninstall:
@@ -59,11 +59,11 @@
# program dependencies
#-------------------------------------------------------------------------------
-$(MISC): $(MISC_O) $(GMTLIB)
- $(CC) $(CFLAGS) $(LDFLAGS) $@.o -L.. -L$(libdir) -lgmt $(CDF) $(LIBS) -o $@
+$(MISC): $(MISC_O)
+ @$(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) $@.lo ../libgmt.la ../libpsl.la $(CDF) $(LIBS) -o $@
-$(MISCPS): $(MISCPS_O) $(GMTLIB)
- $(CC) $(CFLAGS) $(LDFLAGS) $@.o -L.. -L$(libdir) -lgmt -lgmtps -lpsl $(CDF) $(LIBS) -o $@
+$(MISCPS): $(MISCPS_O)
+ @$(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) $@.lo ../libgmt.la ../libgmtps.la ../libpsl.la $(CDF) $(LIBS) -o $@
.c.o:
- $(CC) -c $(CFLAGS) $<
+ @$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -c $(CFLAGS) $<
|