-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
63 lines (53 loc) · 2.9 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# makefile [part of the funk project]
#[functional kernel, http://perso.ens-lyon.fr/nicolas.guenot/funk/]
# contents : global makefile for funk
# copyright : (C) 2005 by samuel mimram, samuel thibault
# email : [email protected], [email protected]
###############################################################################
# #
# This program is free software; you can redistribute it and/or #
# modify it under the terms of the GNU General Public License #
# as published by the Free Software Foundation; either version 2 #
# of the License, or (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, write to the Free Software #
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #
# #
###############################################################################
VERSION = $(shell cat VERSION)
DISTFILES = AUTHORS ChangeLog COPYING Makefile README README.Devel TODO VERSION \
$(wildcard bootimg/*.img*) bootimg/Makefile bootimg/bochsrc* bootimg/gdbinit \
src/Makefile \
$(wildcard doc/*) \
src/kernel/Makefile $(wildcard src/kernel/*.ld) \
$(wildcard src/include/*.ml src/include/*.mli) \
$(wildcard src/kernel/mk/*.ml src/kernel/mk/*.mli src/kernel/mk/*.mll src/kernel/mk/*.mly src/kernel/mk/*.c) src/userland/gen_pci_ids.pl \
$(wildcard src/kernel/run/*.c) \
src/kernel/run/i686 $(wildcard src/kernel/run/i386/*.S src/kernel/run/i386/*.c src/kernel/run/i386/*.h) \
$(wildcard src/kernel/run/include/*.h) \
$(wildcard src/servers/*.ml src/servers/*.mli) \
$(wildcard src/userland/*.ml src/userland/*.mli)
.PHONY: doc dist ChangeLog
all doc clean debug:
$(MAKE) -C src $@
int:
$(MAKE) -C src int
$(MAKE) qemu
qemu qemugdb qemu-x86_64 bochs bochsgdb qemulogs qemuconsole qemunet livecd: all
$(MAKE) -C bootimg $@
dist: $(DISTFILES) doc
mkdir funk-$(VERSION)
cp -r --no-dereference --parents $(DISTFILES) funk-$(VERSION)
tar jcvf funk-$(VERSION).tar.bz2 funk-$(VERSION)
rm -rf funk-$(VERSION)
ChangeLog:
svn log > ChangeLog
dist-regression: dist
cp funk-$(VERSION).tar.bz2 /tmp
cd /tmp; tar jxvf funk-$(VERSION).tar.bz2; cd funk-$(VERSION); make