Change cross-compiler to i386-myos
This commit is contained in:
parent
df55e66736
commit
1727e2c44b
@ -1,7 +1,7 @@
|
|||||||
C_SOURCES = $(wildcard *.c)
|
C_SOURCES = $(wildcard *.c)
|
||||||
OBJ = $(C_SOURCES:.c=.o )
|
OBJ = $(C_SOURCES:.c=.o )
|
||||||
CFLAGS = -Wall -g --sysroot=../sysroot -isystem=/usr/include -nostdlib
|
CFLAGS = -Wall -g --sysroot=../sysroot -isystem=/usr/include -nostdlib
|
||||||
CC = i386-elf-gcc
|
CC = i386-myos-gcc
|
||||||
|
|
||||||
fsdrv: $(OBJ) ../libc/*
|
fsdrv: $(OBJ) ../libc/*
|
||||||
@$(CC) -z max-page-size=4096 -Xlinker -n -o $@ $(CFLAGS) $(OBJ) ../kernel/start.o ../sysroot/usr/lib/libc.a -lgcc
|
@$(CC) -z max-page-size=4096 -Xlinker -n -o $@ $(CFLAGS) $(OBJ) ../kernel/start.o ../sysroot/usr/lib/libc.a -lgcc
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
C_SOURCES = $(wildcard *.c)
|
C_SOURCES = $(wildcard *.c)
|
||||||
OBJ = $(C_SOURCES:.c=.o )
|
OBJ = $(C_SOURCES:.c=.o )
|
||||||
CFLAGS = -Wall -g --sysroot=../sysroot -isystem=/usr/include -nostdlib
|
CFLAGS = -Wall -g
|
||||||
CC = i386-elf-gcc
|
CC = i386-myos-gcc
|
||||||
|
|
||||||
init: $(OBJ) ../libc/*
|
init: $(OBJ) ../libc/*
|
||||||
@$(CC) -z max-page-size=4096 -Xlinker -n -o $@ $(CFLAGS) $(OBJ) ../kernel/start.o ../sysroot/usr/lib/libc.a -lgcc
|
@$(CC) -o $@ $(CFLAGS) $(OBJ)
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
@$(CC) $(CFLAGS) -c $< -o $@
|
@$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
@ -1 +1 @@
|
|||||||
i386-elf-ar
|
i386-myos-ar
|
||||||
|
@ -1 +1 @@
|
|||||||
i386-elf-as
|
i386-myos-as
|
||||||
|
@ -1 +1 @@
|
|||||||
i386-elf-gcc
|
i386-myos-gcc
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
C_SOURCES = $(wildcard *.c)
|
C_SOURCES = $(wildcard *.c)
|
||||||
OBJ = $(C_SOURCES:.c=.o)
|
OBJ = $(C_SOURCES:.c=.o)
|
||||||
CFLAGS = -Wall -g --sysroot=../sysroot -isystem=/usr/include -nostdlib
|
CFLAGS = -Wall -g --sysroot=../sysroot -isystem=/usr/include -nostdlib
|
||||||
CC = i386-elf-gcc
|
CC = i386-myos-gcc
|
||||||
|
|
||||||
vfs: $(OBJ) ../libc/*
|
vfs: $(OBJ) ../libc/*
|
||||||
@$(CC) -z max-page-size=4096 -Xlinker -n -o $@ $(CFLAGS) $(OBJ) ../kernel/start.o ../sysroot/usr/lib/libc.a -lgcc
|
@$(CC) -z max-page-size=4096 -Xlinker -n -o $@ $(CFLAGS) $(OBJ) ../kernel/start.o ../sysroot/usr/lib/libc.a -lgcc
|
||||||
|
Loading…
Reference in New Issue
Block a user