1 # Neatcc top-level Makefile
3 # output architecture: x64, x86, arm
11 @echo
"Neatcc top-level makefile"
13 @echo
" init Initialise git repositories"
14 @echo
" neat Compile the programs"
15 @echo
" pull Update git repositories"
16 @echo
" clean Remove the generated files"
20 @
test -d neatcc || git clone git
://repo.or.cz
/neatcc.git
21 @
test -d neatld || git clone git
://repo.or.cz
/ld.git neatld
22 @
test -d neatlibc || git clone git
://repo.or.cz
/neatlibc.git
23 @
test -d neatas || git clone git
://repo.or.cz
/neatas.git
28 cd neatlibc
&& git pull
33 # compilation the programs
34 @cd neatcc
&& $(MAKE
) OUT
=$(OUT
)
35 @cd neatld
&& $(MAKE
) OUT
=$(OUT
)
36 @cd neatlibc
&& $(MAKE
) OUT
=$(OUT
) CC
=..
/neatcc
/ncc
37 @cd neatrun
&& $(MAKE
) OUT
=$(OUT
) NCC
=..
/_ncc NLD
=..
/_nld NLC
=..
/neatlibc
41 @cp neatrun
/neatcc _neatcc
42 @cd neatcc
&& $(MAKE
) OUT
=$(OUT
) CC
=..
/_neatcc
clean all
43 @cd neatlibc
&& $(MAKE
) OUT
=$(OUT
) CC
=..
/neatcc
/ncc
clean all
44 @cd neatld
&& $(MAKE
) OUT
=$(OUT
) CC
=..
/_neatcc
clean all
45 # setting up neatrun/neatcc
46 @cd neatrun
&& $(MAKE
) OUT
=$(OUT
) CC
=..
/_neatcc NCC
=$(BASE
)/neatcc
/ncc \
47 NLD
=$(BASE
)/neatld
/nld NLC
=$(BASE
)/neatlibc
clean all
50 @cd neatas
&& $(MAKE
) CC
=..
/neatrun
/neatcc OUT
=$(OUT
)
51 @cd neatdbg
&& $(MAKE
) CC
=..
/neatrun
/neatcc OUT
=$(OUT
)
54 @cd neatcc
&& $(MAKE
) clean
55 @cd neatlibc
&& $(MAKE
) clean
56 @cd neatas
&& $(MAKE
) clean
57 @cd neatld
&& $(MAKE
) clean
58 @cd neatrun
&& $(MAKE
) clean
59 @cd neatdbg
&& $(MAKE
) clean