aboutsummaryrefslogblamecommitdiff
path: root/Makefile
blob: fd1bdc08e5bc485ee4874a6a30f9b73a1119e9e7 (plain) (tree)
1
2
3
4
5
6
    
           

      
              
 









                                                                                      
                  
 
               
 
          
                                                          
                
 
             
                                                                        
 
                   
                                                                                         

                                                         
                    

                                   
all:
	bam

clean:
	bam -c

analyze:
	scan-build -V bam

reanalyze: clean analyze

splint:
	splint -I src/common/include src/common/*/*.c
	splint -I src/common/include -I src/kernel/include src/kernel/*/*.c
	splint -I src/common/include -I src/lib/include src/lib/*/*.c src/sysbin/*/*.c

rebuild: clean all

mrproper: clean

run_tests:
	rm build/tests/*.log build/tests/*.log.err || true
	bam test

run_qemu: all
	qemu-system-i386 -cdrom cdrom.iso -serial stdio -m 12 </dev/null

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

run_bochs_debug: all
	bochs -f bochs_debug.cfg -q