-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.param
More file actions
126 lines (102 loc) · 2.63 KB
/
Makefile.param
File metadata and controls
126 lines (102 loc) · 2.63 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# Top level GoodNeWS1.2 Makefile.param
# contains the parameters to all Makefile in the GoodNeWS source.
# generate automatic dependencies
.KEEP_STATE:
# commands
RM = /bin/rm -f
CC = /bin/cc
INSTALL = install
MAKE = make -e
COMPRESS = compress
UNCOMPRESS = uncompress
# other files to remove
TEXTMPFILES = *.aux *.dvi *.lof *.toc *.dvi-log *.log *.out
CTMPFILES = *.o *.s core a.out lex.yy.c y.tab.c
TMPFILES = $(TEXTMPFILES) $(CTMPFILES)
#############
#
# Start of site specific variables - Please modify to suit
#
#############
#
# where NeWS1.1 is
NEWSHOME = /usr/src/local/NeWS1.1
# where GoodNeWS1.2 lives (should be whereever this Makefile.param is)
GNHOME = /usr/src/local/GoodNeWS1.2.DEV
# goodnews installation area for the binary files
GNBINDIR = $(GNHOME)/bin.SUN3
# TeX specific
# Change FONTAREA and FONTAREA118 to you local TeX font directory
# only when you have a copy of TeX/LaTeX installed on your machine.
FONTAREA = $(GNHOME)/fonts/gf/gf300
FONTAREA118 = $(GNHOME)/fonts/gf/gf118
HDRFILE = $(GNBINDIR)/tex.ps
DVI2PS = $(GNBINDIR)/dvi2ps
# news binary area (read from only)
NWBINDIR = $(NEWSHOME)/bin
LOCALBINDIR = /usr/local
# words used by the scrabble game
WORDS = /usr/dict/words
LEXNWORDS=30000
LEXFILE=\"/games/scrabble/words.dawg\"
# laser printer spool directory
SPOOLFILE = /usr/spool/lw
GNPRINTER = lpr -Plw
# manual directory
MANUALDIR = /usr/man
# other dirs
DRAWPSDIR = $(GNHOME)/tools/drawps
DVI2PSDIR = $(GNHOME)/tools/dvi2ps
#
############
#
# End of site specific variables
#
############
# Cursor font
CURSORFONT = GoodNeWSCursor
NCURSORFONT = GdNWSC
# make commands
SUBDIRSINSTALL = @ for i in $(SUBDIRS) ; do \
echo "Making sub directory $$i";\
(cd $$i ; $(MAKE) install) ; \
done
SUBDIRSCLEAN = @ for i in $(SUBDIRS) ; do \
echo "Cleaning sub directory $$i";\
(cd $$i ; $(MAKE) clean) ; \
done
SUBDIRSCOMPRESS = @ for i in $(SUBDIRS) ; do \
echo "compressing sub directory $$i";\
(cd $$i; $(MAKE) compress) ; \
done
FILESCOMPRESS = @- for i in `ls` ; do \
if test -f $$i ; then \
if test $$i != Makefile ; then \
echo "compress $$i";\
$(COMPRESS) $$i;\
fi \
fi \
done
SUBDIRSUNCOMPRESS = @ for i in $(SUBDIRS) ; do \
echo "uncompressing sub directory $$i";\
(cd $$i; $(MAKE) uncompress) ; \
done
FILESUNCOMPRESS = @ set *.Z;\
if test -f $$1 ; then \
$(UNCOMPRESS) *.Z; \
fi
# C-compiler stuff
CFLAGS = -O -fswitch
CPSLIB = -L$(NEWSHOME)/lib -lcps
CPSINCL= -I$(NEWSHOME)/include
.SUFFIXES: .c .o
.c.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(CPSINCL) -c $<
# cps dependencies
.SUFFIXES: .cps
.cps.h:
cps < $< > $@
# postscript dependencies
.SUFFIXES: .ps
.ps:
cat $< > $@