summaryrefslogtreecommitdiff
path: root/comms/plp/patches/patch-af
blob: d9c726a24743a970773997f64b8be720941e2b1e (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
49
50
51
52
53
54
55
56
57
58
59
60
61
$NetBSD: patch-af,v 1.2 1999/12/06 02:19:27 sakamoto Exp $

--- ./Makefile.orig	Wed Nov  3 06:05:02 1999
+++ ./Makefile	Mon Dec  6 11:04:20 1999
@@ -18,15 +18,9 @@
 INCLUDE=-I../utils
 CFLAGS= -Wall -g -O2
-CC=g++ $(CFLAGS) $(INCLUDE)
+CC=$(LIBTOOL) --mode=compile g++ $(CFLAGS) $(INCLUDE)
 
 # Linker and flags
-LIBDIR=-L../utils
-# Solaris users uncomment this line instead of the next one
-#LIBS=-lutils -lsocket -lnsl
-LIBS=-lutils
-LD=g++ $(LIBDIR)
-
-# Archiver
-AR=ar -cr
+LIBS=../utils/libplputils.la
+LD=$(LIBTOOL) --mode=link g++
 
 #######################################
@@ -39,18 +33,21 @@
 export LIBS
 
-all: bin/ncp bin/rfsv
+all: _utils _ncp _rfsv
+	rm -f bin/ncp bin/rfsv
+	ln -s ../ncp/ncp bin/ncp
+	ln -s ../rfsv/rfsv bin/rfsv
+
+_utils:
+	cd utils; $(MAKE)
 
-bin/ncp: $(wildcard ncp/*.cc) ncp utils/libutils.a
+_ncp:
 	cd ncp; $(MAKE)
 
-bin/rfsv: $(wildcard rfsv/*.cc) utils/libutils.a
+_rfsv:
 	cd rfsv; $(MAKE)
 
-utils/libutils.a:
-	cd utils; $(MAKE)
-
-install:
-	cp bin/rfsv /usr/local/bin/rfsv
-	cp bin/ncp /usr/local/bin/ncp
+install: all
+	cp rfsv/rfsv /usr/local/bin/rfsv
+	cp ncp/ncp /usr/local/bin/ncp
 
 clean:
@@ -60,5 +57,5 @@
 	rm -f ncp.log *~ core
 
-test: bin/ncp bin/rfsv
+test: all
 	PATH=`pwd`/bin:$${PATH}; export PATH;\
 		rfsv dir "C:/documents/"