Merge branch '7.8'
[mesa.git] / src / mesa / drivers / glslcompiler / Makefile
1 # Makefile for stand-alone GL-SL compiler
2
3 TOP = ../../../..
4
5 include $(TOP)/configs/current
6
7
8 PROGRAM = glslcompiler
9
10 OBJECTS = \
11 glslcompiler.o \
12 ../common/driverfuncs.o \
13 ../../libmesa.a \
14 ../../libglapi.a
15
16 INCLUDES = \
17 -I$(TOP)/include \
18 -I$(TOP)/include/GL/internal \
19 -I$(TOP)/src/mesa \
20 -I$(TOP)/src/mesa/main \
21 -I$(TOP)/src/mesa/glapi \
22 -I$(TOP)/src/mesa/math \
23 -I$(TOP)/src/mesa/transform \
24 -I$(TOP)/src/mesa/shader \
25 -I$(TOP)/src/mesa/swrast \
26 -I$(TOP)/src/mesa/swrast_setup \
27
28
29 default: $(PROGRAM)
30 $(INSTALL) $(PROGRAM) $(TOP)/bin
31
32
33 glslcompiler: $(OBJECTS)
34 $(CC) $(OBJECTS) $(GL_LIB_DEPS) -o $@
35
36
37 glslcompiler.o: glslcompiler.c
38 $(CC) -c $(INCLUDES) $(CFLAGS) glslcompiler.c -o $@
39
40
41 clean:
42 -rm -f *.o *~ $(PROGRAM)