summaryrefslogtreecommitdiff
path: root/progs/rbug/Makefile
blob: 718f7a2bb52ce075fa0555babc2350a91586dff9 (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
# 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 \
	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 $@