diff options
| author | Druid520 <r.ustydruid520@proton.me> | 2026-08-17 10:47:46 -0700 |
|---|---|---|
| committer | Druid520 <r.ustydruid520@proton.me> | 2026-08-17 10:47:46 -0700 |
| commit | 848c0c6a3fcd3a05a2d8d5fbb3eb550bc423f807 (patch) | |
| tree | ce887d52b87656b16f8b82a2aa95082cd8529428 /mk.conf | |
ADD: charge basics stuff.
Diffstat (limited to 'mk.conf')
| -rw-r--r-- | mk.conf | 23 |
1 files changed, 23 insertions, 0 deletions
| diff --git a/mk.conf b/mk.conf new file mode 100644 index 0000000..8f3ff1f --- /dev/null +++ b/mk.conf | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | src="src" | ||
| 2 | out="out" | ||
| 3 | |||
| 4 | bin="$out/bin" | ||
| 5 | bin_ln="bin" | ||
| 6 | |||
| 7 | note_src="$src/note.s" | ||
| 8 | note_bin="$out/note.o" | ||
| 9 | start_src="$src/start.s" | ||
| 10 | start_bin="$out/start.o" | ||
| 11 | main_src="$src/main.c" | ||
| 12 | main_bin="$out/main.o" | ||
| 13 | |||
| 14 | ln="ln" | ||
| 15 | as="as" | ||
| 16 | ld="ld" | ||
| 17 | ld_cfg="cfg.ld" | ||
| 18 | cc="gcc" | ||
| 19 | |||
| 20 | lnflgs="-sf" | ||
| 21 | asflgs="" | ||
| 22 | ldflgs="-O0 -static -no-pie -T $ld_cfg" | ||
| 23 | ccflgs="-nostdlib -ffreestanding -fno-pie -fno-builtin -std=c99 -O0 -g0" | ||
