xserver

xserver with xephyr scale patch
git clone https://git.neptards.moe/u3shit/xserver.git
Log | Files | Refs | README | LICENSE

Makefile.am (4051B)


      1 
      2 if DRI
      3 DRI_SUBDIR = dri
      4 DRI_LIB = dri/libdri.la
      5 endif
      6 
      7 if DRI2
      8 DRI2_SUBDIR = dri2
      9 DRI2_LIB = dri2/libdri2.la
     10 endif
     11 
     12 if DRI3
     13 DRI3_BUILDDIR = $(top_builddir)/dri3
     14 DRI3_LIB = $(DRI3_BUILDDIR)/libdri3.la
     15 endif
     16 
     17 if GLX
     18 GLXVND_LIB = $(top_builddir)/glx/libglxvnd.la
     19 endif
     20 
     21 if GLAMOR_EGL
     22 GLAMOR_EGL_SUBDIR = glamor_egl
     23 endif
     24 
     25 if XF86UTILS
     26 XF86UTILS_SUBDIR = utils
     27 endif
     28 
     29 if VGAHW
     30 VGAHW_SUBDIR = vgahw
     31 endif
     32 
     33 if INT10MODULE
     34 INT10_SUBDIR = int10
     35 endif
     36 
     37 SUBDIRS = common ddc x86emu $(INT10_SUBDIR) os-support parser \
     38 	  ramdac $(VGAHW_SUBDIR) loader modes $(DRI_SUBDIR) \
     39 	  $(DRI2_SUBDIR) . i2c dixmods xkb \
     40 	  fbdevhw shadowfb exa $(XF86UTILS_SUBDIR) doc man \
     41 	  $(GLAMOR_EGL_SUBDIR) drivers
     42 
     43 DIST_SUBDIRS = common ddc i2c x86emu int10 fbdevhw os-support \
     44                parser ramdac shadowfb vgahw \
     45                loader dixmods xkb dri dri2 exa modes \
     46 	       utils doc man glamor_egl drivers
     47 
     48 bin_PROGRAMS = Xorg
     49 nodist_Xorg_SOURCES = sdksyms.c
     50 
     51 AM_CFLAGS = $(DIX_CFLAGS) @XORG_CFLAGS@
     52 AM_CPPFLAGS = $(XORG_INCS) -I$(srcdir)/parser \
     53 	-I$(srcdir)/ddc -I$(srcdir)/i2c -I$(srcdir)/modes -I$(srcdir)/ramdac \
     54 	-I$(srcdir)/dri -I$(srcdir)/dri2 -I$(top_srcdir)/dri3
     55 
     56 LOCAL_LIBS = \
     57             $(MAIN_LIB) \
     58             $(XSERVER_LIBS) \
     59             loader/libloader.la \
     60             common/libcommon.la \
     61             os-support/libxorgos.la \
     62             parser/libxf86config.la \
     63             dixmods/libdixmods.la \
     64             modes/libxf86modes.la \
     65             ramdac/libramdac.la \
     66             ddc/libddc.la \
     67             i2c/libi2c.la \
     68             $(XORG_LIBS) \
     69             xkb/libxorgxkb.la \
     70             $(DRI_LIB) \
     71             $(DRI2_LIB) \
     72 	    $(DRI3_LIB) \
     73 	    $(GLXVND_LIB) \
     74 	    $(top_builddir)/fb/libfb.la \
     75 	    $(top_builddir)/miext/sync/libsync.la \
     76             $(top_builddir)/mi/libmi.la \
     77             $(top_builddir)/os/libos.la \
     78 	    $(top_builddir)/Xext/libXvidmode.la
     79 
     80 Xorg_LDADD = \
     81             $(LOCAL_LIBS) \
     82             $(XORG_SYS_LIBS) \
     83             $(XSERVER_SYS_LIBS)
     84 Xorg_DEPENDENCIES = $(LOCAL_LIBS)
     85 
     86 Xorg_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG)
     87 
     88 if SUID_WRAPPER
     89 wrapexecdir = $(SUID_WRAPPER_DIR)
     90 wrapexec_PROGRAMS = Xorg.wrap
     91 Xorg_wrap_SOURCES = xorg-wrapper.c
     92 endif
     93 
     94 BUILT_SOURCES = xorg.conf.example
     95 DISTCLEANFILES = xorg.conf.example
     96 EXTRA_DIST = xorgconf.cpp
     97 
     98 # Without logdir, X will post an error on the terminal and will not start
     99 install-data-local:
    100 	$(AM_V_GEN)$(MKDIR_P) $(DESTDIR)$(logdir)
    101 if CYGWIN
    102 	$(INSTALL_DATA) libXorg.exe.a $(DESTDIR)$(libdir)/libXorg.exe.a
    103 endif
    104 
    105 install-exec-hook:
    106 	(cd $(DESTDIR)$(bindir) && rm -f X && $(LN_S) Xorg$(EXEEXT) X)
    107 if INSTALL_SETUID
    108 	chown 0 $(DESTDIR)$(bindir)/Xorg
    109 	chmod u+s $(DESTDIR)$(bindir)/Xorg
    110 endif
    111 if SUID_WRAPPER
    112 	$(MKDIR_P) $(DESTDIR)$(SUID_WRAPPER_DIR)
    113 	mv $(DESTDIR)$(bindir)/Xorg $(DESTDIR)$(SUID_WRAPPER_DIR)/Xorg
    114 	${INSTALL} -m 755 Xorg.sh $(DESTDIR)$(bindir)/Xorg
    115 	-chown 0 $(DESTDIR)$(SUID_WRAPPER_DIR)/Xorg.wrap && chmod u+s $(DESTDIR)$(SUID_WRAPPER_DIR)/Xorg.wrap
    116 endif
    117 
    118 uninstall-local:
    119 if CYGWIN
    120 	$(AM_V_at)rm -f $(DESTDIR)$(libdir)/libXorg.exe.a
    121 endif
    122 
    123 uninstall-hook:
    124 	$(AM_V_at)rm -f $(DESTDIR)$(bindir)/X
    125 
    126 # Use variables from XORG_MANPAGE_SECTIONS and X Server configuration
    127 # Do not include manpages.am as values are not appropriate for rc files
    128 CONF_SUBSTS =	-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' \
    129 		-e 's|MODULEPATH|$(DEFAULT_MODULE_PATH)|g' \
    130 		-e 's|DEFAULTFONTPATH|$(COMPILEDDEFAULTFONTPATH)|g'
    131 
    132 xorg.conf.example: xorgconf.cpp
    133 	$(AM_V_GEN)$(SED) $(CONF_SUBSTS) < $(srcdir)/xorgconf.cpp > $@
    134 
    135 relink:
    136 	$(AM_V_at)rm -f Xorg$(EXEEXT) && $(MAKE) Xorg$(EXEEXT)
    137 
    138 CLEANFILES = sdksyms.c sdksyms.dep Xorg.sh
    139 EXTRA_DIST += sdksyms.sh
    140 
    141 sdksyms.dep sdksyms.c: sdksyms.sh
    142 	$(AM_V_GEN)CPP='$(CPP)' AWK='$(AWK)' $(SHELL) $(srcdir)/sdksyms.sh $(top_srcdir) $(CFLAGS) $(AM_CFLAGS) $(AM_CPPFLAGS)
    143 
    144 SDKSYMS_DEP = sdksyms.dep
    145 -include $(SDKSYMS_DEP)
    146 
    147 i2c/libi2c.la:
    148 	$(AM_V_at)cd i2c && $(MAKE) libi2c.la
    149 
    150 dixmods/libdixmods.la:
    151 	$(AM_V_at)cd dixmods && $(MAKE) libdixmods.la
    152 
    153 xkb/libxorgxkb.la:
    154 	$(AM_V_at)cd xkb && $(MAKE) libxorgxkb.la