diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-12-22 16:55:39 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-12-22 16:55:39 +0100 |
commit | 461f7a6b597b27348c2ca1084d51ad4c95c65dd3 (patch) | |
tree | be07b1bc2a349d560c14c5d9e65606f500f9300d /hidapi/testgui/Makefile.am | |
parent | 8284c928e8fa2df8fbc6a1508e8411c6bfd48533 (diff) | |
parent | c41cb82ea7499c132546c1ab6f798deda6a9d7af (diff) | |
download | libnitrokey-461f7a6b597b27348c2ca1084d51ad4c95c65dd3.tar.gz libnitrokey-461f7a6b597b27348c2ca1084d51ad4c95c65dd3.tar.bz2 |
Merge commit 'c41cb82ea7499c132546c1ab6f798deda6a9d7af' as 'hidapi'
Diffstat (limited to 'hidapi/testgui/Makefile.am')
-rw-r--r-- | hidapi/testgui/Makefile.am | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/hidapi/testgui/Makefile.am b/hidapi/testgui/Makefile.am new file mode 100644 index 0000000..1c02f3f --- /dev/null +++ b/hidapi/testgui/Makefile.am @@ -0,0 +1,43 @@ + +AM_CPPFLAGS = -I$(top_srcdir)/hidapi/ $(CFLAGS_TESTGUI) + +if OS_LINUX +## Linux +bin_PROGRAMS = hidapi-hidraw-testgui hidapi-libusb-testgui + +hidapi_hidraw_testgui_SOURCES = test.cpp +hidapi_hidraw_testgui_LDADD = $(top_builddir)/linux/libhidapi-hidraw.la $(LIBS_TESTGUI) + +hidapi_libusb_testgui_SOURCES = test.cpp +hidapi_libusb_testgui_LDADD = $(top_builddir)/libusb/libhidapi-libusb.la $(LIBS_TESTGUI) +else +## Other OS's +bin_PROGRAMS = hidapi-testgui + +hidapi_testgui_SOURCES = test.cpp +hidapi_testgui_LDADD = $(top_builddir)/$(backend)/libhidapi.la $(LIBS_TESTGUI) +endif + +if OS_DARWIN +hidapi_testgui_SOURCES = test.cpp mac_support_cocoa.m mac_support.h +# Rules for copying the binary and its dependencies into the app bundle. +TestGUI.app/Contents/MacOS/hidapi-testgui$(EXEEXT): hidapi-testgui$(EXEEXT) + $(srcdir)/copy_to_bundle.sh + +all: all-am TestGUI.app/Contents/MacOS/hidapi-testgui$(EXEEXT) + +endif + +EXTRA_DIST = \ + copy_to_bundle.sh \ + Makefile-manual \ + Makefile.freebsd \ + Makefile.linux \ + Makefile.mac \ + Makefile.mingw \ + TestGUI.app.in \ + testgui.sln \ + testgui.vcproj + +distclean-local: + rm -rf TestGUI.app |