old-trainOS/Depfile

55 lines
1.8 KiB
Text
Raw Normal View History

2015-08-14 09:58:16 +00:00
#Config
Artifact=kernel
TempDir=obj
SourceDir=asm src
AdditionalObjects=obj/main.o obj/firstcode.o
2015-10-07 11:16:15 +00:00
ExternalObjects=/home/felix/projects/Electronics/build-Electronics-Desktop-Debug/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-07 11:16:15 +00:00
FLAGS=-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-08-14 09:58:16 +00:00
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 09:58:16 +00:00
2015-08-14 11:34:14 +00:00
--
obj/main.o: scripts/main.ts
objcopy -B i386 -I binary -O elf32-i386 \
scripts/main.ts obj/main.o
objcopy \
--redefine-sym _binary_scripts_main_ts_start=mainscript_start \
--redefine-sym _binary_scripts_main_ts_end=mainscript_end \
--redefine-sym _binary_scripts_main_ts_size=mainscript_size \
obj/main.o
obj/firstcode.o: /home/felix/projects/Electronics/first-run.ca
cp /home/felix/projects/Electronics/first-run.ca obj/firstrun.ca
objcopy -B i386 -I binary -O elf32-i386 \
obj/firstrun.ca obj/firstcode.o
objcopy \
--redefine-sym _binary_obj_firstrun_ca_start=firstrun_start \
--redefine-sym _binary_obj_firstrun_ca_end=firstrun_end \
--redefine-sym _binary_obj_firstrun_ca_size=firstrun_size \
obj/firstcode.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