Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (12 sloc) 366 Bytes
CC=arm-linux-gnueabi-gcc
CFLAGS=-ansi -pedantic -Wall -Wextra -march=armv6 -msoft-float -fPIC -mapcs-frame -ffreestanding
LDFLAGS=-nostdlib -N -Ttext=0x10000
kernel.elf: bootstrap.o kernel.o context_switch.o syscalls.o
.PHONY: clean
clean:
$(RM) *.elf *.o
.SUFFIXES: .s .o .elf
.s.o:
$(CC) $(CFLAGS) -o $@ -c $^
.o.elf:
$(CC) $(LDFLAGS) -o $@ $^ -lgcc -lc