First import
[xorg_rtime.git] / xorg-server-1.4 / hw / kdrive / ati / Makefile.am
blob9e1fc7f57a4df6ecc284052af010e19cace6802b
1 #if DRI
2 #DRI_INCLUDES =         -I$(top_srcdir)/dri     \
3 #               -I$(top_srcdir)/drm
4 #DRI_LIBS =     $(top_builddir)/dri/libdri.a    \
5 #               $(top_builddir)/drm/libdrm.a
6 #DRI_SOURCES =  ati_dri.c       \
7 #               ati_dri.h       \
8 #               ati_dripriv.h   \
9 #               r128_common.h   \
10 #               r128_sarea.h    \
11 #               radeon_common.h \
12 #               radeon_sarea.h
13 #endif
15 if KDRIVEFBDEV
16 FBDEV_INCLUDES =-I$(top_srcdir)/hw/kdrive/fbdev
17 FBDEV_LIBS = $(top_builddir)/hw/kdrive/fbdev/libfbdev.a
18 endif
20 if KDRIVEVESA
21 VESA_INCLUDES = -I$(top_srcdir)/hw/kdrive/vesa
22 VESA_LIBS = $(top_builddir)/hw/kdrive/vesa/libvesa.a
23 endif
25 INCLUDES =                                      \
26         @KDRIVE_INCS@                           \
27         $(DRI_INCLUDES)                         \
28         $(FBDEV_INCLUDES)                       \
29         $(VESA_INCLUDES)                        \
30         @KDRIVE_CFLAGS@
32 bin_PROGRAMS = Xati
34 noinst_LIBRARIES = libati.a
36 libati_a_SOURCES =      \
37         ati_cursor.c    \
38         ati_dma.c       \
39         ati_dma.h       \
40         ati_draw.c      \
41         ati_draw.h      \
42         ati_microcode.c \
43         ati.c           \
44         ati.h           \
45         ati_reg.h       \
46         r128_composite.c \
47         ati_video.c     \
48         radeon_composite.c \
49         $(DRI_SOURCES)
51 Xati_SOURCES = \
52         ati_stub.c
54 ATI_LIBS =                              \
55         libati.a                        \
56         $(FBDEV_LIBS)                   \
57         $(VESA_LIBS)                    \
58         $(DRI_LIBS)                     \
59         @KDRIVE_LIBS@
61 Xati_LDADD = \
62         $(ATI_LIBS)                     \
63         @KDRIVE_LIBS@                   \
64         @XSERVER_LIBS@
66 Xati_DEPENDENCIES =     \
67         libati.a                        \
68         @KDRIVE_LOCAL_LIBS@
70 relink:
71         rm -f $(bin_PROGRAMS) && make $(bin_PROGRAMS)