diff options
author | Marvin Borner | 2019-10-26 22:45:08 +0200 |
---|---|---|
committer | Marvin Borner | 2019-10-26 22:45:08 +0200 |
commit | 25f1eb375f05883bd499760f4496f4218b5011c9 (patch) | |
tree | 8dc7842ad9efec0ac5521c8e8e06a114b501af09 /Makefile | |
parent | 5d4180c67cea08bb76eebde6b41b8935e60fed98 (diff) |
Using compiler-based include methods
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -23,11 +23,11 @@ build: clean stripped=$$(echo "$${line}" | sed -r 's/\//_/g'); \ stripped=$${stripped#??????}; \ stripped=$${stripped%%?}o; \ - i686-elf-gcc -c ./"$${line}" -o ./build/"$${stripped}" -std=gnu99 -ffreestanding -O3 -Wall -Wextra -Wno-unused-parameter || exit; \ + i686-elf-gcc -c ./"$${line}" -o ./build/"$${stripped}" -I ./src -std=gnu99 -ffreestanding -O3 -Wall -Wextra -Wno-unused-parameter || exit; \ done <./build/tmp; \ rm ./build/tmp; \ - i686-elf-gcc -T ./src/kernel/linker.ld -o ./build/melvix.bin -std=gnu99 -ffreestanding -O2 -nostdlib ./build/*.o || exit; \ + i686-elf-gcc -T ./src/kernel/linker.ld -I ./src -o ./build/melvix.bin -std=gnu99 -ffreestanding -O2 -nostdlib ./build/*.o || exit; \ # Testing if grub-file --is-x86-multiboot ./build/melvix.bin; then \ |