|
Revision 1728, 0.6 KB
(checked in by mwhitworth, 3 years ago)
|
|
Add to formatting.
|
| Line | |
|---|
| 1 | # Tweakables. |
|---|
| 2 | STRICT = n |
|---|
| 3 | |
|---|
| 4 | ifeq ($(STRICT), y) |
|---|
| 5 | CFLAGS += -Werror |
|---|
| 6 | endif |
|---|
| 7 | |
|---|
| 8 | BASE_CFLAGS = -nostdinc -ffreestanding -fno-builtin \ |
|---|
| 9 | -fno-leading-underscore -O2 -Wall -fno-stack-protector -m32 |
|---|
| 10 | CFLAGS += -I$(DEPTH)include -I$(DEPTH)librtl -I$(DEPTH)posix/include |
|---|
| 11 | ASFLAGS = |
|---|
| 12 | RM = rm -f |
|---|
| 13 | |
|---|
| 14 | BASE_LDFLAGS = -nodefaultlibs -nostdlib -m32 -Wl,--hash-style=gnu |
|---|
| 15 | LD = @echo " \033[36mLINK $^ -o $@"; tput sgr0; $(CC) $(BASE_LDFLAGS) -Bdynamic -L$(DEPTH)/libc -Wl,-llinker -Wl,-I/System/Runtime/liblinker.so |
|---|
| 16 | |
|---|
| 17 | LD_SHARED = $(LD) -shared $(DEPTH)/libc/init/crt_begin.o $(DEPTH)/libc/init/crt_end.o |
|---|