57 lines
1.4 KiB
Text
57 lines
1.4 KiB
Text
#Config
|
|
Artifact=kernel
|
|
TempDir=obj
|
|
SourceDir=asm src csl
|
|
AdditionalObjects=
|
|
ExternalObjects=conductance/|*.o
|
|
|
|
AdditionalDependencies=obj/main.in obj/keyboard.in
|
|
|
|
LexUseCpp
|
|
YaccUseCpp
|
|
|
|
# Tools
|
|
AS=gcc
|
|
CC=gcc
|
|
CXX=g++
|
|
LD=g++
|
|
LEX=flex
|
|
YACC=bison
|
|
#TEMPLE=mono /home/felix/projects/temple/bin/Debug/temple.exe
|
|
|
|
# Flags
|
|
FLAGS=-g -Wall -Wextra -m32 -DCIRCUIT_OS -Dnullptr=0 -D__cdecl="__attribute__((cdecl))" -mno-sse -mno-sse2 -mno-mmx -I/home/felix/projects/Electronics/Electronics/Conductance -I/home/felix/projects/Electronics/Electronics/Tools
|
|
ASFLAGS=-masm=intel
|
|
CCFLAGS=-std=c11 -Dnullptr=0 -fno-stack-protector -ffreestanding -Iinclude
|
|
CXXFLAGS=-std=c++11 -fno-stack-protector -fno-use-cxa-atexit -nostdlib -fno-builtin -fno-rtti -fno-exceptions -fno-leading-underscore -ffreestanding -Wno-unused-function -Iinclude
|
|
LDFLAGS=-nostdlib -fno-builtin -Tkernel.ld
|
|
|
|
--
|
|
|
|
TOOLS=/home/felix/projects/Electronics/build-Electronics-Clang-Debug/bin
|
|
|
|
obj/main.in: scripts/main.cu
|
|
$(TOOLS)/copper \
|
|
scripts/main.cu > \
|
|
scripts/main.cu.spark
|
|
$(TOOLS)/spark \
|
|
scripts/main.cu.spark \
|
|
obj/main.in
|
|
|
|
obj/keyboard.in: scripts/keyboard.cu
|
|
$(TOOLS)/copper \
|
|
scripts/keyboard.cu > \
|
|
scripts/keyboard.cu.spark
|
|
$(TOOLS)/spark \
|
|
scripts/keyboard.cu.spark \
|
|
obj/keyboard.in
|
|
|
|
QEMUFLAGS=-serial stdio -kernel kernel -initrd obj/main.in,obj/keyboard.in
|
|
|
|
.PHONY: run
|
|
run:
|
|
qemu-system-i386 $(QEMUFLAGS)
|
|
|
|
.PHONY: debug
|
|
debug:
|
|
qemu-system-i386 -s -S $(QEMUFLAGS)
|