old-trainOS/Depfile

53 lines
1.4 KiB
Text
Raw Normal View History

2015-08-14 09:58:16 +00:00
#Config
Artifact=kernel
TempDir=obj
SourceDir=asm src csl
AdditionalObjects=obj/main.o
ExternalObjects=conductance/|*.o
2015-08-14 09:58:16 +00:00
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
#TEMPLE=mono /home/felix/projects/temple/bin/Debug/temple.exe
2015-08-14 09:58:16 +00:00
# Flags
2015-10-14 19:09:34 +00:00
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
2015-10-14 19:09:34 +00:00
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
2015-08-14 09:58:16 +00:00
2015-08-14 11:34:14 +00:00
--
2015-10-11 10:48:01 +00:00
TOOLS=/home/felix/projects/Electronics/build-Electronics-Clang-Debug/bin
obj/main.o: scripts/main.cu
2015-10-11 10:48:01 +00:00
$(TOOLS)/copper \
scripts/main.cu > \
scripts/main.cu.spark
2015-10-11 10:48:01 +00:00
$(TOOLS)/spark \
scripts/main.cu.spark \
2015-10-11 10:48:01 +00:00
obj/main.in
objcopy -B i386 -I binary -O elf32-i386 \
2015-10-11 10:48:01 +00:00
obj/main.in obj/main.o
objcopy \
2015-10-11 10:48:01 +00:00
--redefine-sym _binary_obj_main_in_start=mainscript_start \
--redefine-sym _binary_obj_main_in_end=mainscript_end \
--redefine-sym _binary_obj_main_in_size=mainscript_size \
obj/main.o
2015-08-14 11:34:14 +00:00
.PHONY: run
run:
qemu-system-i386 -serial stdio -kernel kernel
.PHONY: debug
debug:
qemu-system-i386 -s -S -serial stdio -kernel kernel