Makefile_boot 4.18 KB
Newer Older
1

2
all: ../StdEnv/Clean\ System\ Files/_startup.o ../StdEnv/Clean\ System\ Files/_startupProfile.o ../StdEnv/Clean\ System\ Files/_startupTrace.o ../exe/cg ../StdEnv/Clean\ System\ Files/_system.o ../bin/patch_bin ../bin/clm clm/clms ../exe/linker ../exe/cocl ../bin/htoclean ../bin/BatchBuild ../bin/cpm
3

4
5
../StdEnv/Clean\ System\ Files/_startup.o: RuntimeSystem/_startup.o
	cp RuntimeSystem/_startup.o ../StdEnv/Clean\ System\ Files/_startup.o
6

7
8
../StdEnv/Clean\ System\ Files/_startupTrace.o: RuntimeSystem/_startupProfile.o
	cp RuntimeSystem/_startupProfile.o ../StdEnv/Clean\ System\ Files/_startupProfile.o
9

10
11
../StdEnv/Clean\ System\ Files/_startupTrace.o: RuntimeSystem/_startupTrace.o
	cp RuntimeSystem/_startupTrace.o ../StdEnv/Clean\ System\ Files/_startupTrace.o
12

13
14
15
16
17
18
19
20
RuntimeSystem/_startup.o:
	cd RuntimeSystem ; chmod +x ./remove_tmp_files_linux ; ./remove_tmp_files_linux ; make -f Makefile.linux

RuntimeSystem/_startupProfile.o:
	cd RuntimeSystem ; chmod +x ./remove_tmp_files_linux ; ./remove_tmp_files_linux ; make -f Makefileprofile.linux

RuntimeSystem/_startupTrace.o:
	cd RuntimeSystem ; chmod +x ./remove_tmp_files_linux ; ./remove_tmp_files_linux ; make -f Makefiletrace.linux
21
22
23
24
25
26
27
28
29

../StdEnv/Clean\ System\ Files/_system.o: ../exe/cg
	cd ../StdEnv/Clean\ System\ Files ; ../../exe/cg _system

../exe/cg: CodeGenerator/cg
	cp CodeGenerator/cg ../exe/cg

CodeGenerator/cg:
	cd CodeGenerator; \
30
	$(MAKE) -f Makefile.linux
31

32
33
../bin/patch_bin: clm/patch_bin
	cp clm/patch_bin ../bin/patch_bin
34

35
36
37
/clm/patch_bin:
	cd clm; \
	$(MAKE) -f Makefile.linux patch_bin
38

39
40
../bin/clm: clm/clm
	cp clm/clm ../bin/clm
41
42
43
	../bin/patch_bin ../bin/clm CLEANLIB $(CWD)/../exe
	../bin/patch_bin ../bin/clm CLEANPATH $(CWD)/../StdEnv

44
45
46
clm/clm:
	cd clm; \
	$(MAKE) -f Makefile.linux clm
47

48
49
50
51
52
clm/clms:
	cd clm; \
	$(MAKE) -f Makefile.linux clms
	../bin/patch_bin clm/clms CLEANLIB $(CWD)/../exe
	../bin/patch_bin clm/clms CLEANPATH $(CWD)/../StdEnv
53

54
55
clean-libraries/Libraries/ArgEnvUnix/ArgEnvC.o:
	cd clean-libraries/Libraries/ArgEnvUnix; make ArgEnvC.o
56
57
58
59

compiler/main/Unix/set_return_code_c.o:
	cd compiler/main/Unix; make all

60
61
62
63
64
65
66
67
68
../exe/linker: elf_linker/linker
	cp elf_linker/linker ../exe/linker

elf_linker/linker: clean-libraries/Libraries/ArgEnvUnix/ArgEnvC.o compiler/main/Unix/set_return_code_c.o
	cd elf_linker; \
	../clm/clms -I ia32 -I ../clean-libraries/Libraries/ArgEnvUnix -I ../compiler/main/Unix -s 4m -h 30m -nt -nr linker -o linker; \
	cp linker ../../exe/linker; \
	../../bin/clm -I ia32 -I ../clean-libraries/Libraries/ArgEnvUnix -I ../compiler/main/Unix -s 4m -h 30m -nt -nr linker -o linker

69
70
71
../exe/cocl: compiler/cocl
	cp compiler/cocl ../exe/cocl

72
compiler/cocl: clean-libraries/Libraries/ArgEnvUnix/ArgEnvC.o compiler/main/Unix/set_return_code_c.o
73
	cd compiler; \
74
	cd backendC/CleanCompilerSources; make -f Makefile; cd ../..; \
75
76
	../../bin/clm -O _system; \
	../../bin/clm -nt -nw -ci -ns -nr -I backend -I frontend -I main -I main/Unix -O compare_constructor ; \
77
78
	../../bin/clm -gcm -h 40M -nt -nw -ci -nr -I backend -I frontend -I main -I main/Unix \
	-I ../clean-libraries/Libraries/ArgEnvUnix \
79
80
81
82
83
84
85
86
	-l backendC/CleanCompilerSources/backend.a \
	cocl -o cocl

../bin/htoclean: tools/htoclean/htoclean
	cp tools/htoclean/htoclean ../bin/htoclean

tools/htoclean/htoclean:
	cd tools/htoclean/htoclean\ source\ code; \
87
88
89
90
91
92
93
94
95
96
97
	../../../../bin/clm -I ../../../clean-libraries/Libraries/ArgEnvUnix -h 4m -nt -nr -I unix htoclean -o ../htoclean

../bin/BatchBuild: clean-ide/BatchBuild/BatchBuild
	cp clean-ide/BatchBuild/BatchBuild ../bin/BatchBuild

clean-ide/BatchBuild/BatchBuild:
	cd clean-ide; \
	../../bin/clm -nt -nr -I BatchBuild -I Pm -I Unix -I Unix/Intel -I Util -I Interfaces/LinkerInterface -I ../clean-libraries/Libraries/StdLib -I ../clean-libraries/Libraries/Directory -I ../clean-libraries/Libraries/ArgEnvUnix BatchBuild -o BatchBuild/BatchBuild

../bin/cpm: clean-ide/cpm/cpm
	cp clean-ide/cpm/cpm ../bin/cpm
98

99
100
101
clean-ide/cpm/cpm:
	cd clean-ide; \
	../../bin/clm -nt -nr -I cpm -I cpm/Posix -I BatchBuild -I Pm -I Unix -I Unix/Intel -I Util -I Interfaces/LinkerInterface -I ../clean-libraries/Libraries/StdLib -I ../clean-libraries/Libraries/Directory -I ../clean-libraries/Libraries/ArgEnvUnix Cpm -o cpm/cpm
102
103
104
105
106

CWD = $(MCWD)$(GMCWD)
MCWD : sh=pwd
GMCWD = ${shell echo `pwd`}