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.
9 # Export IDENT for sub-makefiles
19 export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
20 export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
21 export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
22 export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
24 include $(MakeInc_cmd)
25 include $(MakeInc_def)
30 CFLAGS+= -imacros meta_features.h -DKERNEL -DLIBSA_KERNEL_PRIVATE \
31 -Wall -Wno-four-char-constants -fno-common $(CFLAGS_INLINE_CONFIG)
36 # Directories for mig generated files
41 # Make sure we don't remove this by accident if interrupted at the wrong
47 # Theses macros are filled in by the config program depending on the
48 # current configuration. The MACHDEP macro is replaced by the
49 # contents of the machine dependent makefile template and the others
50 # are replaced by the corresponding symbol definitions for the
68 # OBJSDEPS is the set of files (defined in the machine dependent
69 # template if necessary) which all objects depend on (such as an
70 # in-line assembler expansion filter)
79 $(COMPONENT).o: $(LDOBJS)
81 $(_v)$(LD) $(LDFLAGS_COMPONENT) -o $(COMPONENT).o ${LDOBJS} $(LIBKLD)
82 $(_v)$(SEG_HACK) __KLD $(COMPONENT).o -o $(COMPONENT)_kld.o
83 $(_v)$(LD) $(LDFLAGS_COMPONENT) $(COMPONENT)_kld.o -o $(COMPONENT).o
85 do_all: $(COMPONENT).o
88 $(_v)${MD} -u Makedep -f -d `ls *.d`
90 do_build_all: do_depend
94 include $(MakeInc_rule)
95 include $(MakeInc_dir)