123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- 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
- TEXTURES = \
- Cow.pvr \
- DisMap.pvr
- BIN_SHADERS = \
- FragShader.fsc \
- VertShader.vsc
- RESOURCES = \
- $(CONTENTDIR)/DisMapScene.cpp \
- $(CONTENTDIR)/Cow.cpp \
- $(CONTENTDIR)/DisMap.cpp \
- $(CONTENTDIR)/FragShader.cpp \
- $(CONTENTDIR)/VertShader.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 $@
- Cow.pvr: $(MEDIAPATH)/Cow.png
- $(PVRTEXTOOL) -m -fOGLPVRTC4 -i$(MEDIAPATH)/Cow.png -o$@
- DisMap.pvr: $(MEDIAPATH)/DisMap.png
- $(PVRTEXTOOL) -fOGL8 -nt -i$(MEDIAPATH)/DisMap.png -o$@
- $(CONTENTDIR)/DisMapScene.cpp: DisMapScene.pod
- $(FILEWRAP) -o $@ DisMapScene.pod
- $(CONTENTDIR)/Cow.cpp: Cow.pvr
- $(FILEWRAP) -o $@ Cow.pvr
- $(CONTENTDIR)/DisMap.cpp: DisMap.pvr
- $(FILEWRAP) -o $@ DisMap.pvr
- $(CONTENTDIR)/FragShader.cpp: FragShader.fsh FragShader.fsc
- $(FILEWRAP) -s -o $@ FragShader.fsh
- $(FILEWRAP) -oa $@ FragShader.fsc
- $(CONTENTDIR)/VertShader.cpp: VertShader.vsh VertShader.vsc
- $(FILEWRAP) -s -o $@ VertShader.vsh
- $(FILEWRAP) -oa $@ VertShader.vsc
- FragShader.fsc: FragShader.fsh
- $(PVRUNISCO) FragShader.fsh $@ -f
- VertShader.vsc: VertShader.vsh
- $(PVRUNISCO) VertShader.vsh $@ -v
|