First import
[xorg_rtime.git] / xorg-server-1.4 / dix / Makefile.am
blob28c2d8b6e82099b0d0b6c00a739e90cdae6dd8e4
1 noinst_LTLIBRARIES = libdix.la libxpstubs.la
3 AM_CFLAGS = $(DIX_CFLAGS) \
4         -DVENDOR_NAME=\""@VENDOR_NAME@"\" \
5         -DVENDOR_RELEASE="@VENDOR_RELEASE@"
7 libdix_la_SOURCES =     \
8         atom.c          \
9         colormap.c      \
10         cursor.c        \
11         devices.c       \
12         dispatch.c      \
13         dispatch.h      \
14         dixfonts.c      \
15         dixutils.c      \
16         events.c        \
17         extension.c     \
18         ffs.c           \
19         gc.c            \
20         getevents.c     \
21         globals.c       \
22         glyphcurs.c     \
23         grabs.c         \
24         initatoms.c     \
25         main.c          \
26         pixmap.c        \
27         privates.c      \
28         property.c      \
29         resource.c      \
30         swaprep.c       \
31         swapreq.c       \
32         tables.c        \
33         window.c        \
34         strcasecmp.c
36 libxpstubs_la_SOURCES = \
37         xpstubs.c
39 INCLUDES = -I$(top_srcdir)/Xprint
41 EXTRA_DIST = buildatoms BuiltInAtoms CHANGES Xserver.d Xserver-dtrace.h.in
43 if XSERVER_DTRACE
44 # Generate dtrace header file for C sources to include
45 BUILT_SOURCES = Xserver-dtrace.h
47 Xserver-dtrace.h: $(srcdir)/Xserver.d
48         $(DTRACE) -C -h -o $@ -s $(srcdir)/Xserver.d \
49                 || cp Xserver-dtrace.h.in $@
51 # Generate dtrace object code for probes in libdix
52 dtrace-dix.o: $(top_srcdir)/dix/Xserver.d $(am_libdix_la_OBJECTS)
53         $(DTRACE) -G -C -o $@ -s $(top_srcdir)/dix/Xserver.d .libs/*.o
55 noinst_PROGRAMS = dix.O
57 dix.O: dtrace-dix.o $(am_libdix_la_OBJECTS)
58         ld -r -o $@ .libs/*.o
59 endif
61 dix.c:
62         touch $@
64 CLEANFILES = dix.c