-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (28 loc) · 1005 Bytes
/
Makefile
File metadata and controls
45 lines (28 loc) · 1005 Bytes
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
# This is BSD Makefile
# BSD GNU
# ${.TARGET} $@
# ${.ALLSRC} $^
# ${.IMPSRC} $<
.SUFFIXES: .Mod .m .k
all: Oberon.Sets.m Oberon.k Texts.k OFiles.k Reals.k TextsTest1 OberonLogTest1 InTest1
TextsTest1: Reals.k OFiles.k Display.k Texts.k Oberon.k TextsTest1.k
obc -o ${.TARGET} ${.ALLSRC}
OberonLogTest1: Reals.k OFiles.k Display.k Texts.k Oberon.k OberonLogTest1.k
obc -o ${.TARGET} ${.ALLSRC}
InTest1: Reals.k OFiles.k Display.k Texts.k Oberon.k InTest1.k
obc -o ${.TARGET} ${.ALLSRC}
##
TextsTest1.k: OFiles.k Texts.k
OberonLogTest1.k: Texts.k Oberon.k
InTest1: Texts.k Oberon.k OFiles.k
#
Oberon.k: Texts.k Display.k
Texts.k: OFiles.k Reals.k Display.k
Sets.k: Texts.k
##
.Mod.m:
./o2txt.py ${.IMPSRC} | sed 's/SHORTINT/BYTEE/g;s/INTEGER/SHORTINT/g;s/LONGINT/INTEGER/g;s/HUGEINT/LONGINT/g;s/ IN Oberon;/;/g;s/, Files;/, Files:=OFiles;/g' > ${.TARGET}
.m.k:
obc -c ${.IMPSRC}
clean:
rm -f *.k Oberon.Sets.m TextsTest1 TextsTest1.log OberonLogTest1 InTest1 *.tmp