33 lines
646 B
Bash
Executable File
33 lines
646 B
Bash
Executable File
#!/bin/bash
|
|
|
|
###############
|
|
# SETUP PATHS #
|
|
###############
|
|
|
|
root_path="$PWD"
|
|
build_path="$root_path/build"
|
|
src_path="$root_path"
|
|
examples_path="$root_path/examples"
|
|
|
|
###############
|
|
# SETUP BUILD #
|
|
###############
|
|
|
|
mkdir -p $build_path
|
|
cd $build_path
|
|
rm *
|
|
|
|
######################
|
|
# BUILD META PROGRAM #
|
|
######################
|
|
|
|
clang -o sy.ld_meta $src_path/symbol_set.ld_meta.c -I$src_path/mr4th
|
|
|
|
#######################
|
|
# BUILD hello_world.c #
|
|
#######################
|
|
|
|
clang -c -o hello_world.o $examples_path/hello_world.c -I$src_path
|
|
./sy.ld_meta --out:hello_world_sy.ld hello_world.o
|
|
clang -o hello_world hello_world.o -T hello_world_sy.ld
|