old-MTGos-old/kernel/GNUmakefile

20 lines
608 B
Text
Raw Normal View History

include ../kernel.settings
SRCS = $(shell find hal/$(arch) -name '*.cpp' -o -name '*.[cS]')
KERNSRCS = $(shell find kernel -name '*.cpp' -o -name '*.c')
#OBJS = $(addsuffix .o,$(basename $(SRCS)))
OBJS = $(addsuffix .o,$(basename $(KERNSRCS)))
LD = $(PREFIX)g++
LDFLAGS = -nostdlib -nodefaultlibs -nostdlib -fno-builtin $(ARCHFLAGS) -T kernel-$(arch).ld -z max-page-size=0x1000
2016-06-17 19:39:43 +00:00
all: hal kernel #uncomment when done with 3ds
$(LD) $(LDFLAGS) -o mtgos $(OBJS) libhal.a -lgcc
hal:
$(MAKE) -C hal
kernel:
$(MAKE) -C kernel
clean:
$(MAKE) -C hal clean
$(MAKE) -C kernel clean
.PHONY: all hal kernel clean