blob: bdc1e3b81d84df4b3067156d9fb65bc9d12479ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
|