aboutsummaryrefslogblamecommitdiff
path: root/Makefile
blob: fc9a1c99367aafe8f2d3ef0dabd469c1bb7d52d3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                                                                


                                
                                               



                                
                                                       










                                              
 
                  
                              
 




                                                             
 

                                                                 

                                                         
                          

                                   
DIRS = src/common/libkogata src/common/libc src/common/libalgo \
	src/kernel src/lib/libkogata \
	src/sysbin/init src/sysbin/giosrv src/sysbin/login

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

clean:
	for dir in $(DIRS); do \
		$(MAKE) -C $$dir clean;   \
	done

mrproper:
	for dir in $(DIRS); do \
		$(MAKE) -C $$dir mrproper;   \
	done

run_tests: rebuild
	src/tests/run_tests.sh

cdrom.iso: all
	./make_cdrom.sh

run_qemu: cdrom.iso
	qemu-system-i386 -cdrom cdrom.iso -serial stdio -m 16

run_qemu_debug: cdrom.iso
	qemu-system-i386 -cdrom cdrom.iso -serial stdio -s -S &	\
	(sleep 0.1; gdb src/kernel/kernel.bin -x gdb_cmd)

run_bochs_debug: cdrom.iso
	bochs -f bochs_debug.cfg -q