blob: b3566bf953f3e822924f5f74e120f12f91cd5b90 (
plain) (
blame)
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
|
# MIT License, Copyright (c) 2020 Marvin Borner
CFLAGS_OPTIMIZATION = -finline -finline-functions -Ofast
CFLAGS_WARNINGS = -Wall -Wextra -Werror -Wshadow -Wpointer-arith -Wwrite-strings -Wredundant-decls -Wnested-externs -Wformat=2 -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wswitch-default -Wswitch-enum -Wlogical-op -Wunreachable-code -Wundef -Wold-style-definition -pedantic-errors
CFLAGS_DEFAULT = $(CFLAGS_WARNINGS) $(CFLAGS_OPTIMIZATION) -std=c99 -m32 -nostdlib -nostdinc -fno-builtin -fno-profile-generate -fno-omit-frame-pointer -fno-common -mno-red-zone
all: compile
debug: CFLAGS_DEFAULT += -ggdb3 -s
debug: compile
export
compile:
@$(MAKE) clean --no-print-directory -C libc/
@$(MAKE) libc --no-print-directory -C libc/
@echo "Compiled libc"
@$(MAKE) clean --no-print-directory -C libc/
@$(MAKE) libk --no-print-directory -C libc/
@echo "Compiled libk"
@$(MAKE) --no-print-directory -C libgui/
@echo "Compiled libgui"
@$(MAKE) --no-print-directory -C libtxt/
@echo "Compiled libtxt"
@$(MAKE) --no-print-directory -C libnet/
@echo "Compiled libnet"
@$(MAKE) --no-print-directory -C kernel/
@echo "Compiled kernel"
@$(MAKE) --no-print-directory -C boot/
@echo "Compiled boot"
@$(MAKE) --no-print-directory -C apps/
@echo "Compiled apps"
clean:
@find kernel/ apps/ libc/ libtxt/ libgui/ libnet/ boot/ \( -name "*.o" -or -name "*.a" -or -name "*.elf" -or -name "*.bin" \) -type f -delete
|