2015-08-14 09:58:16 +00:00
|
|
|
#Config
|
|
|
|
Artifact=kernel
|
|
|
|
TempDir=obj
|
|
|
|
SourceDir=asm src
|
|
|
|
Files=trainscript/trainscript.y trainscript/trainscript.l trainscript/tsvm.cpp
|
|
|
|
|
2015-08-14 11:27:04 +00:00
|
|
|
LexUseCpp
|
|
|
|
YaccUseCpp
|
|
|
|
|
2015-08-14 09:58:16 +00:00
|
|
|
# Tools
|
|
|
|
AS=gcc
|
|
|
|
CC=gcc
|
|
|
|
CXX=g++
|
|
|
|
LD=g++
|
|
|
|
LEX=flex
|
|
|
|
YACC=bison
|
|
|
|
|
|
|
|
# Flags
|
|
|
|
FLAGS=-m32 -Dnullptr=0
|
|
|
|
ASFLAGS=
|
|
|
|
CCFLAGS=-g -std=c11 -Dnullptr=0 -Wall -g -fno-stack-protector -ffreestanding -Iinclude
|
|
|
|
CXXFLAGS=-g -std=c++11 -Wall -g -fno-stack-protector -fno-use-cxa-atexit -nostdlib -fno-builtin -fno-rtti -fno-exceptions -fno-leading-underscore -Wall -Wextra -ffreestanding -Wno-unused-function -Iinclude
|
|
|
|
LDFLAGS=-g -m32 -nostdlib -fno-builtin -Tkernel.ld
|
|
|
|
|
2015-08-14 11:34:14 +00:00
|
|
|
--
|
|
|
|
.PHONY: run
|
|
|
|
run:
|
|
|
|
qemu-system-i386 -kernel kernel kernel
|