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