]> git.saurik.com Git - apple/xnu.git/blob - iokit/conf/tools/doconf/Makefile
xnu-123.5.tar.gz
[apple/xnu.git] / iokit / conf / tools / doconf / Makefile
1 export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
2 export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
3 export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
4 export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
5
6
7 include $(MakeInc_cmd)
8 include $(MakeInc_def)
9
10 COMP_SUBDIRS = \
11
12 INST_SUBDIRS = \
13
14
15 #
16 # Who and where
17 #
18 BINDIR=
19 DSTDIR= $(strip $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)/)
20 PROGRAM= $(DSTDIR)doconf
21
22 #
23 # How to install it
24 #
25 IFLAGS= -c -m 555
26
27 $(PROGRAM): $(DSTDIR)% : $(SOURCE)%.csh
28 @echo "[ $(SOURCE) ] make setup_build_all $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)";
29 -$(RM) $(RMFLAGS) $(notdir $(PROGRAM)).VERS
30 sed -e "s/#PROGRAM.*/#`vers_string $(notdir $(PROGRAM))`/" \
31 < $< >$(notdir $(PROGRAM)).VERS;
32 install $(IFLAGS) $(notdir $(PROGRAM)).VERS $(PROGRAM);
33 -$(RM) $(RMFLAGS) $(notdir $(PROGRAM)).VERS;
34
35 do_build_setup: $(PROGRAM)
36
37 do_build_all:
38 @echo "[ $(SOURCE) ] make do_build_all $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"
39
40 setup_build_install:
41 @echo "[ $(SOURCE) ] make setup_build_all $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"
42
43 do_build_install:
44 @echo "[ $(SOURCE) ] make do_build_all $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"
45
46 include $(MakeInc_rule)
47 include $(MakeInc_dir)
48
49