glapi: Move to src/mapi/.
[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 $(TOP)/src/mapi/glapi/libglapi.a
15
16 INCLUDES = \
17 -I$(TOP)/include \
18 -I$(TOP)/include/GL/internal \
19 -I$(TOP)/src/mapi \
20 -I$(TOP)/src/mesa \
21 -I$(TOP)/src/mesa/main \
22 -I$(TOP)/src/mesa/glapi \
23 -I$(TOP)/src/mesa/math \
24 -I$(TOP)/src/mesa/transform \
25 -I$(TOP)/src/mesa/shader \
26 -I$(TOP)/src/mesa/swrast \
27 -I$(TOP)/src/mesa/swrast_setup \
28
29
30 default: $(PROGRAM)
31 $(INSTALL) $(PROGRAM) $(TOP)/bin
32
33
34 glslcompiler: $(OBJECTS)
35 $(CC) $(OBJECTS) $(GL_LIB_DEPS) -o $@
36
37
38 glslcompiler.o: glslcompiler.c
39 $(CC) -c $(INCLUDES) $(CFLAGS) glslcompiler.c -o $@
40
41
42 clean:
43 -rm -f *.o *~ $(PROGRAM)