Rev 3693 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3693 | Rev 4377 | ||
---|---|---|---|
Line 25... | Line 25... | ||
25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | # |
27 | # |
28 | 28 | ||
29 | include ../../../../version |
29 | include ../../../../version |
30 | include ../../../Makefile.config |
30 | -include ../../../../Makefile.config |
31 | 31 | ||
32 | ## Toolchain configuration |
32 | ## Toolchain configuration |
33 | # |
33 | # |
34 | 34 | ||
35 | ifndef CROSS_PREFIX |
35 | ifndef CROSS_PREFIX |
Line 55... | Line 55... | ||
55 | LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld |
55 | LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld |
56 | OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy |
56 | OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy |
57 | OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump |
57 | OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump |
58 | endif |
58 | endif |
59 | 59 | ||
60 | CFLAGS = -DRELEASE=\"$(RELEASE)\" -I. -I../../../generic -I../../.. -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -pipe |
60 | CFLAGS = -DRELEASE=$(RELEASE) -I. -I../../../generic -I../../.. -imacros ../../../../config.h -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -pipe |
61 | - | ||
62 | ifdef REVISION |
- | |
63 | CFLAGS += "-DREVISION=\"$(REVISION)\"" |
- | |
64 | endif |
- | |
65 | - | ||
66 | ifdef TIMESTAMP |
- | |
67 | CFLAGS += "-DTIMESTAMP=\"$(TIMESTAMP)\"" |
- | |
68 | endif |
- | |
69 | - | ||
70 | ifdef MACHINE |
- | |
71 | CFLAGS += "-DMACHINE=$(MACHINE)" |
- | |
72 | endif |
- | |
73 | 61 | ||
74 | SOURCES = \ |
62 | SOURCES = \ |
75 | main.c \ |
63 | main.c \ |
76 | boot.S \ |
64 | boot.S \ |
77 | asm.S \ |
65 | asm.S \ |
78 | mm.c \ |
66 | mm.c \ |
79 | print/gxemul.c \ |
67 | print/gxemul.c \ |
80 | _components.c \ |
68 | _components.c \ |
81 | ../../../generic/printf.c \ |
69 | ../../../generic/printf.c \ |
- | 70 | ../../../generic/string.c \ |
|
82 | ../../../genarch/division.c |
71 | ../../../genarch/division.c |
83 | 72 | ||
84 | COMPONENTS = \ |
73 | COMPONENTS = \ |
85 | $(KERNELDIR)/kernel.bin \ |
74 | $(KERNELDIR)/kernel.bin \ |
86 | $(USPACEDIR)/srv/ns/ns \ |
75 | $(USPACEDIR)/srv/ns/ns \ |