Rev 502 | Rev 795 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 502 | Rev 504 | ||
---|---|---|---|
Line 28... | Line 28... | ||
28 | 28 | ||
29 | ## Common compiler flags |
29 | ## Common compiler flags |
30 | # |
30 | # |
31 | 31 | ||
32 | LIBC_PREFIX = . |
32 | LIBC_PREFIX = . |
33 | DEFS = -DARCH=$(ARCH) |
- | |
34 | CFLAGS = -fno-builtin -fomit-frame-pointer -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -nostdlib -nostdinc -I$(LIBC_PREFIX)/include |
- | |
35 | LFLAGS = -M |
- | |
36 | AFLAGS = |
- | |
37 | 33 | ||
38 | ## Setup toolchain |
34 | ## Setup toolchain |
39 | # |
35 | # |
40 | 36 | ||
41 | include $(LIBC_PREFIX)/Makefile.toolchain |
37 | include $(LIBC_PREFIX)/Makefile.toolchain |
42 | 38 | ||
43 | ## Sources |
39 | ## Sources |
44 | # |
40 | # |
45 | 41 | ||
46 | GENERIC_SOURCES = \ |
42 | GENERIC_SOURCES = \ |
47 | generic/libc.c |
43 | generic/libc.c \ |
- | 44 | generic/io.c |
|
48 | 45 | ||
49 | ARCH_SOURCES = \ |
46 | ARCH_SOURCES = \ |
50 | arch/$(ARCH)/entry.s \ |
47 | arch/$(ARCH)/src/entry.s \ |
51 | arch/$(ARCH)/syscall.c |
48 | arch/$(ARCH)/src/syscall.c |
52 | 49 | ||
53 | GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) |
50 | GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) |
54 | ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES))) |
51 | ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES))) |
55 | 52 | ||
56 | .PHONY: all clean depend |
53 | .PHONY: all clean depend |