/shark/tags/rel_0_4/oslib/mk/gnu.mk |
---|
6,9 → 6,9 |
LIB_PATH = $(BASE)/lib/ |
LIB_DIR = $(BASE)\lib |
C_OPT = -Wall -O -finline-functions -fno-builtin -nostdinc -D__GNU__ -I$(INCL) |
C_OPT = -Wall -O -finline-functions -fno-builtin -nostdinc -D__GNU__ -I$(INCL) -DMAIN=__kernel_init__ |
ASM_OPT = -x assembler-with-cpp -D__GNU__ -I$(INCL) |
LINK_OPT = -Bstatic -Ttext 0x320000 -oformat coff-go32 -s -nostartfiles -nostdlib -L$(LIB_PATH) |
LINK_OPT = -T $(BASE)/mk/os.x -Bstatic -Ttext 0x320000 -oformat coff-go32 -s -nostartfiles -nostdlib -L$(LIB_PATH) |
MKDIR = md |
CP = copy |
/shark/tags/rel_0_4/oslib/mk/linux.mk |
---|
6,7 → 6,7 |
LIB_PATH = $(BASE)/lib/ |
LIB_DIR = $(BASE)/lib |
C_OPT = -Wall -O -finline-functions -fno-builtin -nostdinc -D__LINUX__ -I$(INCL) |
C_OPT = -Wall -O -finline-functions -fno-builtin -nostdinc -D__LINUX__ -DMAIN=__kernel_init__ -I$(INCL) |
ASM_OPT = -x assembler-with-cpp -D__LINUX__ -I$(INCL) |
LINK_OPT = -Bstatic -Ttext 0x220000 -s -nostartfiles -nostdlib -L$(LIB_PATH) |
/shark/tags/rel_0_4/oslib/mk/os.x |
---|
0,0 → 1,25 |
OUTPUT_FORMAT("coff-go32") |
ENTRY(start) |
SECTIONS |
{ |
.text 0x1000+SIZEOF_HEADERS : { |
*(.text) |
etext = . ; _etext = .; |
} |
.data : { |
djgpp_first_ctor = . ; |
*(.ctor) |
djgpp_last_ctor = . ; |
djgpp_first_dtor = . ; |
*(.dtor) |
djgpp_last_dtor = . ; |
*(.data) |
edata = . ; _edata = .; |
} |
.bss SIZEOF(.data) + ADDR(.data) : |
{ |
*(.bss) |
*(COMMON) |
end = . ; _end = .; |
} |
} |
/shark/tags/rel_0_4/oslib/mk/oldgnu.mk |
---|
8,7 → 8,7 |
C_OPT = -Wall -O -finline-functions -fno-builtin -nostdinc -D__GNU__ -D__OLD_GNU__ -I$(INCL) |
ASM_OPT = -x assembler-with-cpp -D__GNU__ -I$(INCL) |
LINK_OPT = -Bstatic -Ttext 0x320000 -oformat coff-go32 -s -nostartfiles -nostdlib -L$(LIB_PATH) |
LINK_OPT = -T $(BASE)/mk/os.x -Bstatic -Ttext 0x320000 -oformat coff-go32 -s -nostartfiles -nostdlib -L$(LIB_PATH) |
MKDIR = md |
CP = copy |