-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.OA
72 lines (49 loc) · 1.62 KB
/
Makefile.OA
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
# This Makefile is for setup, an initial build using ObjectAda, and
# producing doc files at your option. After running make once, everything
# should be set up so that you can continue using only ObjectAda tools.
# Adjust these:
OBJECTADA=N:\opt\Aonix\ObjectAda.82
CONTAINER_SRC=E:\work\src\Containers
ASNIP_SRC=E:\work\src\Tools\ASnip
CONTAINER_PRJ=E:\work\Projects\Containers.82.tmp
ASNIP_PRJ=E:\work\Projects\ASnip.82.tmp
# compilation options?
#ADAFLAGS=-g -G -O1
ADAFLAGS=-N -O2
# "Win32", "UNIX" (not an OS, but a subdirectory)
OP_SYS=Win32
# how to remove a file
delete = del
# executables have an extension?
exe=.exe
################################################################
PATH=%PATH%;$(OBJECTADA)\bin;
all: ASnip.main$(exe)
doc: force
xmlto -o doc html-nochunks asnip.xml
xmlto -o doc man asnip.xml
ASnip.main$(exe): $(CONTAINER_PRJ)\ADA.LIB $(ASNIP_PRJ)\UNIT.MAP
cd $(ASNIP_PRJ)
adabuild $(ADAFLAGS) $*
$(CONTAINER_PRJ)\ADA.LIB: $(CONTAINER_PRJ)
cd $(CONTAINER_PRJ)
adaopts -sd $(CONTAINER_SRC)
adacomp $(ADAFLAGS) -sr $(CONTAINER_SRC)\a-coinve.adb
adamake $(ADAFLAGS) -sr $(CONTAINER_SRC)\a-coinve.adb
$(CONTAINER_PRJ):
mkdir $(CONTAINER_PRJ)
# target also used for making the ADA.LIB
$(ASNIP_PRJ)\UNIT.MAP: $(ASNIP_PRJ)
cd $(ASNIP_PRJ)
adaopts -strict -p $(CONTAINER_PRJ)
adaopts -strict -lp $(OBJECTADA)\apilib
adareg $(ASNIP_SRC)\*.spc
adareg $(ASNIP_SRC)\*.bdy
adareg $(ASNIP_SRC)\*.ada
adareg $(ASNIP_SRC)\$(OP_SYS)\*.bdy
$(ASNIP_PRJ):
mkdir $(ASNIP_PRJ)
force:
clean:
$(delete) doc\asnip.l
$(delete) doc\asnip.html