1 2if DRI 3DRI_SUBDIR = dri 4endif 5 6if DRI2 7DRI2_SUBDIR = dri2 8endif 9 10if XF86UTILS 11XF86UTILS_SUBDIR = utils 12endif 13 14if XAA 15XAA_SUBDIR = xaa 16endif 17 18if VGAHW 19VGAHW_SUBDIR = vgahw 20endif 21 22if VBE 23VBE_SUBDIR = vbe 24endif 25 26if INT10MODULE 27INT10_SUBDIR = int10 28endif 29 30DOC_SUBDIR = doc 31 32SUBDIRS = common ddc i2c x86emu $(INT10_SUBDIR) fbdevhw os-support parser \ 33 ramdac shadowfb $(VBE_SUBDIR) $(VGAHW_SUBDIR) $(XAA_SUBDIR) \ 34 loader dixmods exa modes \ 35 $(DRI_SUBDIR) $(DRI2_SUBDIR) $(XF86UTILS_SUBDIR) $(DOC_SUBDIR) 36 37DIST_SUBDIRS = common ddc i2c x86emu int10 fbdevhw os-support \ 38 parser ramdac shadowfb vbe vgahw xaa \ 39 loader dixmods dri dri2 exa modes \ 40 utils doc 41 42bin_PROGRAMS = Xorg 43Xorg_SOURCES = xorg.c 44 45AM_CFLAGS = $(DIX_CFLAGS) @XORG_CFLAGS@ 46INCLUDES = @XORG_INCS@ 47 48noinst_LTLIBRARIES = libxorg.la 49libxorg_la_SOURCES = libxorg.c 50libxorg_la_LIBADD = \ 51 $(XSERVER_LIBS) \ 52 loader/libloader.la \ 53 os-support/libxorgos.la \ 54 common/libcommon.la \ 55 parser/libxf86config_internal.la \ 56 dixmods/libdixmods.la \ 57 modes/libxf86modes.la \ 58 ramdac/libramdac.la \ 59 ddc/libddc.la \ 60 i2c/libi2c.la \ 61 dixmods/libxorgxkb.la \ 62 $(top_builddir)/mi/libmi.la \ 63 $(top_builddir)/os/libos.la \ 64 @XORG_LIBS@ 65 66libxorg_la_DEPENDENCIES = $(libxorg_la_LIBADD) 67 68libxorg.c xorg.c: 69 touch $@ 70 71DISTCLEANFILES = libxorg.c xorg.c 72 73Xorg_DEPENDENCIES = libxorg.la 74Xorg_LDADD = $(MAIN_LIB) libxorg.la $(XORG_SYS_LIBS) $(XSERVER_SYS_LIBS) 75 76Xorg_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG) 77 78BUILT_SOURCES = xorg.conf.example 79DISTCLEANFILES += xorg.conf.example 80EXTRA_DIST = xorgconf.cpp 81 82if SPECIAL_DTRACE_OBJECTS 83# Re-add dtrace object code that gets lost when building static libraries 84Xorg_LDADD += $(XSERVER_LIBS) 85endif 86 87if SOLARIS_ASM_INLINE 88# Needs to be built before any files are compiled when using Sun compilers 89# so in*/out* inline definitions are properly processed. 90 91BUILT_SOURCES += os-support/solaris/solaris-@SOLARIS_INOUT_ARCH@.il 92 93os-support/solaris/solaris-@SOLARIS_INOUT_ARCH@.il: 94 cd os-support/solaris ; \ 95 $(MAKE) $(AM_MAKEFLAGS) solaris-@SOLARIS_INOUT_ARCH@.il 96endif 97 98# do not use $(mkdir_p) if you want automake 1.7 to work 99install-data-local: 100 mkdir -p $(DESTDIR)$(logdir) 101 102 103install-exec-local: install-binPROGRAMS 104 (cd $(DESTDIR)$(bindir) && rm -f X && ln -s Xorg X) 105if INSTALL_SETUID 106 chown root $(DESTDIR)$(bindir)/Xorg 107 chmod u+s $(DESTDIR)$(bindir)/Xorg 108endif 109 110# Use variables from XORG_MANPAGE_SECTIONS and X Server configuration 111# Do not include manpages.am as values are not appropriate for rc files 112CONF_SUBSTS = -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' \ 113 -e 's|MODULEPATH|$(DEFAULT_MODULE_PATH)|g' \ 114 -e 's|DEFAULTFONTPATH|$(COMPILEDDEFAULTFONTPATH)|g' 115 116xorg.conf.example: xorgconf.cpp 117 $(AM_V_GEN)$(SED) $(CONF_SUBSTS) < $(srcdir)/xorgconf.cpp > $@ 118 119relink: 120 $(AM_V_at)rm -f Xorg && $(MAKE) Xorg 121