Mercurial > hg > Members > taiki > original_os
view Makefile @ 10:50e4b9ca4867
add bootstrap source. Go to 64bit mode.
author | Taiki TAIRA <e095767@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 27 Aug 2012 23:45:31 +0900 |
parents | bd2f9ba6f5f8 |
children | 26b76ada8c13 |
line wrap: on
line source
HOME = /Users/TaikiTAIRA prefix = $(HOME)/cross/COMMON_INSTALL/bin CBC = $(prefix)/elf-cbc-gcc-4.6.0 LD = $(prefix)/x86_64-elf-ld CBCFLAGS = -m32 \ -ffreestanding \ -fno-common \ -fno-builtin \ -fomit-frame-pointer \ -g \ -Wall \ -O2 \ -c \ -o LDFLAGS = -m elf_i386 \ -nostdlib \ -Ttext 0x100000 \ --oformat elf32-i386 \ -o TARGET=cbc_os.elf all: $(TARGET) kernel.o: kernel.cbc $(CBC) $(CBCFLAGS) $@ $^ bootstrap.o: bootstrap.S $(CBC) $(CBCFLAGS) $@ $^ $(TARGET): bootstrap.o kernel.o $(LD) $(LDFLAGS) $@ $^ clean: rm -rf *.o *.elf