blob: 4a9f0f3cc3f4fb882f13b12c5615fec6e1ed0c0a (
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
|
--- 9term/Makefile.orig Mon Mar 14 13:50:54 1994
+++ 9term/Makefile Fri Feb 11 10:18:21 2000
@@ -11,27 +11,29 @@
# Define RISCOS for Mips RISC/os
# Define BSDPTYS for BSD-style pty support
# Define POSIXPTYS for POSIX ptys
-OS=-DSOLARIS
-# where we'll install it
-BINDIR=/usr/pgrad/matty/bin/$(cputype)
+OS= -D_LIBXG_EXTENSION -DSUNOS
+
+SAMPATH=${SAMDIR}
+
+BINDIR=. # where we'll install it
HEADERFILE=9term.h
TARGET=9term
-INCLUDES=-I. -I../include -I/usr/openwin/include
-CFLAGS=-g $(OS) $(INCLUDES) -fno-builtin -D_LIBXG_EXTENSION
-LDFLAGS=-g -R/usr/openwin/lib -L/usr/openwin/lib -R/usr/ucblib -L/usr/ucblib
-CC=gcc
+INCLUDES=-I. -I../libtext -I$(SAMPATH)/include -I${X11BASE}/include
+CFLAGS+= $(OS) $(INCLUDES)
+LDFLAGS=
+CC?=gcc
# change this if your X11 libraries are in different places
# or if you need extra libraries to load with X11 applications
-LIBS=../libtext/libtext.a ../libframe/libframe.a ../libXg/libXg.a
-XLIBS=-lXt -lX11
-
+LIBS=../libtext/libtext.a $(SAMPATH)/libframe/libframe.a $(SAMPATH)/libXg/libXg.a
+XLIBS= -lXt -lX11 -L${X11BASE}/lib
+XLIBS+=-Wl,-rpath,$(X11BASE)/lib
OBJECTS=9term.o command.o display.o pty.o
$(TARGET): $(OBJECTS)
- $(CC) $(LDFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS) $(XLIBS) -lm -lucb
+ $(CC) $(LDFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS) $(XLIBS) -lm
wloc: wloc.o
$(CC) $(LDFLAGS) -o wloc wloc.o $(LIBS) $(XLIBS) -lm
@@ -39,21 +43,17 @@
label: wloc
ln wloc label
-unicode: unicode.o
- $(CC) $(LDFLAGS) -o unicode unicode.o $(LIBS) $(XLIBS) -lm
-
install: $(TARGET) wloc label
cp $(TARGET) $(BINDIR)
chown root $(BINDIR)/$(TARGET)
chmod 04755 $(BINDIR)/$(TARGET)
mv wloc $(BINDIR)
mv label $(BINDIR)
- mv unicode $(BINDIR)
clean:
rm -f *.o core
nuke: clean
- rm -f $(TARGET) wloc label unicode
+ rm -f $(TARGET) wloc label
$(OBJECTS): 9term.h
|