]> git.saurik.com Git - apple/xnu.git/blame - osfmk/conf/Makefile.ppc
xnu-1486.2.11.tar.gz
[apple/xnu.git] / osfmk / conf / Makefile.ppc
CommitLineData
1c79356b
A
1######################################################################
2#BEGIN Machine dependent Makefile fragment for ppc
3######################################################################
4
2d21ac55
A
5#
6# ppc should be (mostly) warning free
7#
8CFLAGS+= $(WERROR)
9CWARNFLAGS= $(filter-out -Wbad-function-cast, $(CWARNFLAGS_STD))
10
11# Objects that don't compile cleanly:
12OBJS_NO_WERROR= \
13 UNDRequest.o \
14 machine_routines.o \
15 db_examine.o \
16 db_macro.o \
17 db_print.o \
18 db_sym.o \
19 db_variables.o \
20 ppc_disasm.o \
21 db_disasm.o \
22 db_trace.o \
23 db_low_trace.o \
24 gssd_mach.o \
25 kdp_machdep.o
26
27OBJS_WERROR=$(filter-out $(OBJS_NO_WERROR),$(OBJS))
28
29$(OBJS_WERROR): WERROR=-Werror
30
b0d623f7
A
31export bsd_vm.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32
32export device_vm.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32
33export memory_object.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32
34export vm32_user.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32
35export vm_apple_protect.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32
36export vm_debug.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32
37export vm_external.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32
38export vm_fault.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32
39export vm_init.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32
40export vm_kern.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32
41export vm_map.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32
42export vm_object.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32
43export vm_pageout.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32
44export vm_purgeable.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32
45export vm_resident.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32
46export vm_shared_region.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32
47export vm_swapfile_pager.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32
48export vm_user.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32
49
50export default_pager.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32
51export dp_backing_store.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32
52export dp_memory_object.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32
53
1c79356b
A
54#
55# KDB support
56#
57
58makedis: $(SRCROOT)/osfmk/ddb/makedis.c
b0d623f7 59 $(HOST_CC) -Werror -Wall -o $@ $<
1c79356b 60
55e303ae 61ppc_disasm.o_CFLAGS_ADD = -Dperror=db_printf -Dexit=db_error -Dmalloc=db_disasm_malloc
1c79356b 62
91447636 63ppc_disasm.c ppc_disasm.h : $(SRCROOT)/osfmk/ppc/ppc_disasm.i makedis
1c79356b
A
64 ./makedis -w -h ./ppc_disasm.h $(SOURCE_DIR)/osfmk/ppc/ppc_disasm.i > ./ppc_disasm.c
65
1c79356b
A
66
67db_disasm.o : ppc_disasm.h
68
91447636 69# Files that must go in the __HIB segment:
2d21ac55 70UNCONFIGURED_HIB_FILES= \
3a60a9f5 71 hibernate_restore.o
2d21ac55 72HIB_FILES=$(filter $(UNCONFIGURED_HIB_FILES),$(OBJS))
91447636 73
1c79356b
A
74######################################################################
75#END Machine dependent Makefile fragment for ppc
76######################################################################