123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- #--------------------------------------------------------------------------
- # Name : content.mak
- # Title : Makefile to build content files
- #
- # Copyright : Copyright (C) Imagination Technologies Limited.
- # : No part of this software, either material or conceptual
- # : may be copied or distributed, transmitted, transcribed,
- # : stored in a retrieval system or translated into any
- # : human or computer language in any form by any means,
- # : electronic, mechanical, manual or other-wise, or
- # : disclosed to third parties without the express written
- # : permission of VideoLogic Limited, Unit 8, HomePark
- # : Industrial Estate, King's Langley, Hertfordshire,
- # : WD4 8LZ, U.K.
- #
- # Description : Makefile to build content files for demos in the PowerVR SDK
- #
- # Platform :
- #
- #--------------------------------------------------------------------------
- #############################################################################
- ## Variables
- #############################################################################
- PVRTEXTOOL = ..\..\..\Utilities\PVRTexTool\PVRTexToolCL\Windows_x86_32\PVRTexTool.exe
- FILEWRAP = ..\..\..\Utilities\Filewrap\Windows_x86_32\Filewrap.exe
- PVRUNISCO = ..\..\..\Utilities\PVRUniSCo\OGLES\Windows_x86_32\PVRUniSCo_SGX53x.exe
- MEDIAPATH = ../Media
- CONTENTDIR = Content
- #############################################################################
- ## Instructions
- #############################################################################
- TEXTURES = \
- Balloon.pvr \
- Balloon_pvr.pvr \
- Noise.pvr \
- Skybox.pvr \
- SkyboxMidnight.pvr
- BIN_SHADERS =
- RESOURCES = \
- $(CONTENTDIR)/Balloon.cpp \
- $(CONTENTDIR)/Balloon_pvr.cpp \
- $(CONTENTDIR)/Noise.cpp \
- $(CONTENTDIR)/Skybox.cpp \
- $(CONTENTDIR)/SkyboxMidnight.cpp \
- $(CONTENTDIR)/effects.cpp \
- $(CONTENTDIR)/Scene.cpp
- all: resources
-
- help:
- @echo Valid targets are:
- @echo resources, textures, binary_shaders, clean
- @echo PVRTEXTOOL, FILEWRAP and PVRUNISCO can be used to override the default paths to these utilities.
- clean:
- -rm $(RESOURCES)
- -rm $(BIN_SHADERS)
- -rm $(TEXTURES)
- resources: $(CONTENTDIR) $(RESOURCES)
- textures: $(TEXTURES)
- binary_shaders: $(BIN_SHADERS)
- $(CONTENTDIR):
- -mkdir $@
- Balloon.pvr: $(MEDIAPATH)/balloon.png
- $(PVRTEXTOOL) -m -fOGLPVRTC4 -i$(MEDIAPATH)/balloon.png -o$@
- Balloon_pvr.pvr: $(MEDIAPATH)/balloon_pvr.png
- $(PVRTEXTOOL) -m -fOGLPVRTC4 -i$(MEDIAPATH)/balloon_pvr.png -o$@
- Noise.pvr: $(MEDIAPATH)/Noise.png
- $(PVRTEXTOOL) -m -fOGLPVRTC4 -i$(MEDIAPATH)/Noise.png -o$@
- Skybox.pvr: $(MEDIAPATH)/skybox1.png $(MEDIAPATH)/skybox2.png $(MEDIAPATH)/skybox3.png $(MEDIAPATH)/skybox4.png $(MEDIAPATH)/skybox5.png $(MEDIAPATH)/skybox6.png
- $(PVRTEXTOOL) -s -m -p -fOGLPVRTC4 -i$(MEDIAPATH)/skybox1.png -o$@
- SkyboxMidnight.pvr: $(MEDIAPATH)/skybox_midnight1.png $(MEDIAPATH)/skybox_midnight2.png $(MEDIAPATH)/skybox_midnight3.png $(MEDIAPATH)/skybox_midnight4.png $(MEDIAPATH)/skybox_midnight5.png $(MEDIAPATH)/skybox_midnight6.png
- $(PVRTEXTOOL) -s -m -p -fOGLPVRTC4 -i$(MEDIAPATH)/skybox_midnight1.png -o$@
- $(CONTENTDIR)/Balloon.cpp: Balloon.pvr
- $(FILEWRAP) -o $@ Balloon.pvr
- $(CONTENTDIR)/Balloon_pvr.cpp: Balloon_pvr.pvr
- $(FILEWRAP) -o $@ Balloon_pvr.pvr
- $(CONTENTDIR)/Noise.cpp: Noise.pvr
- $(FILEWRAP) -o $@ Noise.pvr
- $(CONTENTDIR)/Skybox.cpp: Skybox.pvr
- $(FILEWRAP) -o $@ Skybox.pvr
- $(CONTENTDIR)/SkyboxMidnight.cpp: SkyboxMidnight.pvr
- $(FILEWRAP) -o $@ SkyboxMidnight.pvr
- $(CONTENTDIR)/effects.cpp: effects.pfx
- $(FILEWRAP) -s -o $@ effects.pfx
- $(CONTENTDIR)/Scene.cpp: Scene.pod
- $(FILEWRAP) -o $@ Scene.pod
- ############################################################################
- # End of file (content.mak)
- ############################################################################
|