aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
blob: 02ff1204f4c2de652c3a29e3a6eca0cbc643cef3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
include ../Makefile.config

INCLUDES := -isystem../grub -I../${ARCH} -I../devices
CFLAGS   += ${INCLUDES}
CXXFLAGS += ${INCLUDES}

kernel.SRCS := multiboot2.c mmap.c kernel.cpp mem/vmm.c
kernel.OBJS := conf.h

TESTS += tst/taskqueue tst/roundrobin

include ../rules.mk

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@/$(shell ${CC} --version | head -n1)/' conf.h