a31db6eb3705b2e0b330e47103bf39c1678cdbd2
[mesa.git] / src / gallium / state_trackers / xa / Makefile
1 TOP = ../../../..
2 include $(TOP)/configs/current
3
4 ##### MACROS #####
5
6 XA_MAJOR = 0
7 XA_MINOR = 4
8 XA_TINY = 0
9 XA_CFLAGS = -g -fPIC -Wall
10
11 XA_INCLUDES= -I$(TOP)/src/gallium/ \
12 -I$(TOP)/src/gallium/auxiliary \
13 -I$(TOP)/src/gallium/include \
14 -I$(TOP)/src/gallium/winsys \
15 -I$(TOP)/src/gallium/drivers
16
17 XA_LIB = xatracker
18 XA_LIB_NAME = lib$(XA_LIB).o
19 XA_LIB_DEPS =
20
21 COMMON_GALLIUM_SOURCES=
22
23 SOURCES = \
24 xa_tracker.c \
25 xa_context.c \
26 xa_renderer.c \
27 xa_tgsi.c \
28 xa_yuv.c \
29 xa_composite.c
30 OBJECTS = $(SOURCES:.c=.o)
31
32 ##### RULES #####
33
34 .c.o:
35 $(CC) -c $(XA_CFLAGS) $(XA_INCLUDES) $<
36
37
38 ##### TARGETS #####
39
40 default: $(XA_LIB_NAME)
41
42
43 # Make the library
44 $(XA_LIB_NAME): depend $(OBJECTS)
45 $(LD) -r -o $(XA_LIB_NAME) $(OBJECTS)
46
47 install: FORCE
48
49 clean:
50 -rm -f *.o *~
51 -rm -f *.lo
52 -rm -f *.la
53 -rm -f *.pc
54 -rm -rf .libs
55 -rm -f depend depend.bak
56
57
58 depend: $(SOURCES)
59 @ echo "running $(MKDEP)"
60 @ rm -f depend
61 @ touch depend
62 @ $(MKDEP) $(MKDEP_OPTIONS) -I$(TOP)/include $(XA_INCLUDES) $(SOURCES) \
63 > /dev/null
64
65 -include depend
66
67 FORCE: