diff options
Diffstat (limited to 'src/build.mk')
-rwxr-xr-x | src/build.mk | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/build.mk b/src/build.mk new file mode 100755 index 0000000..bdc1e3b --- /dev/null +++ b/src/build.mk @@ -0,0 +1,29 @@ +#!../mach + +INCLUDES := -isystem${ROOTDIR}grub -I${ROOTDIR}${ARCH} -I${ROOTDIR}devices +${ARCH}_CFLAGS += ${INCLUDES} +${ARCH}_CXXFLAGS += ${INCLUDES} +${ARCH}_LDFLAGS += -T ${ROOTDIR}${ARCH}/linker.ld + +TARGETBIN += glitch +glitch.OBJS += ${ROOTDIR}${ARCH}/arch.a kernel.a ${ROOTDIR}devices/devs.a ${ROOTDIR}lib/libk.a + +TARGETLIB += kernel +kernel.SRCS := multiboot2.c mmap.c kernel.cpp mem/vmm.c + +HOSTTARGETBIN += sched/test_taskqueue +sched/test_taskqueue.SRCS = sched/test_taskqueue.cc + +HOSTTARGETBIN += sched/test_roundrobin +sched/test_roundrobin.SRCS = sched/test_roundrobin.cc + +TESTS += \ + sched/test_taskqueue sched/test_roundrobin + +kernel.c: conf.h +conf.h: conf.h.in + @echo ' GEN $@' + @cp conf.h.in conf.h + @sed -i 's/@VERSION@/$(shell git describe)/' conf.h + @sed -i 's/@CC@/${${ARCH}_CCID}/' conf.h + |