blob: e458d8fd53245fcba61b63493a33f4f9c13bd62a (
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
43
44
45
46
47
48
|
$NetBSD: patch-al,v 1.1 2001/01/27 08:16:01 jtb Exp $
--- src/mgg/makefile.orig Wed Oct 18 03:01:19 2000
+++ src/mgg/makefile
@@ -45,7 +45,7 @@
install: all
for i in $(MGG); do \
- $(INSTALL) $$i$(EXE) $(bindir); \
+ $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXE) $(bindir); \
done
uninstall:
@@ -54,21 +54,20 @@
done
clean:
- rm -f *.o
+ rm -f *.o *.lo
for i in $(MGG); do \
rm -f $$i$(EXE); \
done
spotless: clean
- rm -f *.a
+ rm -fr .libs *.la
#-------------------------------------------------------------------------------
# library
#-------------------------------------------------------------------------------
libgmt_mgg.a: gmt_mgg.o
- $(AR) cvr libgmt_mgg.a $?
- $(RANLIB) libgmt_mgg.a
+ $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $@ gmt_mgg.lo
gmt_mgg.o: $(MGG_H)
@@ -77,7 +76,7 @@
#-------------------------------------------------------------------------------
$(MGG): libgmt_mgg.a $(MGG_O)
- $(CC) $(CFLAGS) $(LDFLAGS) $@.o -L. -lgmt_mgg -L.. -lpsl -lgmt $(CDF) $(LIBS) -o $@
+ $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) $@.o -L. -lgmt_mgg ../libpsl.la ../libgmt.la $(CDF) $(LIBS) -o $@
.c.o:
- $(CC) -c $(CFLAGS) $<
+ $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) $<
|