# Most deps like GLib, Xorg-Libs, gobject-introspection brought in from
# Systemd-Extras in main Makefile and not listed here or commented in targets
xorg = xcb-util xcb-util-image xcb-util-keysyms xcb-util-renderutil \
	   xcb-util-wm xcb-util-cursor libva Mesa libva-Mesa xbitmaps Xorg-Apps \
	   xcursor-themes Xorg-Fonts librsvg Xorg-Server Xorg-Drivers \
	   twm xterm xclock xinit

all: $(xorg)

at-spi2-atk : at-spi2-core ATK
	@echo $@

at-spi2-core : # dbus GLib Xorg-Libs gobject-introspection GTK-Doc
	@echo $@

ATK : # GLib gobject-introspection GTK-Doc
	@echo $@

Cairo : Pixman libdrm # Fontconfig GLib GTK-Doc libpng libxml2 LZO Valgrind \
	Xorg-Libs
	@echo $@

Cairo-Extra : Cogl GTK2 GTK3 Poppler QT
	@echo $@

dejavu-fonts :
	@echo $@

docutils :
	@echo $@

freeglut : GLU #CMake
	@echo $@

FriBidi :
	@echo $@

gdk-pixbuf : libjpeg-turbo libtiff \
	# librsvg runtime \
	 GLib libpng shared-mime-info gobject-introspection GTK-Doc
	@echo $@

GLU : Mesa
	@echo $@

GTK2 : ATK gdk-pixbuf Pango hicolor-icon-theme
	@echo $@

GTK3 : at-spi2-atk gdk-pixbuf hicolor-icon-theme ISO-Codes \
	JSON-GLib libepoxy Pango sassc \
	# libxkbcommon Wayland wayland-protocols DocBook-utils GTK-Doc
	@echo $@

GTK3-Extras : adwaita-icon-theme colord Cups PyAtSpi2 rest \
	@echo $@

HarfBuzz-Cairo : Cairo
	@echo $@

hicolor-icon-theme :
	@echo $@

ISO-Codes :
	@echo $@

JBIG-KIT :
	@echo $@

JSON-GLib : # GLib gobject-introspection GTK-Doc
	@echo $@

libdrm : docutils
	@echo $@

libepoxy : Mesa
	@echo $@

libevdev :
	@echo $@

libgudev : # GLib gobject-introspection GTK-Doc
	@echo $@

libinput : GTK3 libevdev libwacom mtdev
	@echo $@

libjpeg-turbo : NASM # CMake yasm
	@echo $@

librsvg : gdk-pixbuf Cairo Pango #rustc gobject-introspection Vala GTK-Doc
	@echo $@

libtiff : Mesa freeglut JBIG-KIT # CMake
	@echo $@

libtiff-webp :
	@echo $@

libva : libdrm
	@echo $@

libva-Mesa : Mesa
	@echo $@

libvdpau : # Xorg-Libs Graphviz
	@echo $@

libwacom : libgudev
	@echo $@

libxcvt :
	@echo $@

Mesa : libdrm libva libvdpau # LLVM libgcrypt Nettle Valgrind
	@echo $@ https://gitlab.freedesktop.org/mesa/mesa.git

mtdev :
	@echo $@

NASM : # asciidoc xmlto
	@echo $@

Pango : HarfBuzz-Cairo FriBidi \
	# Fontconfig GLib gobject-introspection Xorg-Libs GTK-Doc
	@echo $@

Pixman :
	@echo $@

Pixman-GTK2 : GTK2
	@echo $@

Pixman-Extras : # GTK2 and libpng for tests and demos
	@echo $@

sassc :
	@echo $@

twm : Xorg-Legacy-Fonts Xorg-Server
	@echo $@

xbitmaps : # util-macros
	@echo $@

xcb-util : # libxcb
	@echo $@

xcb-util-cursor : xcb-util
	@echo $@

xcb-util-image : xcb-util
	@echo $@

xcb-util-keysyms : # libxcb
	@echo $@

xcb-util-renderutil : # libxcb
	@echo $@

xcb-util-wm : # libxcb
	@echo $@

xclock : # Xorg-Libs
	@echo $@

xcursor-themes : Xorg-Apps
	@echo $@

xinit : # Xorg-Libs
	@echo $@

Xorg-Apps : Mesa xbitmaps xcb-util # libpng Linux-PAM
	@echo $@

Xorg-Drivers : libevdev libinput mtdev Xorg-Server
	@echo $@

Xorg-Fonts : xcursor-themes
	@echo $@

Xorg-Legacy-Fonts : xcursor-themes
	@echo $@

Xorg-Server : libepoxy libxcvt Pixman-GTK2 xcb-util-keysyms xcb-util-image \
	xcb-util-renderutil xcb-util-wm Xorg-Fonts # xkeyboard-config Wayland \
	wayland-protocols Nettle libgcrypt fop
	@echo $@

xterm : dejavu-fonts Xorg-Apps # PCRE2 Valgrind
	@echo $@
=======
# Most deps like GLib, Xorg-Libs, gobject-introspection brought in from
# Systemd-Extras in main Makefile and not listed here or commented in targets
xorg = Systemd-Extras \
	   xcb-util xcb-util-image xcb-util-keysyms xcb-util-renderutil \
	   xcb-util-wm xcb-util-cursor libva Mesa libva-Mesa xbitmaps Xorg-Apps \
	   xcursor-themes Xorg-Fonts librsvg Xorg-Server Xorg-Drivers \
	   twm xterm xclock xinit

all: $(xorg)

at-spi2-atk : at-spi2-core ATK
	@echo $@

at-spi2-core : GLib Xorg-Libs gobject-introspection GTK-Doc # dbus
	@echo $@

ATK : GLib gobject-introspection GTK-Doc
	@echo $@

Cairo : Pixman libdrm Fontconfig GLib GTK-Doc libpng libxml2 LZO \
	Xorg-Libs # Valgrind
	@echo $@

Cairo-Extra : Cogl GTK2 GTK3 Poppler QT
	@echo $@

dejavu-fonts :
	@echo $@

docutils :
	@echo $@

freeglut : GLU CMake
	@echo $@

FriBidi :
	@echo $@

gdk-pixbuf : libjpeg-turbo libtiff \
	GLib libpng shared-mime-info gobject-introspection GTK-Doc \
	# librsvg-runtime	
	@echo $@

GLU : Mesa
	@echo $@

GTK2 : ATK gdk-pixbuf Pango hicolor-icon-theme
	@echo $@

GTK3 : at-spi2-atk gdk-pixbuf hicolor-icon-theme ISO-Codes \
	JSON-GLib libepoxy Pango sassc \
	libxkbcommon Wayland Wayland-Protocols DocBook-Utils GTK-Doc
	@echo $@

HarfBuzz-Cairo : Cairo
	@echo $@

hicolor-icon-theme :
	@echo $@

ISO-Codes :
	@echo $@

JBIG-KIT :
	@echo $@

JSON-GLib : GLib gobject-introspection GTK-Doc
	@echo $@

libdrm : docutils
	@echo $@

libepoxy : Mesa
	@echo $@

libevdev :
	@echo $@

libgudev : GLib gobject-introspection GTK-Doc
	@echo $@

libinput : GTK3 libevdev libwacom mtdev
	@echo $@

libjpeg-turbo : NASM CMake yasm
	@echo $@

librsvg : gdk-pixbuf Cairo Pango rustc gobject-introspection Vala GTK-Doc
	@echo $@

libtiff : Mesa freeglut JBIG-KIT CMake
	@echo $@

libtiff-webp :
	@echo $@

libva : libdrm
	@echo $@

libva-Mesa : Mesa
	@echo $@

libvdpau : Xorg-Libs Graphviz
	@echo $@

libwacom : libgudev
	@echo $@

Mesa : libdrm libva libvdpau LLVM libgcrypt Nettle # Valgrind
	@echo $@ https://gitlab.freedesktop.org/mesa/mesa.git

mtdev :
	@echo $@

NASM : asciidoc xmlto
	@echo $@

Pango : HarfBuzz-Cairo FriBidi \
	Fontconfig GLib gobject-introspection Xorg-Libs GTK-Doc
	@echo $@

Pixman :
	@echo $@

Pixman-GTK2 : GTK2
	@echo $@

sassc :
	@echo $@

twm : Xorg-Legacy-Fonts Xorg-Server
	@echo $@

xbitmaps : util-macros
	@echo $@

xcb-util : libxcb
	@echo $@

xcb-util-cursor : xcb-util
	@echo $@

xcb-util-image : xcb-util
	@echo $@

xcb-util-keysyms : libxcb
	@echo $@

xcb-util-renderutil : libxcb
	@echo $@

xcb-util-wm : libxcb
	@echo $@

xclock : Xorg-Libs
	@echo $@

xcursor-themes : Xorg-Apps
	@echo $@

xinit : Xorg-Libs
	@echo $@

Xorg-Apps : Mesa xbitmaps xcb-util libpng Linux-PAM
	@echo $@

Xorg-Drivers : libevdev libinput mtdev Xorg-Server
	@echo $@

Xorg-Fonts : xcursor-themes
	@echo $@

Xorg-Legacy-Fonts : xcursor-themes
	@echo $@

Xorg-Server : libepoxy Pixman-GTK2 xcb-util-keysyms xcb-util-image \
	xcb-util-renderutil xcb-util-wm Xorg-Fonts xkeyboard-config Wayland \
	Wayland-Protocols Nettle libgcrypt fop
	@echo $@

xterm : dejavu-fonts Xorg-Apps PCRE2 # Valgrind
	@echo $@