blob: 452871b337a4c18cc57a2942067f339a81fa3369 (
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
42
|
$NetBSD: patch-ar,v 1.4 2006/11/14 13:16:00 wennmach Exp $
Libtoolize.
--- src/segyprogs/makefile.orig Wed Apr 11 19:58:09 2001
+++ src/segyprogs/makefile
@@ -10,7 +10,7 @@
#------------------------- stop here --------------------------
CFLAGS = $(CC_OPT) $(WIN32) -I$(srcdir) -I$(NETCDF)/include -I$(GMT_DEFAULT_PATH)/src
-ALLLIB = -L.. -L$(libdir) -lgmt -lgmtps -lpsl -L$(NETCDF)/lib -lnetcdf $(LIBS)
+ALLLIB = ../libgmt.la ../libgmtps.la ../libpsl.la -Wl,-R$(NETCDF)/lib -L$(NETCDF)/lib -lnetcdf $(LIBS)
SEGYPLOT_H = segy_io.h segy.h segyreel.h
SEGYPLOT_C = pssegyz.c pssegy.c segy2grd.c
@@ -25,7 +25,7 @@
install: all
for i in $(SEGYPLOT); do \
- $(INSTALL) $$i$(EXE) $(bindir); \
+ $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXE) $(bindir); \
done
uninstall:
@@ -43,12 +43,13 @@
\rm -f *.a
segy_io.o: $(SEGYPLOT_H) segy_io.c
- $(CC) -c $(CFLAGS) segy_io.c
+ @$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -c $(CFLAGS) segy_io.c
-$(SEGYPLOT): $(SEGYPLOT_O) segy_io.o $(GMTLIB)
- $(CC) $(CFLAGS) segy_io.o $@.o -o $@ $(ALLLIB) $(LDFLAGS)
+$(SEGYPLOT): $(SEGYPLOT_O) segy_io.o
+ @$(LIBTOOL) --mode=link $(CC) $(CFLAGS) segy_io.lo $@.lo -o $@ $(ALLLIB) $(LDFLAGS)
$(SEGYPLOT_O): $(GMT_H) $(PS_H)
.c.o:
- $(CC) -c $(CFLAGS) $<
+ @$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -c $(CFLAGS) $<
+
|