-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (31 loc) · 940 Bytes
/
Makefile
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
ADAMAIN=b~main.o
BOOT= boot/multiboot.o
PROCESSOR= processor/interrupts.o
INCLUDES= -I. -Iprocessor -Idevice -Iboot -Idemo
GNATFLAGS= -O -i -gnatp -gnatf -gnatX -gnatwcilopru -gnatyacefhiklnoprst
ADAOS= AdaOS
ADAOS= AdaOS
fda: AdaOS
echo Please do a su -c ./install-it.sh
su -c ./install-it.sh
$(ADAOS): $(BOOT) $(PROCESSOR) $(ADAMAIN)
ld -Ttext 100000 -Bstatic -o $@ $+ `gnatbind -t -O $(INCLUDES) boot/main` -L/usr/lib/gcc-lib/i486-linux/2.8.1/adalib -lgnat -lc
clean:
find . -name '*.o' -o -name '*.ali' -o -name '*~' | xargs rm -f
rm -f b~main.*
rm -f $(ADAOS)
rm -f bochsout.txt log.txt
$(ADAMAIN): make_ada_main
.PHONY: make_ada_main
make_ada_main:
gnatmake -c $(GNATFLAGS) $(INCLUDES) boot/main
gnatbind -t $(INCLUDES) boot/main
gnatmake -c b~main
$(BOOT): make_boot
.PHONY: make_boot
make_boot:
cd boot; make; cd -
$(PROCESSOR): make_processor
.PHONY: make_processor
make_processor:
cd processor; make; cd -