blob: 05ce332f062a950da75379a0612a093c05ff220f (
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-as,v 1.1 2001/01/27 08:16:02 jtb Exp $
--- src/spotter/makefile.orig Wed Oct 18 03:01:22 2000
+++ src/spotter/makefile
@@ -41,7 +41,7 @@
install: all
for i in $(SPOT); do \
- $(INSTALL) $$i$(EXE) $(bindir); \
+ $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXE) $(bindir); \
done
uninstall:
@@ -50,21 +50,20 @@
done
clean:
- rm -f *.o
+ rm -f *.o *.la
for i in $(SPOT); do \
rm -f $$i$(EXE); \
done
spotless: clean
- rm -f *.a
+ rm -fr .libs *.la
#-------------------------------------------------------------------------------
# library
#-------------------------------------------------------------------------------
libspotter.a: libspotter.o
- $(AR) cvr libspotter.a $?
- $(RANLIB) libspotter.a
+ $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $@ libspotter.lo
libspotter.o: $(SPOT_H)
@@ -73,7 +72,7 @@
#-------------------------------------------------------------------------------
$(SPOT): libspotter.a $(SPOT_O)
- $(CC) $(CFLAGS) $(LDFLAGS) $@.o -L. -lspotter -L.. -lpsl -lgmt $(CDF) $(LIBS) -o $@
+ $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) $@.lo -L. -lspotter ../libpsl.la ../libgmt.la $(CDF) $(LIBS) -o $@
.c.o:
- $(CC) -c $(CFLAGS) $<
+ $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) $<
|