Skip to content

Commit 6d50f8f

Browse files
committed
Add Autotools build system (automake, autconf)
This adds the familiar autotools build system and associated documentation for Linux, FreeBSD, Mac, MinGW, and Cygwin. The old Makefiles have been kept, and where appropriate have been renamed Makefile-manual. Thanks to Peter Stuge, Ludovic Rousseau, Xiaofan Chen, Alex Dupre, and Segher Boessenkool for providing testing, review, and suggestions, and to Ludovic Rousseau for providing patches which contributed to this commit.
1 parent 567304b commit 6d50f8f

26 files changed

+744
-75
lines changed

Diff for: .gitignore

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
# Autotools-added generated files
3+
Makefile.in
4+
aclocal.m4
5+
autom4te.cache/
6+
config.guess
7+
config.h.in
8+
config.sub
9+
configure
10+
depcomp
11+
install-sh
12+
libusb/Makefile.in
13+
linux/Makefile.in
14+
ltmain.sh
15+
mac/Makefile.in
16+
missing
17+
testgui/Makefile.in
18+
windows/Makefile.in
19+
20+
Makefile
21+
config.h
22+
config.log
23+
config.status
24+
stamp-h1
25+
libtool

Diff for: Makefile.am

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
2+
ACLOCAL_AMFLAGS = -I m4
3+
4+
if OS_FREEBSD
5+
pkgconfigdir=$(prefix)/libdata/pkgconfig
6+
else
7+
pkgconfigdir=$(libdir)/pkgconfig
8+
endif
9+
10+
if OS_LINUX
11+
pkgconfig_DATA=pc/hidapi-hidraw.pc pc/hidapi-libusb.pc
12+
else
13+
pkgconfig_DATA=pc/hidapi.pc
14+
endif
15+
16+
SUBDIRS=
17+
18+
if OS_LINUX
19+
SUBDIRS += linux libusb
20+
endif
21+
22+
if OS_DARWIN
23+
SUBDIRS += mac
24+
endif
25+
26+
if OS_FREEBSD
27+
SUBDIRS += libusb
28+
endif
29+
30+
if OS_WINDOWS
31+
SUBDIRS += windows
32+
endif
33+
34+
SUBDIRS += hidtest
35+
36+
if BUILD_TESTGUI
37+
SUBDIRS += testgui
38+
endif
39+
40+
EXTRA_DIST = udev doxygen
41+
42+
dist_doc_DATA = \
43+
README.txt \
44+
AUTHORS.txt \
45+
LICENSE-bsd.txt \
46+
LICENSE-gpl3.txt \
47+
LICENSE-orig.txt \
48+
LICENSE.txt
49+
50+
SCMCLEAN_TARGETS= \
51+
aclocal.m4 \
52+
config.guess \
53+
config.sub \
54+
configure \
55+
config.h.in \
56+
depcomp \
57+
install-sh \
58+
ltmain.sh \
59+
missing \
60+
mac/Makefile.in \
61+
testgui/Makefile.in \
62+
libusb/Makefile.in \
63+
Makefile.in \
64+
linux/Makefile.in \
65+
windows/Makefile.in \
66+
m4/libtool.m4 \
67+
m4/lt~obsolete.m4 \
68+
m4/ltoptions.m4 \
69+
m4/ltsugar.m4 \
70+
m4/ltversion.m4
71+
72+
SCMCLEAN_DIR_TARGETS = \
73+
autom4te.cache
74+
75+
scm-clean: distclean
76+
rm -f $(SCMCLEAN_TARGETS)
77+
rm -Rf $(SCMCLEAN_DIR_TARGETS)

0 commit comments

Comments
 (0)