blob: f16e134169206b591bc469fbf725c9be8056f395 (
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
69
70
71
72
73
74
|
$NetBSD: patch-aa,v 1.6 2004/11/29 20:31:44 wiz Exp $
--- Makefile.orig Sat Aug 7 19:57:39 2004
+++ Makefile Tue Aug 31 20:40:29 2004
@@ -1,26 +1,42 @@
#
MAINVERSION = '"6.03"'
GUIVERSION = '".30"'
-LIBDIR = '"/usr/local/lib/Ngraph"'
-INSTALLDIR = /usr/local/lib/Ngraph
-BINDIR = /usr/local/bin
+LIBDIR = '"${PREFIX}/libexec/Ngraph"'
+INSTALLDIR =${PREFIX}/libexec/Ngraph
+BINDIR = ${PREFIX}/bin
#
#
###############################################################################
#
-# Linux + Open Motif 2.1 [dynamic link]
-#
+# NetBSD + lesstif/openmotif [dynamic link]
CC = gcc
-CCOPTION = -O2 -m486
-MAKE = make
+CCOPTION = ${CFLAGS}
+MAKE = gmake
AR = ar
RANLIB = ranlib
STRIP = strip
-DEFS = -DJAPANESE
-PLATFORM = '"for X11 [Linux(glibc2) + Open Motif]"'
-X11INCLUDE = -I/usr/X11R6/include
-STATICLINK =
-X11LIB = -L/usr/X11R6/lib -lm -lXm -lXext -lXt -lXp -lX11 -lICE -lSM
+DEFS = ${MOTIF_DEFS}
+PLATFORM = '"for X11 [NetBSD + OpenMotif/LessTif]"'
+X11INCLUDE = -I${X11BASE}/include -I../combo
+STATICLINK = ./combo/ComboBox.o
+X11LIB = ${LDFLAGS} ${MOTIFLIB} -lm -lXext -lXt -lXp -lX11 -lICE -lSM
+#
+#
+###############################################################################
+#
+# Linux + Open Motif 2.1 [dynamic link]
+#
+#CC = gcc
+#CCOPTION = -O2 -m486
+#MAKE = make
+#AR = ar
+#RANLIB = ranlib
+#STRIP = strip
+#DEFS = -DJAPANESE
+#PLATFORM = '"for X11 [Linux(glibc2) + Open Motif]"'
+#X11INCLUDE = -I/usr/X11R6/include
+#STATICLINK =
+#X11LIB = -L/usr/X11R6/lib -lm -lXm -lXext -lXt -lXp -lX11 -lICE -lSM
#
#
###############################################################################
@@ -170,6 +186,7 @@
OBJECT = x11/main.o x11/x11.a src/kern.a
all:
+ (cd combo; $(CC) $(CCOPTION) $(X11INCLUDE) -c ComboBox.c)
(cd src; $(MAKE) kern.a)
(cd x11; $(MAKE) main.o)
(cd x11; $(MAKE) x11.a)
@@ -216,6 +233,7 @@
- (cd x11; $(MAKE) clean)
- (cd x11drive; $(MAKE) clean)
- (cd x11addin; $(MAKE) clean)
+ - (cd combo; rm ComboBox.o)
cleanbackup:
rm *~ src/*~ x11/*~ x11drive/*~
|