Merge remote branch 'origin/master' into glsl2
[mesa.git] / src / gallium / tests / trivial / Makefile
1 # progs/gallium/simple/Makefile
2
3 TOP = ../../../..
4 include $(TOP)/configs/current
5
6 INCLUDES = \
7 -I. \
8 -I$(TOP)/src/gallium/include \
9 -I$(TOP)/src/gallium/auxiliary \
10 -I$(TOP)/src/gallium/drivers \
11 -I$(TOP)/src/gallium/winsys \
12 $(PROG_INCLUDES)
13
14 LINKS = \
15 $(TOP)/src/gallium/drivers/rbug/librbug.a \
16 $(TOP)/src/gallium/drivers/trace/libtrace.a \
17 $(TOP)/src/gallium/drivers/galahad/libgalahad.a \
18 $(TOP)/src/gallium/winsys/sw/null/libws_null.a \
19 $(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
20 $(GALLIUM_AUXILIARIES) \
21 $(PROG_LINKS)
22
23 SOURCES = \
24 tri.c \
25 quad-tex.c
26
27 OBJECTS = $(SOURCES:.c=.o)
28
29 PROGS = $(OBJECTS:.o=)
30
31 PROG_DEFINES = \
32 -DGALLIUM_SOFTPIPE -DGALLIUM_RBUG -DGALLIUM_TRACE -DGALLIUM_GALAHAD
33
34 ##### TARGETS #####
35
36 default: $(PROGS)
37
38 clean:
39 -rm -f $(PROGS)
40 -rm -f *.o
41 -rm -f result.bmp
42
43 ##### RULES #####
44
45 $(OBJECTS): %.o: %.c
46 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $(PROG_DEFINES) $< -o $@
47
48 $(PROGS): %: %.o $(LINKS)
49 $(CC) $(LDFLAGS) $< $(LINKS) -lm -lpthread -ldl -o $@