First import
[xorg_rtime.git] / xorg-server-1.4 / hw / xfree86 / Makefile.am
blobca7dda10947e572c5bc8f75dd66377f13a2fea5c
1 include $(top_srcdir)/cpprules.in
3 if DRI
4 DRI_SUBDIR = dri
5 endif
7 if XF86UTILS
8 XF86UTILS_SUBDIR = utils
9 endif
11 if MFB
12 MFB_SUBDIR = xf1bpp xf4bpp
13 endif
15 if CFB
16 CFB_SUBDIR = xf8_16bpp xf8_32bpp
17 endif
19 DOC_SUBDIR = doc
21 SUBDIRS = common ddc dummylib i2c x86emu int10 fbdevhw os-support parser rac \
22           ramdac shadowfb vbe vgahw xaa $(MFB_SUBDIR) $(CFB_SUBDIR) \
23           loader scanpci dixmods exa modes \
24           $(DRI_SUBDIR) $(XF86UTILS_SUBDIR) $(DOC_SUBDIR)
26 DIST_SUBDIRS = common ddc dummylib i2c x86emu int10 fbdevhw os-support \
27                parser rac ramdac shadowfb vbe vgahw xaa xf1bpp xf4bpp \
28                xf8_16bpp xf8_32bpp loader scanpci dixmods dri exa modes \
29                utils doc
31 bin_PROGRAMS = Xorg
33 AM_CFLAGS = $(DIX_CFLAGS) @XORG_CFLAGS@
34 INCLUDES = @XORG_INCS@ 
36 Xorg_SOURCES = xorg.c
38 # libxorgos and libcommon need symbols from each other
39 noinst_LTLIBRARIES = libosandcommon.la
40 libosandcommon_la_SOURCES = osandcommon.c
41 libosandcommon_la_LIBADD = \
42             os-support/libxorgos.la \
43             common/libcommon.la
45 osandcommon.c xorg.c:
46         touch $@
48 DISTCLEANFILES = osandcommon.c xorg.c
50 XORG_LIBS = \
51             @XORG_CORE_LIBS@ \
52             common/libinit.a \
53             loader/libloader.a \
54             libosandcommon.la \
55             rac/librac.a \
56             parser/libxf86config.a \
57             dixmods/libdixmods.la \
58             modes/libxf86modes.a \
59             ramdac/libramdac.a \
60             ddc/libddc.a \
61             i2c/libi2c.a \
62             @XORG_LIBS@
64 Xorg_DEPENDENCIES = \
65         $(XORG_LIBS)
67 Xorg_LDADD = $(XORG_LIBS) \
68              @XSERVER_LIBS@ \
69              dixmods/libxorgxkb.la
71 Xorg_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG)
73 BUILT_SOURCES = xorg.conf.example
74 DISTCLEANFILES += xorg.conf.example xorg.conf.example.pre
75 EXTRA_DIST = xorgconf.cpp
77 if SOLARIS_ASM_INLINE
78 # Needs to be built before any files are compiled when using Sun compilers
79 # so in*/out* inline definitions are properly processed.
81 BUILT_SOURCES += os-support/solaris/solaris-@SOLARIS_INOUT_ARCH@.il
83 os-support/solaris/solaris-@SOLARIS_INOUT_ARCH@.il:
84         cd os-support/solaris ; make solaris-@SOLARIS_INOUT_ARCH@.il
85 endif
87 # do not use $(mkdir_p) if you want automake 1.7 to work
88 install-data-local:
89         mkdir -p $(DESTDIR)$(logdir)
92 install-exec-local: install-binPROGRAMS
93         (cd $(DESTDIR)$(bindir) && rm -f X && ln -s Xorg X)
94 if INSTALL_SETUID
95         chown root $(DESTDIR)$(bindir)/Xorg
96         chmod u+s $(DESTDIR)$(bindir)/Xorg
97 endif
99 optionsdir = $(libdir)/X11
100 dist_options_DATA = Options
102 CPP_FILES_FLAGS = \
103         -DRGBPATH=\"$(RGB_DB)\" \
104         -DLOCALFONTPATH="\"$(BASE_FONT_PATH)/local\"" \
105         -DMISCFONTPATH="\"$(BASE_FONT_PATH)/misc\"" \
106         -DT1FONTPATH="\"$(BASE_FONT_PATH)/Type1\"" \
107         -DTRUETYPEFONTPATH="\"$(BASE_FONT_PATH)/TTF\"" \
108         -DDPI75FONTPATH="\"$(BASE_FONT_PATH)/75dpi\"" \
109         -DDPI100FONTPATH="\"$(BASE_FONT_PATH)/100dpi\"" \
110         -DMODULEPATH=\"$(DEFAULT_MODULE_PATH)\"
112 relink:
113         rm -f Xorg && $(MAKE) Xorg
115 xorg.conf.example.pre: xorgconf.cpp
116         cp $(srcdir)/xorgconf.cpp $@