1
2AM_CPPFLAGS = -I$(top_srcdir)/hidapi/ $(CFLAGS_TESTGUI)
3
4if OS_LINUX
5## Linux
6bin_PROGRAMS = hidapi-hidraw-testgui hidapi-libusb-testgui
7
8hidapi_hidraw_testgui_SOURCES = test.cpp
9hidapi_hidraw_testgui_LDADD = $(top_builddir)/linux/libhidapi-hidraw.la $(LIBS_TESTGUI)
10
11hidapi_libusb_testgui_SOURCES = test.cpp
12hidapi_libusb_testgui_LDADD = $(top_builddir)/libusb/libhidapi-libusb.la $(LIBS_TESTGUI)
13else
14## Other OS's
15bin_PROGRAMS = hidapi-testgui
16
17hidapi_testgui_SOURCES = test.cpp
18hidapi_testgui_LDADD = $(top_builddir)/$(backend)/libhidapi.la $(LIBS_TESTGUI)
19endif
20
21if OS_DARWIN
22hidapi_testgui_SOURCES = test.cpp mac_support_cocoa.m mac_support.h
23# Rules for copying the binary and its dependencies into the app bundle.
24TestGUI.app/Contents/MacOS/hidapi-testgui$(EXEEXT): hidapi-testgui$(EXEEXT)
25	$(srcdir)/copy_to_bundle.sh
26
27all: all-am TestGUI.app/Contents/MacOS/hidapi-testgui$(EXEEXT)
28
29endif
30
31EXTRA_DIST = \
32 copy_to_bundle.sh \
33 Makefile-manual \
34 Makefile.freebsd \
35 Makefile.linux \
36 Makefile.mac \
37 Makefile.mingw \
38 TestGUI.app.in \
39 testgui.sln \
40 testgui.vcproj
41
42distclean-local:
43	rm -rf TestGUI.app
44