summaryrefslogtreecommitdiff
path: root/progs/rbug/Makefile
blob: fb4e91d1afffbf58738fa9ee5e8af351e581c9bf (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
47
48
# progs/rbug/Makefile

TOP = ../..
include $(TOP)/configs/current

INCLUDES = \
	-I. \
	-I$(TOP)/src/gallium/include \
	-I$(TOP)/src/gallium/auxiliary \
	-I$(TOP)/src/gallium/drivers \
	$(PROG_INCLUDES)

LINKS = \
	$(GALLIUM_AUXILIARIES) \
	$(PROG_LINKS)

SOURCES = \
	bin_to_bmp.c \
	simple_client.c \
	simple_server.c \
	shdr_info.c \
	shdr_dump.c \
	shdr_disable.c \
	ctx_info.c \
	ctx_rule.c \
	tex_info.c \
	tex_dump.c


OBJECTS = $(SOURCES:.c=.o)

PROGS = $(OBJECTS:.o=)

##### TARGETS #####

default: $(OBJECTS) $(PROGS)

clean:
	-rm -f $(PROGS)
	-rm -f *.o

##### RULES #####

$(OBJECTS): %.o: %.c
	$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $(PROG_DEFINES) $< -o $@

$(PROGS): %: %.o
	$(CC) $(LDFLAGS) $< $(LINKS) -o $@