Merge remote branch 'origin/master' into nv50-compiler
[mesa.git] / src / gallium / tests / unit / 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/trace/libtrace.a \
16 $(TOP)/src/gallium/winsys/sw/null/libws_null.a \
17 $(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
18 $(GALLIUM_AUXILIARIES) \
19 $(PROG_LINKS)
20
21 SOURCES = \
22 pipe_barrier_test.c \
23 u_cache_test.c \
24 u_half_test.c \
25 u_format_test.c \
26 translate_test.c
27
28
29 OBJECTS = $(SOURCES:.c=.o)
30
31 PROGS = $(OBJECTS:.o=)
32
33 ##### TARGETS #####
34
35 default: $(PROGS)
36
37 clean:
38 -rm -f $(PROGS)
39 -rm -f *.o
40 -rm -f result.bmp
41
42 ##### RULES #####
43
44 $(OBJECTS): %.o: %.c
45 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $(PROG_DEFINES) $< -o $@
46
47 $(PROGS): %: %.o
48 $(CC) $(LDFLAGS) $< $(LINKS) -lm -lpthread -ldl -o $@