summaryrefslogblamecommitdiff
path: root/Makefile
blob: 6a014ec43a955e80ceac4af8a9b67f866de2cef9 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                 
                                                      
 


                      

                                                         






                                         


                                                         



                                           


                                                         





                                              
                       













                                        
.PHONY: clean, mrproper, Init.rfs, floppy, commit

Projects = kernel library modules/manager modules/test

Floppy = Grapes.fl.img

all:
	@for p in $(Projects); do \
		echo ""; echo "----------------------"; \
		echo "=> Building $$p"; \
		make -C src/$$p -s; \
	done

rebuild: mrproper all

clean:
	@for p in $(Projects); do \
		echo ""; echo "----------------------"; \
		echo "=> Cleaning $$p"; \
		make -C src/$$p clean -s; \
	done

mrproper:
	@for p in $(Projects); do \
		echo ""; echo "----------------------"; \
		echo "=> Cleaning $$p"; \
		make -C src/$$p mrproper -s; \
	done

commit: mrproper
	git add .
	git commit -a; exit 0
	git push origin

floppy:
	mkdir mnt; exit 0
	sudo mount $(Floppy) mnt -o loop
	sudo ./copy_fdd.sh
	sleep 0.3
	sudo umount mnt


bochs: all floppy
	bochs -f bochs.cfg

qemu: all floppy
	qemu -fda $(Floppy) -m 8