1706f2543Smrg 2706f2543Smrgif DRI 3706f2543SmrgDRI_SUBDIR = dri 4706f2543Smrgendif 5706f2543Smrg 6706f2543Smrgif DRI2 7706f2543SmrgDRI2_SUBDIR = dri2 8706f2543Smrgendif 9706f2543Smrg 10706f2543Smrgif XF86UTILS 11706f2543SmrgXF86UTILS_SUBDIR = utils 12706f2543Smrgendif 13706f2543Smrg 14706f2543Smrgif XAA 15706f2543SmrgXAA_SUBDIR = xaa 16706f2543Smrgendif 17706f2543Smrg 18706f2543Smrgif VGAHW 19706f2543SmrgVGAHW_SUBDIR = vgahw 20706f2543Smrgendif 21706f2543Smrg 22706f2543Smrgif VBE 23706f2543SmrgVBE_SUBDIR = vbe 24706f2543Smrgendif 25706f2543Smrg 26706f2543Smrgif INT10MODULE 27706f2543SmrgINT10_SUBDIR = int10 28706f2543Smrgendif 29706f2543Smrg 30706f2543SmrgDOC_SUBDIR = doc 31706f2543Smrg 32706f2543SmrgSUBDIRS = common ddc i2c x86emu $(INT10_SUBDIR) fbdevhw os-support parser \ 33706f2543Smrg ramdac shadowfb $(VBE_SUBDIR) $(VGAHW_SUBDIR) $(XAA_SUBDIR) \ 34706f2543Smrg loader dixmods exa modes \ 35706f2543Smrg $(DRI_SUBDIR) $(DRI2_SUBDIR) $(XF86UTILS_SUBDIR) $(DOC_SUBDIR) 36706f2543Smrg 37706f2543SmrgDIST_SUBDIRS = common ddc i2c x86emu int10 fbdevhw os-support \ 38706f2543Smrg parser ramdac shadowfb vbe vgahw xaa \ 39706f2543Smrg loader dixmods dri dri2 exa modes \ 40706f2543Smrg utils doc 41706f2543Smrg 42706f2543Smrgbin_PROGRAMS = Xorg 43706f2543SmrgXorg_SOURCES = xorg.c 44706f2543Smrg 45706f2543SmrgAM_CFLAGS = $(DIX_CFLAGS) @XORG_CFLAGS@ 46706f2543SmrgINCLUDES = @XORG_INCS@ 47706f2543Smrg 48706f2543Smrgnoinst_LTLIBRARIES = libxorg.la 49706f2543Smrglibxorg_la_SOURCES = libxorg.c 50706f2543Smrglibxorg_la_LIBADD = \ 51706f2543Smrg $(XSERVER_LIBS) \ 52706f2543Smrg loader/libloader.la \ 53706f2543Smrg os-support/libxorgos.la \ 54706f2543Smrg common/libcommon.la \ 55706f2543Smrg parser/libxf86config_internal.la \ 56706f2543Smrg dixmods/libdixmods.la \ 57706f2543Smrg modes/libxf86modes.la \ 58706f2543Smrg ramdac/libramdac.la \ 59706f2543Smrg ddc/libddc.la \ 60706f2543Smrg i2c/libi2c.la \ 61706f2543Smrg dixmods/libxorgxkb.la \ 62706f2543Smrg $(top_builddir)/mi/libmi.la \ 63706f2543Smrg $(top_builddir)/os/libos.la \ 64706f2543Smrg @XORG_LIBS@ 65706f2543Smrg 66706f2543Smrglibxorg_la_DEPENDENCIES = $(libxorg_la_LIBADD) 67706f2543Smrg 68706f2543Smrglibxorg.c xorg.c: 69706f2543Smrg touch $@ 70706f2543Smrg 71706f2543SmrgDISTCLEANFILES = libxorg.c xorg.c 72706f2543Smrg 73706f2543SmrgXorg_DEPENDENCIES = libxorg.la 74706f2543SmrgXorg_LDADD = $(MAIN_LIB) libxorg.la $(XORG_SYS_LIBS) $(XSERVER_SYS_LIBS) 75706f2543Smrg 76706f2543SmrgXorg_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG) 77706f2543Smrg 78706f2543SmrgBUILT_SOURCES = xorg.conf.example 79706f2543SmrgDISTCLEANFILES += xorg.conf.example 80706f2543SmrgEXTRA_DIST = xorgconf.cpp 81706f2543Smrg 82706f2543Smrgif SPECIAL_DTRACE_OBJECTS 83706f2543Smrg# Re-add dtrace object code that gets lost when building static libraries 84706f2543SmrgXorg_LDADD += $(XSERVER_LIBS) 85706f2543Smrgendif 86706f2543Smrg 87706f2543Smrgif SOLARIS_ASM_INLINE 88706f2543Smrg# Needs to be built before any files are compiled when using Sun compilers 89706f2543Smrg# so in*/out* inline definitions are properly processed. 90706f2543Smrg 91706f2543SmrgBUILT_SOURCES += os-support/solaris/solaris-@SOLARIS_INOUT_ARCH@.il 92706f2543Smrg 93706f2543Smrgos-support/solaris/solaris-@SOLARIS_INOUT_ARCH@.il: 94706f2543Smrg cd os-support/solaris ; \ 95706f2543Smrg $(MAKE) $(AM_MAKEFLAGS) solaris-@SOLARIS_INOUT_ARCH@.il 96706f2543Smrgendif 97706f2543Smrg 98706f2543Smrg# do not use $(mkdir_p) if you want automake 1.7 to work 99706f2543Smrginstall-data-local: 100706f2543Smrg mkdir -p $(DESTDIR)$(logdir) 101706f2543Smrg 102706f2543Smrg 103706f2543Smrginstall-exec-local: install-binPROGRAMS 104706f2543Smrg (cd $(DESTDIR)$(bindir) && rm -f X && ln -s Xorg X) 105706f2543Smrgif INSTALL_SETUID 106706f2543Smrg chown root $(DESTDIR)$(bindir)/Xorg 107706f2543Smrg chmod u+s $(DESTDIR)$(bindir)/Xorg 108706f2543Smrgendif 109706f2543Smrg 110706f2543Smrg# Use variables from XORG_MANPAGE_SECTIONS and X Server configuration 111706f2543Smrg# Do not include manpages.am as values are not appropriate for rc files 112706f2543SmrgCONF_SUBSTS = -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' \ 113706f2543Smrg -e 's|MODULEPATH|$(DEFAULT_MODULE_PATH)|g' \ 114706f2543Smrg -e 's|DEFAULTFONTPATH|$(COMPILEDDEFAULTFONTPATH)|g' 115706f2543Smrg 116706f2543Smrgxorg.conf.example: xorgconf.cpp 117706f2543Smrg $(AM_V_GEN)$(SED) $(CONF_SUBSTS) < $(srcdir)/xorgconf.cpp > $@ 118706f2543Smrg 119706f2543Smrgrelink: 120706f2543Smrg $(AM_V_at)rm -f Xorg && $(MAKE) Xorg 121