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