progs/tests: Ignores
[mesa.git] / progs / rbug / Makefile
1 # progs/rbug/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 $(PROG_INCLUDES)
12
13 LINKS = \
14 $(GALLIUM_AUXILIARIES) \
15 $(PROG_LINKS)
16
17 SOURCES = \
18 bin_to_bmp.c \
19 simple_client.c \
20 simple_server.c \
21 shdr_info.c \
22 shdr_dump.c \
23 shdr_disable.c \
24 ctx_info.c \
25 ctx_rule.c \
26 tex_info.c \
27 tex_dump.c
28
29
30 OBJECTS = $(SOURCES:.c=.o)
31
32 PROGS = $(OBJECTS:.o=)
33
34 ##### TARGETS #####
35
36 default: $(OBJECTS) $(PROGS)
37
38 clean:
39 -rm -f $(PROGS)
40 -rm -f *.o
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 -o $@