Merge commit 'origin/gallium-0.1' into gallium-0.2
[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 ../../glapi/glapi.o \
13 ../../glapi/glthread.o \
14 ../../main/dispatch.o \
15 ../common/driverfuncs.o \
16 ../../libmesa.a
17
18 INCLUDES = \
19 -I$(TOP)/include \
20 -I$(TOP)/include/GL/internal \
21 -I$(TOP)/src/mesa \
22 -I$(TOP)/src/mesa/main \
23 -I$(TOP)/src/mesa/glapi \
24 -I$(TOP)/src/mesa/math \
25 -I$(TOP)/src/mesa/transform \
26 -I$(TOP)/src/mesa/shader \
27 -I$(TOP)/src/mesa/swrast \
28 -I$(TOP)/src/mesa/swrast_setup \
29
30
31 default: $(PROGRAM)
32 $(INSTALL) $(PROGRAM) $(TOP)/bin
33
34
35 glslcompiler: $(OBJECTS)
36 $(CC) $(OBJECTS) -lm -lpthread -o $@
37
38
39 glslcompiler.o: glslcompiler.c
40 $(CC) -c $(CFLAGS) $(INCLUDES) glslcompiler.c -o $@
41
42
43 clean:
44 -rm -f *.o *~ $(PROGRAM)