2020-11-06 15:59:59 +01:00
|
|
|
SVN_PROGR:=../../../
|
|
|
|
SVN_BCC32:=$(SVN_PROGR)/bcc32
|
2020-11-06 14:40:38 +01:00
|
|
|
T2FASM:=$(SVN_BCC32)/t2fasm
|
|
|
|
INCLUDE:=$(SVN_BCC32)/include
|
|
|
|
|
|
|
|
# Path to Bin folder
|
|
|
|
KOS32_BCC:=/home/autobuild/borlandcpp/bin
|
|
|
|
|
|
|
|
# Filename
|
|
|
|
FN:=hello
|
|
|
|
|
2020-11-06 15:59:59 +01:00
|
|
|
hello_world: kos_make
|
2020-11-06 14:40:38 +01:00
|
|
|
wine $(KOS32_BCC)/kos32-bcc -S -v- -R- -6 -a4 -O2 -Og -Oi -Ov -OS -k- -D__KOLIBRI__ -I$(INCLUDE) $(FN).cpp
|
|
|
|
echo 'include "kos_make.inc"' > f_$(FN).asm
|
|
|
|
$(T2FASM)/t2fasm < $(FN).asm >> f_$(FN).asm
|
|
|
|
fasm f_$(FN).asm $(FN).kex
|
|
|
|
|
|
|
|
rm f_$(FN).asm
|
|
|
|
rm $(FN).asm
|
2020-11-06 15:59:59 +01:00
|
|
|
rm kos_make.inc
|
|
|
|
|
|
|
|
kos_make:
|
|
|
|
echo 'STACKSIZE equ 102400 \n HEAPSIZE equ 102400 \n include "$(SVN_PROGR)/proc32.inc" \ninclude "$(INCLUDE)/kos_start.inc" \n include "$(INCLUDE)/kos_func.inc" \n include "$(INCLUDE)/kos_heap.inc"' > kos_make.inc
|