summaryrefslogtreecommitdiff
path: root/support/tiny_c2l/makefile.unix
blob: 8356586b6dc90555d1fd21de9142418b5d5e46a0 (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
CFLAGS   = -O2 -fomit-frame-pointer -Wchar-subscripts -Wformat
LEX      = flex
LFLAGS   =
LDFLAGS  =
LIBS     =
CC       = gcc

.PHONY: demo tf


all: tc pt2 demo
demo: tiny_c2l.dvi testfile.dvi asm_uebung.dvi multiple.dvi

pv: position.dvi
	xdvi position.dvi
pt2: position.dvi position.sty
	- latex position.dtx
position.dvi: position.dtx position.sty
	- latex position.dtx

py: position.sty
position.sty: position.dtx position.ins
	latex position.ins

tcv: tiny_c2l.dvi
	xdvi tiny_c2l.dvi
tct2: tiny_c2l.dvi position.sty
	- latex tiny_c2l.tex
tiny_c2l.dvi: tiny_c2l.tex position.sty
	- latex tiny_c2l.tex
tct: tiny_c2l.tex
tiny_c2l.tex: tiny_c2l.l tiny_c2l
	./tiny_c2l -l tiny_c2l.l tiny_c2l.tex

tfv: testfile.dvi
	xdvi testfile.dvi
tft2: testfile.dvi position.sty
	- latex testfile.tex
testfile.dvi: testfile.tex position.sty
	- latex testfile.tex
tft: testfile.tex
testfile.tex: testfile.l tiny_c2l
	./tiny_c2l -+ -l1 testfile.l testfile.tex

av: asm_uebung.dvi
	xdvi asm_uebung.dvi
at2: asm_uebung.dvi position.sty
	- latex asm_uebung.tex
asm_uebung.dvi: asm_uebung.tex position.sty
	- latex asm_uebung.tex
at: asm_uebung.tex
asm_uebung.tex: asm_uebung.s tiny_t2l
	./tiny_t2l -t8 asm_uebung.s asm_uebung.tex

md: multiple.dvi
multiple.dvi: testfile.tex tiny_c2l.tex position.sty
	- latex multiple

tc: tiny_c2l

tt: tiny_t2l
clean:
	- rm tiny_c2l.aux tiny_c2l.dvi tiny_c2l.log tiny_c2l.tex tiny_c2l.toc
	- rm testfile.aux testfile.dvi testfile.log testfile.tex testfile.toc
	- rm asm_uebung.aux asm_uebung.dvi asm_uebung.log asm_uebung.tex asm_uebung.toc
	- rm multiple.aux multiple.dvi multiple.log multiple.toc
	- rm tiny_c2l.dbg tiny_t2l.dbg
	- rm position.aux position.dvi position.log position.toc
distclean: clean
	- rm tiny_c2l.c tiny_c2l.o tiny_c2l
	- rm tiny_t2l.c tiny_t2l.o tiny_t2l
	- rm cvt_rm.o cvt_rm position.sty