fb:porticula NoPaste
Sannaj's Kernel Makefile
Uploader: | Sannaj |
Datum/Zeit: | 17.02.2012 17:35:56 |
# SANNAJ's kernel make file
SRCS = $(shell find -name '*.[cS]')
OBJS = $(addsuffix .o,$(basename $(SRCS)))
CC = gcc
BC = fbc
LD = ld
ASFLAGS = -m32
CFLAGS = -g -masm=intel
BFLAGS =
LDFLAGS = -melf_i386 -Tkernel.ld
kernel: $(OBJS)
$(LD) $(LDFLAGS) -o $@ $^
%.o: %.bas
$(BC) $(BFLAGS) -c $^
%.o: %.S
$(CC) $(ASFLAGS) -c -o $@ $^
clean:
rm $(OBJS)
.PHONY: clean