sl@0: sl@0: AM_CPPFLAGS = -I$(top_srcdir)/hidapi/ $(CFLAGS_TESTGUI) sl@0: sl@0: if OS_LINUX sl@0: ## Linux sl@0: bin_PROGRAMS = hidapi-hidraw-testgui hidapi-libusb-testgui sl@0: sl@0: hidapi_hidraw_testgui_SOURCES = test.cpp sl@0: hidapi_hidraw_testgui_LDADD = $(top_builddir)/linux/libhidapi-hidraw.la $(LIBS_TESTGUI) sl@0: sl@0: hidapi_libusb_testgui_SOURCES = test.cpp sl@0: hidapi_libusb_testgui_LDADD = $(top_builddir)/libusb/libhidapi-libusb.la $(LIBS_TESTGUI) sl@0: else sl@0: ## Other OS's sl@0: bin_PROGRAMS = hidapi-testgui sl@0: sl@0: hidapi_testgui_SOURCES = test.cpp sl@0: hidapi_testgui_LDADD = $(top_builddir)/$(backend)/libhidapi.la $(LIBS_TESTGUI) sl@0: endif sl@0: sl@0: if OS_DARWIN sl@0: hidapi_testgui_SOURCES = test.cpp mac_support_cocoa.m mac_support.h sl@0: # Rules for copying the binary and its dependencies into the app bundle. sl@0: TestGUI.app/Contents/MacOS/hidapi-testgui$(EXEEXT): hidapi-testgui$(EXEEXT) sl@0: $(srcdir)/copy_to_bundle.sh sl@0: sl@0: all: all-am TestGUI.app/Contents/MacOS/hidapi-testgui$(EXEEXT) sl@0: sl@0: endif sl@0: sl@0: EXTRA_DIST = \ sl@0: copy_to_bundle.sh \ sl@0: Makefile-manual \ sl@0: Makefile.freebsd \ sl@0: Makefile.linux \ sl@0: Makefile.mac \ sl@0: Makefile.mingw \ sl@0: TestGUI.app.in \ sl@0: testgui.sln \ sl@0: testgui.vcproj sl@0: sl@0: distclean-local: sl@0: rm -rf TestGUI.app