summaryrefslogtreecommitdiff
path: root/x11/XmHTML/patches/patch-ac
blob: 4a04383d9ae25175304f3f37caa8612f29a7958e (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
$NetBSD: patch-ac,v 1.4 2001/03/05 13:52:42 skrll Exp $

--- http/Makefile.orig	Thu Feb  4 00:43:27 1999
+++ http/Makefile
@@ -2,7 +2,7 @@
 # lint configuration. I use lclint.
 #
 
-LIBRARY=libhttp.a
+LIBRARY=libhttp.la
 
 # List of source, object and header files 
 SRCS=HTTP.c cookie.c
@@ -20,16 +20,15 @@
 # rule to create .o files from .c files 
 .c.o:
 	$(RM) $@
-	$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -c $<
+	${LIBTOOL} $(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -c $<
 
 all: $(TARGET)
 
 # targets to build
 
 $(TARGET):: $(OBJS)  
-	$(RM) $@ \ 
-	$(AR) $@ $(OBJS)  
-	$(RANLIB) $@
+	$(RM) $@
+	${LIBTOOL} $(CC) -o $@ $(OBJS:.o=.lo) -rpath ${PREFIX}/lib -version-info 0:2
 
 stamp-includes:
 	@if [ -d ../include ]; then set +x; \