feat: wrapper function for bootstraping user program
[lunaix-os.git] / lunaix-os / config / make-cc
1 CC := i686-elf-gcc
2 AS := i686-elf-as
3 AR := i686-elf-ar
4
5
6 ARCH_OPT := -D__ARCH_IA32 -include flags.h
7 O := -O2
8 W := -Wall -Wextra -Wno-unknown-pragmas \
9                 -Wno-unused-function \
10                 -Wno-unused-but-set-variable \
11                 -Wno-unused-parameter \
12                 -Wno-unused-variable\
13                 -Werror=incompatible-pointer-types
14
15 OFLAGS := -fno-gcse\
16                   -fno-gcse-lm\
17                   -fno-cse-follow-jumps\
18                   -fno-cse-skip-blocks\
19                   -fno-optimize-strlen\
20                   -fno-tree-builtin-call-dce 
21
22 CFLAGS := -std=gnu99 -ffreestanding $(O) $(OFLAGS) $(W) $(ARCH_OPT)
23 LDFLAGS := -ffreestanding $(O) -nostdlib -lgcc