summaryrefslogtreecommitdiff
path: root/cad/chipmunk/files/patch-al
blob: 917865dd040a8fee1bc295685a457d550860d287 (plain) (blame)
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
--- util/boxify/Makefile.orig	Wed Mar 12 02:47:23 1997
+++ util/boxify/Makefile	Sat May 18 13:12:54 2002
@@ -21,7 +21,7 @@
 #
 # boxify makefile
 
-BINDIR=	../../bin
+BINDIR=	${PREFIX}/bin
 
 ##
 ##  (1) Choosing your compiler
@@ -48,7 +48,7 @@
 ##
 
 CHIPMUNKCC = gcc
-CC = $(CHIPMUNKCC)
+CC ?= $(CHIPMUNKCC)
 
 ##
 ## (2) Adding appropriate flags
@@ -92,7 +92,7 @@
 ##   -m68040              : for 68040 and 68060
 ##
 
-CFLAGS = 
+CFLAGS += -DBSD -DF_OK=0
 
 TRAPESSRC	= trapes/edges.c trapes/findnext.c trapes/mates.c \
 		trapes/delete.c trapes/gentrapes.c trapes/trapes.c
@@ -102,16 +102,16 @@
 
 INCLUDES	= trapes/poly.h trapes/trapes.h p2c.h boxify.h
 
-boxify: boxify.o
-	(cd trapes; make)
+all: boxify.o
+	(cd trapes; $(MAKE) all)
 	$(CC) -o boxify boxify.o $(TRAPESOBJ)  -lm
 
 
 install: boxify
-	cp boxify $(BINDIR)  
+	${BSD_INSTALL_PROGRAM} -c -s boxify $(BINDIR)  
 
 clean:
-	(cd trapes; make clean)
+	(cd trapes; $(MAKE) clean)
 	-rm -f *.o boxify
 
 #tar:	$(INCLUDES) $(TRAPESSRC) boxify.c boxify.1 Makefile