| 1 | AUTOMAKE_OPTIONS=nostdinc |
| 2 | ACLOCAL_AMFLAGS = -I m4 |
| 3 | |
| 4 | if COMPOSITE |
| 5 | COMPOSITE_DIR=composite |
| 6 | endif |
| 7 | |
| 8 | if GLX |
| 9 | GLX_DIR=glx |
| 10 | endif |
| 11 | |
| 12 | if DBE |
| 13 | DBE_DIR=dbe |
| 14 | endif |
| 15 | |
| 16 | if RECORD |
| 17 | RECORD_DIR=record |
| 18 | endif |
| 19 | |
| 20 | if DRI3 |
| 21 | DRI3_DIR=dri3 |
| 22 | endif |
| 23 | |
| 24 | if PRESENT |
| 25 | PRESENT_DIR=present |
| 26 | endif |
| 27 | |
| 28 | SUBDIRS = \ |
| 29 | doc \ |
| 30 | man \ |
| 31 | include \ |
| 32 | dix \ |
| 33 | fb \ |
| 34 | mi \ |
| 35 | Xext \ |
| 36 | miext \ |
| 37 | os \ |
| 38 | pseudoramiX \ |
| 39 | randr \ |
| 40 | render \ |
| 41 | Xi \ |
| 42 | xkb \ |
| 43 | $(DBE_DIR) \ |
| 44 | $(RECORD_DIR) \ |
| 45 | xfixes \ |
| 46 | damageext \ |
| 47 | $(COMPOSITE_DIR) \ |
| 48 | $(GLX_DIR) \ |
| 49 | $(PRESENT_DIR) \ |
| 50 | $(DRI3_DIR) \ |
| 51 | exa \ |
| 52 | config \ |
| 53 | hw \ |
| 54 | test |
| 55 | |
| 56 | if XORG |
| 57 | aclocaldir = $(datadir)/aclocal |
| 58 | aclocal_DATA = xorg-server.m4 |
| 59 | |
| 60 | pkgconfigdir = $(libdir)/pkgconfig |
| 61 | pkgconfig_DATA = xorg-server.pc |
| 62 | endif |
| 63 | |
| 64 | EXTRA_DIST = xorg-server.pc.in xorg-server.m4 autogen.sh |
| 65 | |
| 66 | DISTCHECK_CONFIGURE_FLAGS=\ |
| 67 | --with-xkb-path=$(XKB_BASE_DIRECTORY) \ |
| 68 | --with-xkb-bin-directory=$(XKB_BIN_DIRECTORY) \ |
| 69 | --with-xkb-output='$${datadir}/X11/xkb/compiled' |
| 70 | |
| 71 | .PHONY: ChangeLog INSTALL |
| 72 | |
| 73 | INSTALL: |
| 74 | $(INSTALL_CMD) |
| 75 | |
| 76 | ChangeLog: |
| 77 | $(CHANGELOG_CMD) |
| 78 | |
| 79 | dist-hook: ChangeLog INSTALL |
| 80 | |
| 81 | DIST_SUBDIRS = \ |
| 82 | doc \ |
| 83 | man \ |
| 84 | include \ |
| 85 | dix \ |
| 86 | fb \ |
| 87 | mi \ |
| 88 | Xext \ |
| 89 | miext \ |
| 90 | os \ |
| 91 | pseudoramiX \ |
| 92 | randr \ |
| 93 | render \ |
| 94 | Xi \ |
| 95 | xkb \ |
| 96 | dbe \ |
| 97 | record \ |
| 98 | xfixes \ |
| 99 | damageext \ |
| 100 | composite \ |
| 101 | glx \ |
| 102 | exa \ |
| 103 | config \ |
| 104 | dri3 \ |
| 105 | present \ |
| 106 | hw \ |
| 107 | test |
| 108 | |
| 109 | # gross hack |
| 110 | relink: all |
| 111 | $(AM_V_at)$(MAKE) -C hw relink |
| 112 | |
| 113 | install-headers: Makefile |
| 114 | +find . -name Makefile | while read m; do \ |
| 115 | if grep -q install-sdkHEADERS $$m; then \ |
| 116 | (cd `dirname "$$m"` && make install-sdkHEADERS) \ |
| 117 | fi \ |
| 118 | done |