# Makefile
# for 'the winds' demo
# Copyright (C) 2003 Martin Piper (mindor@playstation2-linux.com)
# This file is subject to the terms and conditions of the GNU General Public License
# Version 2.
#-----------------------------------------------------------------------------------

HARNESSDIR = ../vu_demo/demodata/

all: winds.dat winds.bin install 

data: winds.dat 
	cp winds.dat winds.bin winds.hlp $(HARNESSDIR)


makeimage: makeimage.o
	gcc -omakeimage makeimage.o 

winds.dat: makeimage
	./makeimage

winds.i: makeimage
	./makeimage

winds.bin: winds.vsm
	ee-dvp-as -o winds.o winds.dsm
	objcopy -O binary winds.o winds.bin

winds.vsm: winds.vcl winds.i
	vcl -g -d -owinds.vsm winds.vcl 

install: winds.dat winds.bin
	cp winds.dat winds.bin winds.hlp $(HARNESSDIR)

clean: 
	rm -f makeimage winds.vsm winds.dat winds.bin winds.i *.o