Makefile.am revision 05b261ec
1include $(top_srcdir)/cpprules.in 2 3if DRI 4DRI_SUBDIR = dri 5endif 6 7if XF86UTILS 8XF86UTILS_SUBDIR = utils 9endif 10 11if MFB 12MFB_SUBDIR = xf1bpp xf4bpp 13endif 14 15if CFB 16CFB_SUBDIR = xf8_16bpp xf8_32bpp 17endif 18 19DOC_SUBDIR = doc 20 21SUBDIRS = 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) 25 26DIST_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 30 31bin_PROGRAMS = Xorg 32 33AM_CFLAGS = $(DIX_CFLAGS) @XORG_CFLAGS@ 34INCLUDES = @XORG_INCS@ 35 36Xorg_SOURCES = xorg.c 37 38# libxorgos and libcommon need symbols from each other 39noinst_LTLIBRARIES = libosandcommon.la 40libosandcommon_la_SOURCES = osandcommon.c 41libosandcommon_la_LIBADD = \ 42 os-support/libxorgos.la \ 43 common/libcommon.la 44 45osandcommon.c xorg.c: 46 touch $@ 47 48DISTCLEANFILES = osandcommon.c xorg.c 49 50XORG_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@ 63 64Xorg_DEPENDENCIES = \ 65 $(XORG_LIBS) 66 67Xorg_LDADD = $(XORG_LIBS) \ 68 @XSERVER_LIBS@ \ 69 dixmods/libxorgxkb.la 70 71Xorg_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG) 72 73BUILT_SOURCES = xorg.conf.example 74DISTCLEANFILES += xorg.conf.example xorg.conf.example.pre 75EXTRA_DIST = xorgconf.cpp 76 77if 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. 80 81BUILT_SOURCES += os-support/solaris/solaris-@SOLARIS_INOUT_ARCH@.il 82 83os-support/solaris/solaris-@SOLARIS_INOUT_ARCH@.il: 84 cd os-support/solaris ; make solaris-@SOLARIS_INOUT_ARCH@.il 85endif 86 87# do not use $(mkdir_p) if you want automake 1.7 to work 88install-data-local: 89 mkdir -p $(DESTDIR)$(logdir) 90 91 92install-exec-local: install-binPROGRAMS 93 (cd $(DESTDIR)$(bindir) && rm -f X && ln -s Xorg X) 94if INSTALL_SETUID 95 chown root $(DESTDIR)$(bindir)/Xorg 96 chmod u+s $(DESTDIR)$(bindir)/Xorg 97endif 98 99optionsdir = $(libdir)/X11 100dist_options_DATA = Options 101 102CPP_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)\" 111 112relink: 113 rm -f Xorg && $(MAKE) Xorg 114 115xorg.conf.example.pre: xorgconf.cpp 116 cp $(srcdir)/xorgconf.cpp $@ 117