1 # src/glsl/Makefile.template
3 # Template makefile for glsl libraries.
6 # The minimum that the including makefile needs to define
7 # is TOP, LIBNAME and one of of the *_SOURCES.
10 # LIBRARY_INCLUDES are appended to the list of includes directories.
11 # LIBRARY_DEFINES is not used for makedepend, but for compilation.
16 OBJECTS = $(C_SOURCES:.c=.o)
25 default: depend lib$(LIBNAME).a
27 lib$(LIBNAME).a: $(OBJECTS) Makefile $(TOP)/src/glsl/Makefile.template
28 $(MKLIB) -o $(LIBNAME) -static $(OBJECTS)
33 $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(C_SOURCES) 2> /dev/null
35 # Remove .o and backup files
37 rm -f $(OBJECTS) lib$(LIBNAME).a depend depend.bak
47 $(CC) -c $(INCLUDES) $(CFLAGS) $(LIBRARY_DEFINES) $< -o $@