summaryrefslogtreecommitdiff
path: root/print/cups/patches/patch-aj
blob: 95c9503f292f2dbd880b7f9e9a3b0f8b4dd1e6ff (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
62
63
64
65
66
67
68
$NetBSD: patch-aj,v 1.1.1.1 1999/11/29 02:18:54 jlam Exp $

--- cups/Makefile.orig	Fri Oct 22 11:53:09 1999
+++ cups/Makefile	Sun Nov 28 21:06:28 1999
@@ -63,13 +63,20 @@
 #
 
 install:	all
-	-$(MKDIR) $(INCLUDEDIR)/cups
-	$(CP) $(HEADERS) $(INCLUDEDIR)/cups
-	-$(MKDIR) $(LIBDIR)
-	$(CP) $(LIBCUPS) $(LIBDIR)
-	if test $(LIBCUPS) != "libcups.a"; then \
-		$(LN) $(LIBCUPS) `basename $(LIBCUPS) .1`; \
-	fi
+	-$(BSD_INSTALL_DATA_DIR) $(INCLUDEDIR)/cups
+	$(BSD_INSTALL_DATA) $(HEADERS) $(INCLUDEDIR)/cups
+	-$(BSD_INSTALL_DATA_DIR) $(LIBDIR)
+	$(LIBTOOL) $(BSD_INSTALL_DATA) $(LIBCUPS) $(LIBDIR)
+
+#
+# libcups.la
+#
+
+libcups.la:	$(LIBOBJS:.o=.lo)
+	echo Linking $@...
+	$(RM) $@
+	$(LIBTOOL) $(CC) -o $@ $(LIBOBJS:.o=.lo) -rpath $(LIBDIR) \
+		-version-info 1:0
 
 #
 # libcups.so.1, libcups.sl.1
@@ -120,9 +127,9 @@
 # testhttp (dependency on static CUPS library is intentional)
 #
 
-testhttp:	testhttp.o libcups.a
+testhttp:	testhttp.o $(LIBCUPS)
 	echo Linking $@...
-	$(CC) $(LDFLAGS) -o $@ testhttp.o libcups.a $(NETLIBS)
+	$(CC) $(LDFLAGS) -o $@ testhttp.o .libs/libcups.a $(NETLIBS)
 
 testhttp.o:	http.h ../Makedefs
 
@@ -130,9 +137,9 @@
 # testmime (dependency on static CUPS library is intentional)
 #
 
-testmime:	testmime.o libcups.a
+testmime:	testmime.o $(LIBCUPS)
 	echo Linking $@...
-	$(CC) $(LDFLAGS) -o $@ testmime.o libcups.a
+	$(CC) $(LDFLAGS) -o $@ testmime.o .libs/libcups.a
 
 testmime.o:	mime.h ../Makedefs
 
@@ -140,9 +147,9 @@
 # testppd (dependency on static CUPS library is intentional)
 #
 
-testppd:	testppd.o libcups.a
+testppd:	testppd.o $(LIBCUPS)
 	echo Linking $@...
-	$(CC) $(LDFLAGS) -o $@ testppd.o libcups.a $(NETLIBS)
+	$(CC) $(LDFLAGS) -o $@ testppd.o .libs/libcups.a $(NETLIBS)
 
 testppd.o:	ppd.h ../Makedefs