]> git.saurik.com Git - apple/xnu.git/blob - security/conf/tools/newvers/Makefile
xnu-1228.tar.gz
[apple/xnu.git] / security / conf / tools / newvers / 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 ifneq ($(MACHINE_CONFIG), DEFAULT)
20 DSTDIR= $(strip $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)_$(MACHINE_CONFIG)/$(COMPONENT)/)
21 else
22 DSTDIR= $(strip $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)/)
23 endif
24 PROGRAM= $(DSTDIR)newvers
25
26 #
27 # How to install it
28 #
29 IFLAGS= -c -m 555
30
31 $(PROGRAM): $(DSTDIR)% : $(SOURCE)%.csh
32 @-$(RM) $(RMFLAGS) $(notdir $(PROGRAM)).VERS
33 @sed -e "s/#PROGRAM.*/#`vers_string $(notdir $(PROGRAM))`/" \
34 < $< >$(notdir $(PROGRAM)).VERS;
35 @install $(IFLAGS) $(notdir $(PROGRAM)).VERS $(PROGRAM);
36 @-$(RM) $(RMFLAGS) $(notdir $(PROGRAM)).VERS;
37
38 do_build_setup: $(PROGRAM)
39
40 do_build_all:
41
42 setup_build_install:
43
44 do_build_install:
45
46 include $(MakeInc_rule)
47 include $(MakeInc_dir)