]> diplodocus.org Git - xorg-xinput/blobdiff - src/Makefile.am
Clean up the detection of XI2
[xorg-xinput] / src / Makefile.am
index 39580a5876d89e72b49a0a1837d1bb8d32849083..6a747ef72f952bfadd77360058cd216b422f3a13 100644 (file)
@@ -24,17 +24,22 @@ bin_PROGRAMS = xinput
 AM_CFLAGS = $(XINPUT_CFLAGS)
 xinput_LDADD = $(XINPUT_LIBS)
 
+
+if HAVE_XI2
+    xinput2_files = hierarchy.c setcp.c
+endif # HAVE_XI2
+
 xinput_SOURCES = \
     buttonmap.c \
     feedback.c \
-    hierarchy.c \
     list.c \
     setint.c \
-    setcp.c \
     setmode.c \
     setptr.c \
     state.c \
     test.c \
     version.c \
     xinput.c \
-    xinput.h
+    xinput.h \
+    $(xinput2_files)
+