+ libarch, libkernel, libserver, libc, libc++, liblightOS++ and libcurses++ are insta...
[lightOS.git] / Makefile
blobb659ba8e803dacc62afbc6e758fa37d578f43c4c
1 ###############################################################################
2 ######### lightOS Makefile ##########
3 ###############################################################################
4 default: all
6 -include Makefile.config
7 -include Makefile.rules
9 .PHONY : doc
11 doc:
12 @rm -rf doc
13 @mkdir doc
14 @doxygen Doxyfile.kernel
15 @doxygen Doxyfile.libc
17 install-headers:
18 @make -C libarch install-headers
19 @make -C libkernel install-headers
20 @make -C libserver install-headers
21 @make -C lib/libc install-headers
22 @make -C lib/libc++ install-headers
23 @make -C lib/lightOS++ install-headers
24 @make -C lib/curses++ install-headers
26 uninstall-headers:
27 @make -C lib/curses++ uninstall-headers
28 @make -C lib/lightOS++ uninstall-headers
29 @make -C lib/libc++ uninstall-headers
30 @make -C lib/libc uninstall-headers
31 @make -C libserver uninstall-headers
32 @make -C libkernel uninstall-headers
33 @make -C libarch uninstall-headers
35 all: install-headers
36 @make -C lib/lightOS all
37 @make -C lib/libc all
38 @make -C lib/lightOS++ all
39 @make -C lib/libc++ all
40 @make -C lib/curses++ all
41 @make -C lib/ports all
42 @make -C kernel all
43 @make -C server all
44 @make -C apps all
46 image:
47 @cd build && ./image.sh $(ARCH)
49 vmware-test:
50 @vmware
52 bochs-test:
53 @./toolchain/$(ARCH)-bochs -f config/bochs-$(ARCH).config
55 bochs-test-iso:
56 @./toolchain/$(ARCH)-bochs -f config/bochs-iso-$(ARCH).config
58 qemu-test:
59 @./toolchain/$(ARCH)-qemu -d int -k de -net nic,model=pcnet -net user -fda build/lightOS-$(ARCH).img -boot a -m 32 -localtime
60 ###-smp 2 -soundhw sb16 -net nic,model=rtl8139 -net user
62 qemu-test-iso:
63 @./toolchain/$(ARCH)-qemu -k de -net nic,model=pcnet -net user -cdrom build/lightOS-$(ARCH).iso -boot d -m 32 -localtime
65 kloc:
66 @sloccount apps/*.cpp apps/shell kernel lib/curses++ lib/libc lib/libc++ lib/lightOS lib/lightOS++ libarch libkernel libserver libsupc++ server
68 clean: uninstall-headers
69 @./clean.sh
70 @./tmpdir.sh $(ARCH) remove