-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
44 lines (34 loc) · 1001 Bytes
/
Makefile
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
export COFUOS_ROOT:=$(CURDIR)
export DEFINES:=COFUOS
export CC_OPTIONS= -g -std=c++14 -Og -masm=intel -ffreestanding -fno-exceptions -fno-rtti -Wall -Wno-invalid-offsetof -Werror=return-type -nostdlib -m64 -fmacro-prefix-map="$(COFUOS_ROOT)"="."
# change variables below for different configuration
export VHD_PATH=$(COFUOS_ROOT)/COFUOS.vhd
export MINGW_CC=mingw-gcc
export MINGW_LD=mingw-ld
export MINGW_AR=mingw-ar
export CC=g++
export NASM=nasm
export OBJCOPY=objcopy
export CP=cp
all: boot COFUOS app
boot: make_boot
@cd boot && $(MAKE) $@
util:
@cd util && $(MAKE) $@
COFUOS: util
@cd kernel && $(MAKE) $@
font:
@cd tools/font_maker && $(MAKE) $@
make_boot:
@cd tools/make_boot && $(MAKE) $@
app: util font
@cd app && $(MAKE) $@
clean:
@cd boot && $(MAKE) clean
@cd kernel && $(MAKE) clean
@cd tools/make_boot && $(MAKE) clean
@cd tools/font_maker && $(MAKE) clean
@cd app && $(MAKE) clean
help:
@echo "help text"
.PHONY: all boot util font make_boot COFUOS app clean help