• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# progs/gallium/simple/Makefile
2
3TOP = ../../../..
4include $(TOP)/configs/current
5
6INCLUDES = \
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
14LINKS = \
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
21SOURCES = \
22	pipe_barrier_test.c \
23	u_cache_test.c \
24	u_half_test.c \
25	u_format_test.c \
26	u_format_compatible_test.c \
27	translate_test.c
28
29
30OBJECTS = $(SOURCES:.c=.o)
31
32PROGS = $(OBJECTS:.o=)
33
34##### TARGETS #####
35
36default: $(PROGS)
37
38clean:
39	-rm -f $(PROGS)
40	-rm -f *.o
41	-rm -f result.bmp
42
43##### RULES #####
44
45$(OBJECTS): %.o: %.c
46	$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $(PROG_DEFINES) $< -o $@
47
48$(PROGS): %: %.o
49	$(CC) $(LDFLAGS) $< $(LINKS) -lm -lpthread -ldl -o $@
50