summaryrefslogtreecommitdiff
path: root/editors/sam/patches/patch-aa
blob: 0a93ea70d573dc429116730a67bd0c54f53534c9 (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-aa,v 1.4 2001/05/01 09:16:25 agc Exp $

--- libXg/Makefile.orig	Tue May  1 09:42:03 2001
+++ libXg/Makefile	Tue May  1 09:48:09 2001
@@ -1,24 +1,23 @@
 #	Copyright (c) 1992 AT&T - All rights reserved.
 #
-#	Prototype Makefile for libXg
+#	Prototype BSDi Makefile for libXg
+#	Courtesy of Boyd Roberts
+#
+#	Define operating system type: -DBSDi
 #
-#	define operating system.  ONE of:
-#		-DIRIX -DSUNOS -DUMIPS -DSYSVR3 -DAIX -DOSF1
-#		-DHPUX -DAPOLLO -DCONVEX -DDYNIX
-#	
 #	Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified
 #	if your compiler supports posix-compatible compilation
-OS=-DIRIX -ansiposix
+OS=-O2 -DBSDi
 
 #	add -Iincludedir for any include directories that need to be searched
-INCS=-I../include
+INCS=-I../include -I${X11BASE}/include
 
 #	set this if your X libraries are in different locations
 #	or if you need extra libraries to load with X11 applications
-XLIBS=/usr/local/X11R5/lib/libXt.a /usr/local/X11R5/lib/libX11.a
+XLIBS=-L${X11BASE}/lib -Wl,-R${X11BASE}/lib -lXt -lX11
 
 #	add name of library orderer - use ":" if none
-RANLIB=:
+RANLIB=ranlib
 
 #	add name of librarian
 AR=ar
@@ -36,7 +35,7 @@
 	rdfontfile.o rectclip.o rune.o segment.o string.o strwidth.o texture.o\
 	wrbitmap.o wrbitmapfile.o xtbinit.o
 
-all install:	$(LIB)
+all :	$(LIB)
 compile:	$(LIB)
 test:	test.o
 	$(CC) -o $@ $? $(LIB) $(XLIBS) -lm
@@ -47,10 +46,12 @@
 nuke:	clean
 	rm -f $(LIB)
 
+install: ${LIB}
+	cp ${LIB} ${PREFIX}/lib/${LIB}
+	${RANLIB} ${PREFIX}/lib/${LIB}
+
 $(LIB):	$(OBJS)
 	$(AR) rv $(LIB) $(OBJS)
 	$(RANLIB) $(LIB)
-
-$(LIB)(%.o): %.o
 
 $(OBJS):	../include/libg.h libgint.h ../include/libc.h