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
|
--- view/Makefile.orig Sat May 18 12:02:28 2002
+++ view/Makefile Sat May 18 12:59:50 2002
@@ -40,7 +40,7 @@
## or some other directory, depending on your installation.
##
-XINCLUDEDIR = .
+XINCLUDEDIR = ${X11BASE}/include
##
## If X isn't in the library path (the case for many MachTen and Linux
@@ -55,7 +55,7 @@
## depending on your installation.
##
-LIBX11 = -lX11
+LIBX11 = -lX11 -L${X11BASE}/lib
LIBP2C = ../psys/src/libp2c.a
@@ -67,7 +67,7 @@
##
## on Sun Solaris 2.X, -lsocket -lnsl must be added to OTHERLIBS
-OTHERLIBS= -lm
+OTHERLIBS= -lm -lcompat
##
## (2) IEEE library directory
@@ -114,7 +114,7 @@
CHIPMUNKCC = gcc -O3
-CC = $(CHIPMUNKCC)
+CC ?= $(CHIPMUNKCC)
##
## (4) Adding appropriate flags
@@ -172,11 +172,11 @@
CHIPMUNKFLAGS =
-CFLAGS= $(CHIPMUNKFLAGS) -I$(LOCINC) -I$(XINCLUDEDIR) -DF_OK=0
+CFLAGS += -I$(LOCINC) -I$(XINCLUDEDIR) -DF_OK=0
LDFLAGS= $(LIBP2C) $(LIBX11) $(OTHERLIBS)
MYLDFLAGS= $(LIBP2C) $(IEEEDIR) $(LIBX11) $(OTHERLIBS)
-BINDIR= ../bin
+BINDIR = ${PREFIX}/bin
OBJS = \
viewfit.o \
@@ -244,7 +244,7 @@
(chdir mt; make; chdir ..; chdir tek2430; make; chdir ..; make mtlink)
install: view
- cp view $(BINDIR)/vc
+ ${BSD_INSTALL_PROGRAM} view $(BINDIR)/vc
myinstall: myview
cp view ../bin/myview
|