diff options
author | Alex Auvolat <alex@adnab.me> | 2016-07-13 22:31:46 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2016-07-13 22:31:46 +0200 |
commit | 360da84db0d7165c84d160b518f39cd16006c758 (patch) | |
tree | a6fea5da753ec4ac5a37237cefda52801f9647ac /Makefile | |
parent | 27a6934ea3073c3eaf782cc7615ce4ed0dbf4a18 (diff) | |
download | kogata-360da84db0d7165c84d160b518f39cd16006c758.tar.gz kogata-360da84db0d7165c84d160b518f39cd16006c758.zip |
Migrate to BAM build tool
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 37 |
1 files changed, 10 insertions, 27 deletions
@@ -1,41 +1,24 @@ -DIRS = src/common/libkogata src/common/libc src/common/libalgo \ - src/kernel src/lib/libkogata \ - src/sysbin/init src/sysbin/giosrv src/sysbin/login src/sysbin/terminal src/sysbin/shell \ - res/fonts res/keymaps - all: - for dir in $(DIRS); do \ - $(MAKE) -C $$dir || exit 1; \ - done - -rebuild: - for dir in $(DIRS); do \ - $(MAKE) -C $$dir rebuild || exit 1; \ - done + bam clean: - for dir in $(DIRS); do \ - $(MAKE) -C $$dir clean; \ - done + bam -c -mrproper: - for dir in $(DIRS); do \ - $(MAKE) -C $$dir mrproper; \ - done +rebuild: clean all -run_tests: rebuild - src/tests/run_tests.sh +mrproper: clean -cdrom.iso: all make_cdrom.sh - ./make_cdrom.sh +run_tests: + bam + src/tests/run_tests.sh -run_qemu: cdrom.iso +run_qemu: all qemu-system-i386 -cdrom cdrom.iso -serial stdio -m 12 -run_qemu_debug: cdrom.iso +run_qemu_debug: all qemu-system-i386 -cdrom cdrom.iso -serial stdio -m 12 -s -S & \ (sleep 0.1; gdb src/kernel/kernel.bin -x gdb_cmd) -run_bochs_debug: cdrom.iso +run_bochs_debug: all bochs -f bochs_debug.cfg -q |