1 include $(top_srcdir)/cpprules.in
8 XF86UTILS_SUBDIR = utils
12 MFB_SUBDIR = xf1bpp xf4bpp
16 CFB_SUBDIR = xf8_16bpp xf8_32bpp
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 \
33 AM_CFLAGS = $(DIX_CFLAGS) @XORG_CFLAGS@
34 INCLUDES = @XORG_INCS@
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 \
48 DISTCLEANFILES = osandcommon.c xorg.c
56 parser/libxf86config.a \
57 dixmods/libdixmods.la \
58 modes/libxf86modes.a \
67 Xorg_LDADD = $(XORG_LIBS) \
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
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
87 # do not use $(mkdir_p) if you want automake 1.7 to work
89 mkdir -p $(DESTDIR)$(logdir)
92 install-exec-local: install-binPROGRAMS
93 (cd $(DESTDIR)$(bindir) && rm -f X && ln -s Xorg X)
95 chown root $(DESTDIR)$(bindir)/Xorg
96 chmod u+s $(DESTDIR)$(bindir)/Xorg
99 optionsdir = $(libdir)/X11
100 dist_options_DATA = Options
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)\"
113 rm -f Xorg && $(MAKE) Xorg
115 xorg.conf.example.pre: xorgconf.cpp
116 cp $(srcdir)/xorgconf.cpp $@