forked from KallistiOS/KallistiOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (38 loc) · 1.19 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
# KallistiOS ##version##
#
# Root Makefile
# Copyright (C) 2003 Dan Potter
#
# Make sure things compile nice and cleanly. We don't necessarily want to push
# these flags out on to user code, but it's a good idea to keep them around for
# compiling all of KOS proper.
# I expect everyone to keep their code warning free. Don't make me add -Werror
# here too. ;-)
KOS_CFLAGS += -Wextra -Wno-deprecated
# Add stuff to DIRS to auto-compile it with the big tree.
DIRS = utils
DIRS += kernel addons # examples
# Detect a non-working or missing environ.sh file.
ifndef KOS_BASE
error:
@echo You don\'t seem to have a working environ.sh file. Please take a look at
@echo doc/README for more info.
@exit 0
endif
all:
for i in $(DIRS); do $(KOS_MAKE) -C $$i || exit -1; done
clean:
for i in $(DIRS); do $(KOS_MAKE) -C $$i clean || exit -1; done
distclean: clean
-rm -f lib/$(KOS_ARCH)/*
-rm -f addons/lib/$(KOS_ARCH)/*
kos-ports_all:
$(KOS_PORTS)/utils/build-all.sh
kos-ports_clean:
$(KOS_PORTS)/utils/clean-all.sh
kos-ports_distclean: kos-ports_clean
$(KOS_PORTS)/utils/uninstall-all.sh
all_auto_kos_base:
$(KOS_MAKE) all KOS_BASE=$(CURDIR)
clean_auto_kos_base:
$(KOS_MAKE) clean KOS_BASE=$(CURDIR)