summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/glslcompiler/Makefile
blob: d3404988d523258551a9167aec8b5240e4b728a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Makefile for stand-alone GL-SL compiler

TOP = ../../../..

include $(TOP)/configs/current


PROGRAM = glslcompiler

OBJECTS = \
	glslcompiler.o \
	../../glapi/glapi.o \
	../../glapi/glapi_getproc.o \
	../../glapi/glapi_dispatch.o \
	../../glapi/glapi_nop.o \
	../../glapi/glthread.o \
	../common/driverfuncs.o \
	../../libmesa.a

INCLUDES = \
	-I$(TOP)/include \
	-I$(TOP)/include/GL/internal \
	-I$(TOP)/src/mesa \
	-I$(TOP)/src/mesa/main \
	-I$(TOP)/src/mesa/glapi \
	-I$(TOP)/src/mesa/math \
	-I$(TOP)/src/mesa/transform \
	-I$(TOP)/src/mesa/shader \
	-I$(TOP)/src/mesa/swrast \
	-I$(TOP)/src/mesa/swrast_setup \


default: $(PROGRAM)
	$(INSTALL) $(PROGRAM) $(TOP)/bin


glslcompiler: $(OBJECTS)
	$(CC) $(OBJECTS) $(GL_LIB_DEPS) -o $@


glslcompiler.o: glslcompiler.c
	$(CC) -c $(INCLUDES) $(CFLAGS) glslcompiler.c -o $@


clean:
	-rm -f *.o *~ $(PROGRAM)