summaryrefslogtreecommitdiff
path: root/support/tiny_c2l/makefile.dos
blob: b9600df88dc9b4912517c1a2e1a2b76e643d4729 (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
73
74
75
76
77
78
79
80
81
82
83
84
CFLAGS   = -O2 -fomit-frame-pointer -Wchar-subscripts -Wformat
LEX      = flex
LFLAGS   =
LDFLAGS  =
LIBS     =
CC       = gcc

.PHONY: demo tf

.SUFFIXES: .l .exe
.c.exe:
	$(CC) $< -o$*
	djp $*
	cvt_rm $*.o $*
.l.exe:
	$(LEX) $<
	$(CC) $*.c -o$*
	djp $*
	cvt_rm $*.c $*.o $*

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

pv: position.dvi
	yap 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
	yap 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.exe
	tiny_c2l -l tiny_c2l.l tiny_c2l.tex

tfv: testfile.dvi
	yap 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.exe
	tiny_c2l -+ -l1 testfile.l testfile.tex

av: asm_uebung.dvi
	yap 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.exe
	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.exe
tiny_c2l.exe: tiny_c2l.l
cvt_rm.exe: cvt_rm.c

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