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.
8 export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
9 export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
10 export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
11 export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
13 include $(MakeInc_cmd)
14 include $(MakeInc_def)
19 CFLAGS+= -include meta_features.h -DBSD_KERNEL_PRIVATE
20 SFLAGS+= -include meta_features.h
23 # INCFLAGS to include security prototypes
25 INCFLAGS_MAKEFILE= -I$(SOURCE)/..
28 # Directories for mig generated files
33 # Make sure we don't remove this by accident if interrupted at the wrong
39 # Theses macros are filled in by the config program depending on the
40 # current configuration. The MACHDEP macro is replaced by the
41 # contents of the machine dependent makefile template and the others
42 # are replaced by the corresponding symbol definitions for the
57 # Diagnostic opt-outs. We need to make this list empty.
59 # DO NOT ADD MORE HERE.
62 mac_base.o_CFLAGS_ADD += -Wno-cast-align
63 # -Wno-shorten-64-to-32
64 mac_audit.o_CFLAGS_ADD += -Wno-shorten-64-to-32
65 mac_base.o_CFLAGS_ADD += -Wno-shorten-64-to-32
66 mac_process.o_CFLAGS_ADD += -Wno-shorten-64-to-32
67 # -Wno-sign-conversion
68 mac_base.o_CFLAGS_ADD += -Wno-sign-conversion
69 mac_mach.o_CFLAGS_ADD += -Wno-sign-conversion
70 mac_vfs.o_CFLAGS_ADD += -Wno-sign-conversion
71 mac_vfs_subr.o_CFLAGS_ADD += -Wno-sign-conversion
73 # Rebuild if per-file overrides change
74 ${OBJS}: $(firstword $(MAKEFILE_LIST))
76 # Rebuild if global compile flags change
79 $(_v)$(REPLACECONTENTS) $@ $(KCC) $(CFLAGS) $(INCFLAGS)
82 $(_v)$(REPLACECONTENTS) $@ $(KC++) $(CXXFLAGS) $(INCFLAGS)
85 $(_v)$(REPLACECONTENTS) $@ $(S_KCC) $(SFLAGS) $(INCFLAGS)
87 $(COMPONENT).filelist: $(OBJS)
88 @$(LOG_LDFILELIST) "$(COMPONENT)"
89 $(_v)for obj in ${OBJS}; do \
90 $(ECHO) $(TARGET)/$(CURRENT_KERNEL_CONFIG)/$${obj}; \
91 done > $(COMPONENT).filelist
93 do_all: $(COMPONENT).filelist
99 include $(MakeInc_rule)
100 include $(MakeInc_dir)