.SUFFIXES : .gsl .gso # INCLUDES holds all the -I commands that specify include directories # for shader header files. The example below only includes from # $GELATOHOME/shaders. Amend as necessary for your site defaults. INCLUDES := -I$(GELATOHOME)/shaders %.gso: %.gsl gslc $(INCLUDES) $< -o $@ shader_srcs := ${wildcard *.gsl} shader_objs := ${patsubst %.gsl,%.gso, ${shader_srcs}} .PHONY: all clean all: ${shader_objs} clean: rm -f ${shader_objs}