2019-02-19 14:28:54 +01:00
|
|
|
all: native386 clean
|
|
|
|
|
|
|
|
native386:
|
|
|
|
cp ../../ngaImage nativeImage
|
2019-02-20 16:29:10 +01:00
|
|
|
../../bin/retro-extend nativeImage x86/common.forth x86/cmos-rtc.forth x86/serial.forth x86/display.forth x86/listener.forth x86/Block-Editor.forth
|
2019-02-19 14:28:54 +01:00
|
|
|
../../bin/retro-embedimage nativeImage >image.c
|
2019-02-19 22:24:31 +01:00
|
|
|
cc -fno-pie -m32 -DTARGET_X86 -c retro.c -o retro_qwerty.o
|
|
|
|
cc -fno-pie -m32 -DTARGET_X86 -DUSE_DVORAK -c retro.c -o retro_dvorak.o
|
2019-02-19 14:28:54 +01:00
|
|
|
nasm -f elf 386.s
|
2019-02-19 22:24:31 +01:00
|
|
|
ld -nostdlib -m elf_i386 -n -T 386.ld 386.o retro_qwerty.o -o bin/rnf_qwerty.386
|
|
|
|
ld -nostdlib -m elf_i386 -n -T 386.ld 386.o retro_dvorak.o -o bin/rnf_dvorak.386
|
|
|
|
# ld -nostdlib -m elf_i386 -n -e_start -T 386flat.ld 386.o retro.o -o bin/rf.386flat
|
2018-01-30 18:25:44 +01:00
|
|
|
|
2018-02-10 22:19:51 +01:00
|
|
|
macos:
|
|
|
|
cc -m64 -c retro.c
|
|
|
|
nasm -f macho64 macos.s
|
|
|
|
ld macos.o retro.o -o bin/rf.macos
|
|
|
|
|
2018-01-30 18:25:44 +01:00
|
|
|
freebsd:
|
|
|
|
cc -m32 -c retro.c
|
|
|
|
nasm -f elf fbsd.s
|
|
|
|
ld -nostdlib -m elf_i386_fbsd fbsd.o retro.o -o bin/rf.bsd
|
|
|
|
|
|
|
|
freebsd64:
|
|
|
|
cc -m64 -c retro.c
|
|
|
|
nasm -f elf64 fbsd64.s
|
|
|
|
ld -nostdlib -m elf_x86_64_fbsd fbsd64.o retro.o -o bin/rf.bsd64
|
|
|
|
|
2019-01-14 03:22:09 +01:00
|
|
|
openbsd:
|
2019-01-14 04:26:25 +01:00
|
|
|
cc -m64 -fno-pie -fno-pic -c retro.c
|
2019-01-14 03:22:09 +01:00
|
|
|
nasm -f elf64 obsd64.s
|
2019-01-14 04:26:25 +01:00
|
|
|
cc -fno-pie -fno-pic -e _start -static obsd64.o retro.o -o bin/rf.bsd64
|
2019-01-14 03:22:09 +01:00
|
|
|
|
2018-01-30 18:25:44 +01:00
|
|
|
linux:
|
|
|
|
cc -m32 -c retro.c
|
|
|
|
nasm -f elf linux.s
|
|
|
|
ld -nostdlib -m elf_i386_fbsd linux.o retro.o -o bin/rf.linux
|
|
|
|
# brandelf -t Linux bin/rf.linux
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
2019-01-04 04:29:59 +01:00
|
|
|
rm -f *.o
|
2018-01-30 18:25:44 +01:00
|
|
|
# rm bin/rf.*
|