28 lines
1 KiB
Makefile
28 lines
1 KiB
Makefile
# -*- makefile -*-
|
|
LINK_BASE = 0x80010000
|
|
target_machine=qemu-mips
|
|
COMMON_CFLAGS += -march=mips3
|
|
COMMON_ASFLAGS += -march=mips3
|
|
include $(srcdir)/conf/mips.mk
|
|
|
|
pkglib_PROGRAMS = kernel.img
|
|
kernel_img_SOURCES = kern/$(target_cpu)/startup.S \
|
|
kern/main.c kern/device.c kern/$(target_cpu)/init.c \
|
|
kern/$(target_cpu)/$(target_machine)/init.c \
|
|
kern/disk.c kern/dl.c kern/err.c kern/file.c kern/fs.c \
|
|
kern/misc.c kern/mm.c kern/term.c \
|
|
kern/rescue_parser.c kern/rescue_reader.c \
|
|
kern/list.c kern/command.c kern/corecmd.c \
|
|
kern/parser.c kern/partition.c kern/env.c kern/$(target_cpu)/dl.c \
|
|
kern/generic/millisleep.c kern/generic/rtc_get_time_ms.c kern/time.c \
|
|
symlist.c kern/$(target_cpu)/cache.S
|
|
kernel_img_CFLAGS = $(COMMON_CFLAGS)
|
|
kernel_img_ASFLAGS = $(COMMON_ASFLAGS)
|
|
kernel_img_LDFLAGS = $(COMMON_LDFLAGS) -Wl,-N,-S,-Ttext,$(LINK_BASE),-Bstatic
|
|
kernel_img_FORMAT = binary
|
|
|
|
# For serial.mod.
|
|
pkglib_MODULES += serial.mod
|
|
serial_mod_SOURCES = term/serial.c
|
|
serial_mod_CFLAGS = $(COMMON_CFLAGS)
|
|
serial_mod_LDFLAGS = $(COMMON_LDFLAGS)
|