1 ## Process this file with automake to produce Makefile.in
4 # gnu strictness chokes on README being autogenerated
5 AUTOMAKE_OPTIONS = 1.4 foreign
11 configincludedir = $(pkglibdir)/include
13 bin_SCRIPTS = libusb-config
15 libusb-config: libusb-config.in
17 EXTRA_DIST = LICENSE libusb.spec.in libusb.spec libusb-config.in README.in README \
18 INSTALL.libusb.in INSTALL.libusb Doxyfile apidocs/header.html \
19 apidocs/footer.html apidocs/doxygen.css apidocs/doxygen.png libusb.pc.in
20 EXTRA_libusb_la_SOURCE = linux.c linux.h bsd.c darwin.c
22 lib_LTLIBRARIES = libusb.la libusbpp.la
24 pkgconfig_DATA = libusb.pc
27 OS_SUPPORT = linux.c linux.h
34 AM_CFLAGS_EXT = -no-cpp-precomp
35 LDADDS = -Wl,-framework -Wl,IOKit -Wl,-framework -Wl,CoreFoundation -Wl,-prebind -no-undefined
36 PREBIND_FLAGS=-Wl,-seg1addr,0x01666000
37 PREBIND_FLAGSPP=-Wl,-seg1addr,0x01676000
44 AM_CFLAGS += $(AM_CFLAGS_EXT)
49 libusb_la_SOURCES = usb.c usbi.h error.c error.h descriptors.c $(OS_SUPPORT)
50 libusbpp_la_SOURCES = usbpp.cpp usbpp.h
52 libusbpp_la_DEPENDENCIES = libusb.la
54 # Do not add usb.h to *_SOURCES, regardless of dependencies.
55 # It would be added to the dist tarball, which it shouldn't be.
56 nodist_include_HEADERS = usb.h
57 include_HEADERS = usbpp.h
60 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
61 -release $(LT_RELEASE) \
63 $(LDADDS) $(PREBIND_FLAGS)
65 libusbpp_la_LDFLAGS = \
66 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
67 -release $(LT_RELEASE) \
69 $(LDADDS) -lusb $(PREBIND_FLAGSPP)
71 .PHONY: files release snapshot
74 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
82 $(MAKE) dist distdir=$(PACKAGE)-`date +"%Y%m%d"`
84 ## generate API documentation with doxygen
86 $(MAKE) apidox-am-@LIBUSB_HAS_DOXYGEN@
90 @echo "*** Creating API documentation main page"; \
93 .PHONY: apidox-am-yes apidox-am-no apidox