]>
Commit | Line | Data |
---|---|---|
91447636 | 1 | # |
5d5c5d0d | 2 | # Copyright (c) 2000-2004 Apple Computer, Inc. All rights reserved. |
91447636 | 3 | # |
8ad349bb | 4 | # @APPLE_LICENSE_OSREFERENCE_HEADER_START@ |
91447636 | 5 | # |
8ad349bb A |
6 | # This file contains Original Code and/or Modifications of Original Code |
7 | # as defined in and that are subject to the Apple Public Source License | |
8 | # Version 2.0 (the 'License'). You may not use this file except in | |
9 | # compliance with the License. The rights granted to you under the | |
10 | # License may not be used to create, or enable the creation or | |
11 | # redistribution of, unlawful or unlicensed copies of an Apple operating | |
12 | # system, or to circumvent, violate, or enable the circumvention or | |
13 | # violation of, any terms of an Apple operating system software license | |
14 | # agreement. | |
15 | # | |
16 | # Please obtain a copy of the License at | |
17 | # http://www.opensource.apple.com/apsl/ and read it before using this | |
18 | # file. | |
19 | # | |
20 | # The Original Code and all software distributed under the License are | |
21 | # distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
22 | # EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, | |
23 | # INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
24 | # FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. | |
25 | # Please see the License for the specific language governing rights and | |
26 | # limitations under the License. | |
27 | # | |
28 | # @APPLE_LICENSE_OSREFERENCE_HEADER_END@ | |
91447636 A |
29 | # |
30 | ||
1c79356b A |
31 | # |
32 | # Mach Operating System | |
33 | # Copyright (c) 1986 Carnegie-Mellon University | |
34 | # All rights reserved. The CMU software License Agreement specifies | |
35 | # the terms and conditions for use and redistribution. | |
36 | # | |
37 | ||
38 | # | |
39 | # Export IDENT for sub-makefiles | |
40 | # | |
41 | export IDENT | |
42 | ||
1c79356b A |
43 | export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd |
44 | export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def | |
45 | export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule | |
46 | export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir | |
47 | ||
48 | include $(MakeInc_cmd) | |
49 | include $(MakeInc_def) | |
50 | ||
51 | # | |
52 | # XXX: CFLAGS | |
53 | # | |
9bccf70c A |
54 | CFLAGS+= -imacros meta_features.h -DARCH_PRIVATE -DKERNEL -DDRIVER_PRIVATE \ |
55 | -D_KERNEL_BUILD -DKERNEL_BUILD -DMACH_KERNEL -DBSD_BUILD \ | |
56 | -DBSD_KERNEL_PRIVATE -DNCPUS=1 -Wno-four-char-constants -fpascal-strings \ | |
91447636 | 57 | -D__APPLE__ -DLP64KERN=1 -DLP64_DEBUG=0 -I. |
1c79356b | 58 | |
0b4e3aa0 A |
59 | # XXX: ld flags for bsd.o |
60 | export LDFLAGS_COMPONENT += -keep_private_externs | |
61 | ||
1c79356b A |
62 | # |
63 | # Directories for mig generated files | |
64 | # | |
65 | COMP_SUBDIRS = | |
66 | ||
67 | # | |
68 | # Make sure we don't remove this by accident if interrupted at the wrong | |
69 | # time. | |
70 | # | |
71 | .PRECIOUS: Makefile | |
72 | ||
1c79356b A |
73 | # |
74 | # Theses macros are filled in by the config program depending on the | |
75 | # current configuration. The MACHDEP macro is replaced by the | |
76 | # contents of the machine dependent makefile template and the others | |
77 | # are replaced by the corresponding symbol definitions for the | |
78 | # configuration. | |
79 | # | |
80 | ||
81 | %OBJS | |
82 | ||
83 | %CFILES | |
84 | ||
85 | %MFILES | |
86 | ||
87 | %SFILES | |
88 | ||
89 | %BFILES | |
90 | ||
91 | %ORDERED | |
92 | %MACHDEP | |
93 | ||
55e303ae A |
94 | # |
95 | # This rule insures that the subr_prof.c does NOT get compiled with | |
96 | # profiling. It implements mcount() and profiling it leads to recursion. | |
97 | # | |
98 | ||
99 | subr_prof.o_CFLAGS_RM = -pg | |
100 | ||
1c79356b A |
101 | # |
102 | # OBJSDEPS is the set of files (defined in the machine dependent | |
103 | # template if necessary) which all objects depend on (such as an | |
104 | # in-line assembler expansion filter) | |
105 | # | |
106 | ${OBJS}: ${OBJSDEPS} | |
107 | ||
108 | ||
109 | %LOAD | |
110 | ||
111 | LDOBJS = $(OBJS) | |
112 | ||
113 | $(COMPONENT).o: $(LDOBJS) | |
114 | @echo "[ creating $(COMPONENT).o ]" | |
1c79356b | 115 | @echo [ updating $(COMPONENT).o ${BSD_KERNEL_CONFIG} ] |
91447636 | 116 | $(LD) $(LDFLAGS_COMPONENT) -o $(COMPONENT).o ${LDOBJS} |
1c79356b A |
117 | |
118 | do_depend: do_all | |
119 | ${MD} -u Makedep -f -d `ls *.d`; | |
120 | ||
121 | do_all: $(COMPONENT).o | |
122 | ||
123 | do_build_all: do_depend | |
124 | ||
125 | %RULES | |
126 | ||
1c79356b A |
127 | include $(MakeInc_rule) |
128 | include $(MakeInc_dir) | |
129 |