16 lines
335 B
Bash
Executable File
16 lines
335 B
Bash
Executable File
#!/bin/bash
|
|
|
|
root_path="$PWD"
|
|
build_path="$root_path/build"
|
|
src_path="$root_path/src"
|
|
|
|
mkdir -p $build_path
|
|
cd $build_path
|
|
rm *
|
|
|
|
clang -o sy.ld_meta $src_path/symbol_set.ld_meta.c -I$src_path/mr4th
|
|
|
|
clang -c -o example1.o $src_path/example1.c
|
|
./sy.ld_meta --out:example1_sy.ld example1.o
|
|
clang -o example1 example1.o -T example1_sy.ld
|