]>
Commit | Line | Data |
---|---|---|
1c79356b A |
1 | ###################################################################### |
2 | #BEGIN Machine dependent Makefile fragment for ppc | |
3 | ###################################################################### | |
4 | ||
2d21ac55 A |
5 | # |
6 | # ppc should be (mostly) warning free | |
7 | # | |
8 | CFLAGS+= $(WERROR) | |
9 | CWARNFLAGS= $(filter-out -Wbad-function-cast, $(CWARNFLAGS_STD)) | |
10 | ||
11 | # Objects that don't compile cleanly: | |
12 | OBJS_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 | ||
27 | OBJS_WERROR=$(filter-out $(OBJS_NO_WERROR),$(OBJS)) | |
28 | ||
29 | $(OBJS_WERROR): WERROR=-Werror | |
30 | ||
b0d623f7 A |
31 | export bsd_vm.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32 |
32 | export device_vm.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32 | |
33 | export memory_object.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32 | |
34 | export vm32_user.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32 | |
35 | export vm_apple_protect.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32 | |
36 | export vm_debug.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32 | |
37 | export vm_external.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32 | |
38 | export vm_fault.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32 | |
39 | export vm_init.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32 | |
40 | export vm_kern.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32 | |
41 | export vm_map.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32 | |
42 | export vm_object.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32 | |
43 | export vm_pageout.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32 | |
44 | export vm_purgeable.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32 | |
45 | export vm_resident.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32 | |
46 | export vm_shared_region.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32 | |
47 | export vm_swapfile_pager.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32 | |
48 | export vm_user.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32 | |
49 | ||
50 | export default_pager.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32 | |
51 | export dp_backing_store.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32 | |
52 | export dp_memory_object.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32 | |
53 | ||
1c79356b A |
54 | # |
55 | # KDB support | |
56 | # | |
57 | ||
58 | makedis: $(SRCROOT)/osfmk/ddb/makedis.c | |
b0d623f7 | 59 | $(HOST_CC) -Werror -Wall -o $@ $< |
1c79356b | 60 | |
55e303ae | 61 | ppc_disasm.o_CFLAGS_ADD = -Dperror=db_printf -Dexit=db_error -Dmalloc=db_disasm_malloc |
1c79356b | 62 | |
91447636 | 63 | ppc_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 | |
67 | db_disasm.o : ppc_disasm.h | |
68 | ||
91447636 | 69 | # Files that must go in the __HIB segment: |
2d21ac55 | 70 | UNCONFIGURED_HIB_FILES= \ |
3a60a9f5 | 71 | hibernate_restore.o |
2d21ac55 | 72 | HIB_FILES=$(filter $(UNCONFIGURED_HIB_FILES),$(OBJS)) |
91447636 | 73 | |
1c79356b A |
74 | ###################################################################### |
75 | #END Machine dependent Makefile fragment for ppc | |
76 | ###################################################################### |