Diff markup
001 # For cross-compilation and/or installations w 001 # For cross-compilation and/or installations without grub available,
002 # copy this file as .mkvars to the root direct 002 # copy this file as .mkvars to the root directory of the SOS sources,
003 # and customize the CC/LD/... variables. You s 003 # and customize the CC/LD/... variables. You still need the mtools
004 # installed and running 004 # installed and running
005 005
006 CC := i586-gnu-gcc 006 CC := i586-gnu-gcc
007 LD := i586-gnu-ld 007 LD := i586-gnu-ld
008 OBJCOPY := i586-gnu-objcopy 008 OBJCOPY := i586-gnu-objcopy
009 CFLAGS += -O3 !! 009 CFLAGS += -g
>> 010 LIBGCC := $(shell $(CC) -print-libgcc-file-name) # To benefit from FP/64bits artihm.
010 011
011 # Configuration of mtools 012 # Configuration of mtools
012 MTOOLSRC = extra/mtoolsrc 013 MTOOLSRC = extra/mtoolsrc
013 export MTOOLSRC 014 export MTOOLSRC
014 015
015 $(MULTIBOOT_IMAGE): $(KERNEL_OBJ) menu.txt 016 $(MULTIBOOT_IMAGE): $(KERNEL_OBJ) menu.txt
016 gzip -dc < extra/grub.img.gz > $@ 017 gzip -dc < extra/grub.img.gz > $@
017 mcopy menu.txt v:/boot/grub/ 018 mcopy menu.txt v:/boot/grub/
018 mmd v:/system 019 mmd v:/system
019 mcopy sos.elf v:/system/sos.elf 020 mcopy sos.elf v:/system/sos.elf
020 021
021 menu.txt: 022 menu.txt:
022 echo timeout 0 > $@ 023 echo timeout 0 > $@
023 echo default 0 >> $@ 024 echo default 0 >> $@
024 echo title SOS >> $@ 025 echo title SOS >> $@
025 echo "root (fd0)" >> $@ 026 echo "root (fd0)" >> $@
026 echo kernel /system/sos.elf >> $@ 027 echo kernel /system/sos.elf >> $@
027 028
028 runbochs: all 029 runbochs: all
029 echo c | bochs -q 030 echo c | bochs -q