For imake components, the Imakefile is used to create the Makefile. The imake Makefile.src is similar to the Makefile.src file described for mkmk. If the MYCOMP component is built using the imake tool, its Makefile.src would be:
all:: MYCOMP.all MYCOMP.all:: DEVTOOLS.all NUCLEUS.all OS.all MYCOMP.all:: $(MYCOMP_DIR)/DONE $(MYCOMP_DIR)/DONE: rm -rf $(MYCOMP_DIR) sh $(DEVTOOLS_DIR)/ChorusOSMkMf $(BUILD_DIR) \ -s $(MYCOMP) -b $(MYCOMP_DIR) -d $(MYCOMP_DIR) cd $(MYCOMP_DIR); $(make) Makefiles cd $(MYCOMP_DIR); $(make) touch $(MYCOMP_DIR)/DONE
The Makefile.src contains the call to ChorusOSMkMf which will generate all Makefiles in the component. Then, make Makefile and make are called.
As the binary components have already been created, the Makefile.bin file of a component does not depend on the component's generation method. There is no difference between a Makefile.bin file for an imake component and a Makefile.bin file for a mkmk component.
The contents of the Makefile.bin are as follows.
COMPONENT += MYCOMP ROOT += $(MYCOMP_DIR)/root
ChorusOS 4.0 Introduction explains how to create a hello application with imake.