summaryrefslogtreecommitdiff
path: root/parallel/pvm3/patches/patch-bx
blob: 9505d71afd6a4479c8e7c66e10d63c214945f194 (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
$NetBSD: patch-bx,v 1.2 2004/07/30 13:07:25 dmcmahill Exp $

--- rm/Makefile.aimk.orig	Thu Aug 28 21:20:11 1997
+++ rm/Makefile.aimk
@@ -20,7 +20,7 @@ PVMIDIR		=	$(PVMDIR)/include
 PVMLDIR		=	$(PVMDIR)/lib/$(PVM_ARCH)
 PVMLIB		=	pvm3
 LIBPREFIX	=	lib
-PVMLIBDEP	=	$(PVMLDIR)/$(LIBPREFIX)$(PVMLIB).a
+PVMLIBDEP	=	$(PVMLDIR)/$(LIBPREFIX)$(PVMLIB).la
 SDIR		=	$(PVMDIR)/rm
 BDIR		=	$(PVMDIR)/bin
 XDIR		=	$(BDIR)/$(PVM_ARCH)
@@ -42,6 +42,8 @@ $(XDIR):
 	- mkdir $(XDIR)
 
 $(XDIR)/srm$(EXESFX):  srm$(EXESFX)
+	${MKDIR} $(XDIR)/.libs
+	-cp .libs/srm$(EXESFX) $(XDIR)/.libs
 	cp srm$(EXESFX) $(XDIR)
 
 
@@ -51,11 +53,14 @@ install: $(XDIR) $(XDIR)/srm$(EXESFX)
 
 local:	srm$(EXESFX)
 
+LTCC=		$(LIBTOOL) --mode=compile $(CC)
+LTCC_LINK=	$(LIBTOOL) --mode=link $(CC) ${PVM_STATIC}  
+
 srm$(EXESFX):	srm.o $(XDIR)
-	$(CC) $(CFLAGS) -o $@ srm.o $(LIBS)
+	$(LTCC_LINK) $(CFLAGS) -o $@ srm.lo $(LIBS)
 
 srm.o:  $(SDIR)/srm.c $(HEADERS) $(PVMLIBDEP) $(XDIR)
-	$(CC) $(CFLAGS) -c $(SDIR)/srm.c
+	$(LTCC) $(CFLAGS) -c $(SDIR)/srm.c
 
 again:
 	cd $(SDIR) ; touch *.c *.h ; make