summaryrefslogtreecommitdiff
path: root/chinese/ted/files/patch-aa
blob: 4b2cfea8745440084d0eeb445a5caabeb1122fa7 (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
51
52
53
54
55
56
57
58
--- Makefile.orig	Wed Jan  7 14:03:22 1998
+++ Makefile	Sat Jan 24 22:58:08 1998
@@ -1,5 +1,5 @@
-CHINESE=0
-TEDDIR=/usr/local/lib/Ted
+CHINESE=1
+TEDDIR=/usr/X11R6/lib/X11/ted
 ########## GCC/Linux ......  ############
 CC=gcc
 XINC=-I/usr/X11R6/include
@@ -31,19 +31,19 @@
 #XINC=-I/usr/openwin/include
 #LDFLAGS= -L/usr/openwin/lib -lsocket
 #CC=gcc
-XINC=-I/usr/X11R6.3/include
-LDFLAGS= -L/usr/X11R6.3/lib -lsocket
-SUNKBD=-DSUNKBD
+#XINC=-I/usr/X11R6.3/include
+#LDFLAGS= -L/usr/X11R6.3/lib -lsocket
+#SUNKBD=-DSUNKBD
 ###########################
 
-CFLAGS = -O -DCHINESE=$(CHINESE) $(XINC) $(SUNKBD) -DTEDDIR=\"$(TEDDIR)\"
+CFLAGS += -DCHINESE=$(CHINESE) $(XINC) $(SUNKBD) -DTEDDIR=\"$(TEDDIR)\"
 #CFLAGS = -g -DCHINESE=$(CHINESE) $(XINC) -DDEBUG $(SUNKBD) -DTEDDIR=\"$(TEDDIR)\"
 #CFLAGS = -g -DCHINESE=$(CHINESE) $(XINC) $(SUNKBD) -DTEDDIR=\"$(TEDDIR)\"
 
 OBJS =	e.o x.o m.o f.o b.o edln.o xcp.o s.o u.o misc.o twin.o dir.o xkey.o \
-	cwin.o filebrowse.o kwcomp.o
+	cwin.o filebrowse.o kwcomp.o cli_xcin.o
 
-all:	ted ref ctags tedrc
+all:	ted tedrc #ref ctags
 ted:	$(OBJS)
 	$(CC) $(OBJS) -o $@ $(LDFLAGS) -lX11
 #	$(CC) $(OBJS) -o $@ $(LDFLAGS) -lX11 -lefence
@@ -58,12 +58,17 @@
 	$(CC) $(CFLAGS) ctags.c -o $@
 	strip $@
 install:
-	cp ted ref ctags /usr/local/bin
+	install -c -s -o bin -g bin -m 0755 ted /usr/X11R6/bin
+#	cp ted ref ctags /usr/local/bin
 	if [ ! -d $(TEDDIR) ]; then mkdir $(TEDDIR); fi
-	cp tedrc tedrc.vi tedrc.grep ted.help ted.filevisit $(TEDDIR)
-cli_xcin.o:
-	ln -s ../big5-pack/xcin/cli_xcin.o .
+	install -c -o bin -g bin -m 0444 tedrc $(TEDDIR)
+	install -c -o bin -g bin -m 0444 tedrc.vi $(TEDDIR)
+	install -c -o bin -g bin -m 0444 tedrc.grep $(TEDDIR)
+	install -c -o bin -g bin -m 0444 ted.help $(TEDDIR)
+#cli_xcin.o:
+#	ln -s ../big5-pack/xcin/cli_xcin.o .
 clean:
+
 	rm -f $(OBJS) ted core *~ *_
 clb5:
 	rm -f x.o e.o m.o edln.o