1#
2# Mach Operating System
3# Copyright (c) 1986 Carnegie-Mellon University
4# All rights reserved.  The CMU software License Agreement specifies
5# the terms and conditions for use and redistribution.
6#
7
8export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
9export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
10export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
11export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
12
13include $(MakeInc_cmd)
14include $(MakeInc_def)
15
16#
17# CFLAGS
18#
19CFLAGS+= -include meta_features.h -DPEXPERT_KERNEL_PRIVATE
20
21# Objects that don't want -Wcast-align warning (8474835)
22pe_identify_machine.o_CWARNFLAGS_ADD = -Wno-cast-align
23
24#
25# Directories for mig generated files
26#
27COMP_SUBDIRS = 
28
29#
30#  Make sure we don't remove this by accident if interrupted at the wrong
31#  time.
32#
33.PRECIOUS: Makefile
34
35#
36#  Theses macros are filled in by the config program depending on the
37#  current configuration.  The MACHDEP macro is replaced by the
38#  contents of the machine dependent makefile template and the others
39#  are replaced by the corresponding symbol definitions for the
40#  configuration.
41#
42
43%OBJS
44
45%CFILES
46
47%SFILES
48
49%MACHDEP
50
51#
52#  OBJSDEPS is the set of files (defined in the machine dependent
53#  template if necessary) which all objects depend on (such as an
54#  in-line assembler expansion filter)
55#
56${OBJS}: ${OBJSDEPS}
57
58LDOBJS = $(OBJS)
59
60$(COMPONENT).filelist: $(LDOBJS)
61	@echo LDFILELIST $(COMPONENT)
62	$(_v)( for obj in ${LDOBJS}; do	\
63		 echo $(TARGET)/$(CURRENT_KERNEL_CONFIG)/$${obj}; \
64	done; ) > $(COMPONENT).filelist
65
66do_all: $(COMPONENT).filelist
67
68do_build_all:: do_all
69
70%RULES
71
72include $(MakeInc_rule)
73include $(MakeInc_dir)
74