Debian Codegraph @

texk/web2c/cwebdir/examples/Makefile

raw symbols SCIP
1 #
2 # generic Makefile to use when you've got CWEB
3 # (add it to, or add to it, whatever you like)
4 #
5 #======================================================================
6
7 CFLAGS = -g
8 MLIB = -lm
9 RM = /bin/rm -f
10 WFILES = extex.w treeprint.w wc.w wmerge.w wordtest.w oemacs.w
11
12 #======================================================================
13
14 .SUFFIXES: .tex .dvi .w
15
16 .w.tex:
17 cweave $*
18
19 .tex.dvi:
20 tex $<
21
22 .w.dvi:
23 make $*.tex
24 make $*.dvi
25
26 .w.c:
27 ctangle $*
28
29 .w.o:
30 make $*.c
31 make $*.o
32
33 .c.o:
34 cc $(CFLAGS) -c $*.c
35
36 .w:
37 make $*.c
38 cc $(CFLAGS) $*.c -o $*
39
40 #======================================================================
41
42 all: $(WFILES:.w=) excweb
43
44 excweb: extex
45 ln extex excweb
46
47 oemacs: oemacs.c
48 cc $(CFLAGS) -I/usr/openwin/include oemacs.c \
49 -o oemacs -lxview -lolgx -lX11
50
51 doc: $(WFILES:.w=.dvi)
52
53 clean:
54 $(RM) *~ \#~ .\#* *.o *.log *.dvi *.toc core a.out
55
56 clobber: clean
57 $(RM) $(WFILES:.w=) $(WFILES:.w=.c) $(WFILES:.w=.tex)