# Makefile - makefile skeleton for demo/vxColor
#
# Copyright 1984-1996 Wind River Systems, Inc.
#
# modification history
# --------------------
# 01j,20feb97,jank added subst / to \ using DIRCHAR in CP line for WIN32 builds
# 01i,12nov96,p_m  added TGT_DIR
# 01h,31oct96,yp   added clean and release rules
# 01g,15nov95,jcf  consolidated old and new versions of demo here.
# 01f,15nov95,jcf  changed name to vxColor.o.
# 01e,13nov95,p_m  used DEMO_DIR in order to build on Unix and WIN32.
# 01d,11nov95,p_m  changed mv to cp and added rm.
# 01c,11nov95,jeh  undoing last change.
# 01b,11nov95,jeh  changed 'mv' command to $(CP)
# 01a,21sep95,jco  written.
#	      +yp		
#
# DESCRIPTION
# This file contains rules for building the vxColor demo for the desired
# architecture and then moving the object in its final location.  
#
# There are two versions of the vxColor demo here.  The file vxColor.c is an
# early revision of the demo (with some bugs!) referenced by the manuals
# and used to demonstrate the utility of crosswind.  There is no host
# component provided to match vxColor.c.
# 
# The file vxColor2.c contains the actual demo, and builds its object into 
# the file named target/lib/.../vxColor.o.  The host portion of the demo, 
# vxColor, references this resultant object module.
#
# INCLUDES
#     makeTarget
#*/

CPU		= MC68020
TOOL		= gnu

TGT_DIR=$(WIND_BASE)/target

include $(TGT_DIR)/h/make/defs.bsp
include $(TGT_DIR)/h/make/make.$(CPU)$(TOOL)
include $(TGT_DIR)/h/make/defs.$(WIND_HOST_TYPE)

default		: $(DEMO_DIR)

$(DEMO_DIR)	: .neverbuilt
		$(CC) $(CFLAGS) -c vxColor.c
		$(CC) $(CFLAGS) -c vxColor2.c
		$(CP) vxColor2.o $(subst /,$(DIRCHAR),$@/vxColor.o)

release		:.neverbuilt
		$(CC) $(CFLAGS) -c -o $(DEMO_DIR)/vxColor.o  vxColor2.c

exe		:

.neverbuilt	:

clean		: 
		$(RM) *.o
		$(RM) $(subst /,$(DIRCHAR),$(DEMO_DIR)/vxColor.o)

