]>
Commit | Line | Data |
---|---|---|
1c79356b A |
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= | |
2d21ac55 A |
19 | ifneq ($(MACHINE_CONFIG), DEFAULT) |
20 | DSTDIR= $(strip $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)_$(MACHINE_CONFIG)/$(COMPONENT)/) | |
21 | else | |
1c79356b | 22 | DSTDIR= $(strip $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)/) |
2d21ac55 | 23 | endif |
1c79356b A |
24 | PROGRAM= $(DSTDIR)doconf |
25 | ||
26 | # | |
27 | # How to install it | |
28 | # | |
29 | IFLAGS= -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 | |
38 | do_build_setup: $(PROGRAM) | |
39 | ||
40 | do_build_all: | |
1c79356b A |
41 | |
42 | setup_build_install: | |
1c79356b A |
43 | |
44 | do_build_install: | |
1c79356b A |
45 | |
46 | include $(MakeInc_rule) | |
47 | include $(MakeInc_dir) |