This does not belong here. We'll have to find somewhere else to
[newos.git] / makefile
blob4d88f5788c09b0cc2c0cbd33ca4bcacbbd2873a7
2 # figures out the system
3 include make.syscfg
5 # include top level macros
6 include macros.mk
8 # sub-makefiles have to fill these in
9 ALL_DEPS =
10 CLEAN =
11 FINAL =
12 TOOLS =
13 ALL_OBJS =
15 # includes the config of the build
16 include make.config
17 include make.config.$(ARCH)
19 final: $(FINAL)
21 include apps/makefile
22 include kernel/makefile
23 include kernel/addons/makefile
24 include tools/makefile
25 include lib/makefile
26 include boot/$(ARCH)/makefile
28 clean: $(CLEAN)
29 rm -f $(ALL_OBJS)
30 rm -f $(ALL)
31 rm -f $(FINAL)
33 depsclean:
34 rm -f $(ALL_DEPS)
36 allclean: depsclean clean
37 rm -f $(TOOLS)
39 #$(warning ALL_OBJS = $(ALL_OBJS))
40 #$(warning ALL_DEPS = $(ALL_DEPS))
42 ifeq ($(filter $(MAKECMDGOALS), allclean), )
43 include $(ALL_DEPS)
44 endif