]> diplodocus.org Git - xorg-xinput/blobdiff - src/Makefile.am
xinput 1.4.0
[xorg-xinput] / src / Makefile.am
index a43db58cede59e057c4e34e450b1f628b57cadb4..1efddb888b263ff048b09dca267572e87e43990f 100644 (file)
 
 bin_PROGRAMS = xinput
 
-xinput_CFLAGS = $(XINPUT_CFLAGS)
-xinput_LDADD = $(XINPUT_LIBS) -lm
+AM_CFLAGS = $(XINPUT_CFLAGS)
+xinput_LDADD = $(XINPUT_LIBS)
+
+
+if HAVE_XI2
+    xinput2_files = hierarchy.c setcp.c
+endif # HAVE_XI2
 
 xinput_SOURCES = \
     buttonmap.c \
@@ -32,7 +37,10 @@ xinput_SOURCES = \
     setmode.c \
     setptr.c \
     state.c \
+    property.c \
     test.c \
     version.c \
     xinput.c \
-    xinput.h
+    xinput.h \
+    $(xinput2_files)
+