2018-01-30 18:25:44 +01:00
|
|
|
all: freebsd freebsd64 linux native386 clean
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
native386:
|
|
|
|
cc -m32 -c retro.c
|
|
|
|
nasm -f elf 386.s
|
|
|
|
ld -nostdlib -m elf_i386_fbsd -n -T 386.ld 386.o retro.o -o bin/rf.386
|
2018-01-31 19:42:42 +01:00
|
|
|
ld -nostdlib -m elf_i386_fbsd -n -e_start -T 386flat.ld 386.o retro.o -o bin/rf.386flat
|
2018-01-30 18:25:44 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm *.o
|
|
|
|
# rm bin/rf.*
|