added /dev/dprint
[newos.git] / makefile
blobac26c84b7e496979ec8b639e4a24556e1420813e
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 spotless:
40 rm -rf $(BUILD_DIR)
42 #$(warning ALL_OBJS = $(ALL_OBJS))
43 #$(warning ALL_DEPS = $(ALL_DEPS))
45 ifeq ($(filter $(MAKECMDGOALS), allclean), )
46 include $(ALL_DEPS)
47 endif