Sample <env>build.mak file

The following code is an example of the vxbuild.mak file, which is used to build the framework for the VxWorks environment.


MAKE=make

CPU=I80486

ifeq ($(PATH_SEP),)
all :
   @echo PATH_SEP is not defined. Please define it as \\
or /
else
all :
   $(MAKE) all -C oxf -f vxoxf.mak CFG=vxoxf CPU=$(CPU)
      PATH_SEP=$(PATH_SEP)
   $(MAKE) all -C oxf -f vxoxf.mak CFG=vxoxfsim
CPU=$(CPU)
      PATH_SEP=$(PATH_SEP)
   $(MAKE) all -C oxf -f vxoxf.mak CFG=vxoxfinst
      CPU=$(CPU) PATH_SEP=$(PATH_SEP)
   $(MAKE) all -C oxf -f vxoxf.mak CFG=vxoxfsiminst
      CPU=$(CPU) PATH_SEP=$(PATH_SEP)
   $(MAKE) all -C omcom -f vxomcom.mak CFG=vxomcomappl      CPU=$(CPU) 
PATH_SEP=$(PATH_SEP
   $(MAKE) all -C tom -f vxtom.mak CFG=vxtomtrace
      CPU=$(CPU) PATH_SEP=$(PATH_SEP)
   $(MAKE) all -C tom -f vxtom.mak CFG=vxtomtraceRiC
      CPU=$(CPU) PATH_SEP=$(PATH_SEP)
   $(MAKE) all -C aom -f vxaom.mak CFG=vxaomtrace
      CPU=$(CPU) PATH_SEP=$(PATH_SEP)
   $(MAKE) all -C aom -f vxaom.mak CFG=vxaomanim
      CPU=$(CPU) PATH_SEP=$(PATH_SEP)
endif

This makefile:

  • Sets the make command for the VxWorks environment (make).
  • Sets the CPU being targeted (I80486 = Intel 80486).
  • Checks whether the path separator (PATH_SEP) character was properly set. If not, it generates an error and cancels the build.
  • Sets the all: command to build the framework libraries for the various configurations (with and without animation, real-time or simulated time, and so on).