Shader compilation on various platforms |
Home |
Edit the Makefiles to reflect the directory structure of your installation. You can then use the “make” command with the Makefile appropriate for your operating system to compile all the shaders in the “shader” directory:
Linux Makefile.linux Mac OS X Makefile.macosx
If you copy the appropriate Makefile for your system to a file simply called “Makefile,” you can execute “make” alone on the command line — the make command uses a file called “Makefile” by default.
Linux make -f Makefile.linux Mac OS X make -f Makefile.macosx
To simplify the definition of compilation and linking flags, separate files set variables to use as flags.
Windows (32-bit) all_shaders.bat Windows (64-bit) all_shaders_64.bat
Depending upon the compiler version and the location of various software libraries, adjustments may be required to the batch proces through changes to the flag variables file. You can also use a commercial compiler application; follow its instructions to construct .dll files from the source C and C++ files using the batch compilation file as a guide.
Windows (32-bit) set_variables.bat Windows (64-bit) set_variables_64.bat
Various systems (for example, the Cygwin Unix shell simulator) have been constructed to allow for more Unix-like development in Windows.
Windows batch_compile_windows.zip