]> git.saurik.com Git - apple/xnu.git/blame_incremental - bsd/conf/tools/doconf/Makefile
xnu-792.25.20.tar.gz
[apple/xnu.git] / bsd / conf / tools / doconf / Makefile
... / ...
CommitLineData
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=
19DSTDIR= $(strip $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)/)
20PROGRAM= $(DSTDIR)doconf
21
22#
23# How to install it
24#
25IFLAGS= -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
35do_build_setup: $(PROGRAM)
36
37do_build_all:
38 @echo "[ $(SOURCE) ] make do_build_all $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"
39
40setup_build_install:
41 @echo "[ $(SOURCE) ] make setup_build_all $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"
42
43do_build_install:
44 @echo "[ $(SOURCE) ] make do_build_all $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"
45
46include $(MakeInc_rule)
47include $(MakeInc_dir)
48
49