X-Git-Url: https://diplodocus.org/git/xorg-xinput/blobdiff_plain/8806f3db5417f1c5946b6589cf2f043e9e7c68d3..7f046c957d4529249bcb69b35f6513411f6efcf5:/src/Makefile.am diff --git a/src/Makefile.am b/src/Makefile.am index a43db58..6ab00f3 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -21,8 +21,13 @@ 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 property.c +endif # HAVE_XI2 xinput_SOURCES = \ buttonmap.c \ @@ -35,4 +40,6 @@ xinput_SOURCES = \ test.c \ version.c \ xinput.c \ - xinput.h + xinput.h \ + $(xinput2_files) +