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
|
--- wol/Makefile.orig Wed Nov 5 20:24:18 2003
+++ wol/Makefile Tue Dec 9 17:49:36 2003
@@ -40,7 +40,7 @@
## first one for OS X.
##
-XINCLUDEDIR = .
+XINCLUDEDIR = ${LOCALBASE}/include
##
## If X isn't in the library path (the case for many MachTen and Linux
@@ -55,7 +55,7 @@
## depending on your installation. Use the second one for OS X.
##
-LIBX11 = -lX11
+LIBX11 = -lX11 -L${LOCALBASE}/lib
@@ -67,7 +67,7 @@
##
## on some systems, -ldl must be added to the following line
-OTHERLIBS= -lm
+OTHERLIBS= -lm -lcompat
##
@@ -97,11 +97,11 @@
##
CHIPMUNKCC = gcc -O3
-CC = $(CHIPMUNKCC)
+CC ?= $(CHIPMUNKCC)
-LIBDIR = `pwd`/
+LIBDIR = ${PREFIX}/share/chipmunk
WOLPL = $(LIBDIR)
-BINDIR = ../bin
+BINDIR = ${PREFIX}/bin
##
@@ -158,7 +158,7 @@
CHIPMUNKFLAGS =
-CFLAGS= $(CHIPMUNKFLAGS) -I$(LOCINC) -I$(XINCLUDEDIR) -DWOLLIBDIR=\"$(WOLPL)\"
+CFLAGS += -DBSD -DF_OK -I$(LOCINC) -I$(XINCLUDEDIR) -DWOLLIBDIR=\"$(WOLPL)\"
LDFLAGS= $(LIBP2C) $(LIBX11) $(OTHERLIBS)
@@ -201,8 +201,8 @@
install: wol
- cp wol $(BINDIR)
- cp fixcify $(BINDIR)
+ ${BSD_INSTALL_PROGRAM} wol $(BINDIR)
+ ${BSD_INSTALL_SCRIPT} fixcify $(BINDIR)
clean:
-rm -f *.o wol
|