summaryrefslogtreecommitdiffstats
path: root/progs/rbug/Makefile
blob: 8df03dd4e192334766e7992a78828d0280ef4de7 (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
# 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 = \
	simple_client.c \
	simple_server.c \
	shdr_info.c \
	shdr_dump.c \
	shdr_disable.c \
	ctx_info.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 $@