File: Makefile.am

package info (click to toggle)
libusb 2%3A0.1.12-25
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,312 kB
  • ctags: 1,345
  • sloc: sh: 8,374; ansic: 3,271; cpp: 960; makefile: 226
file content (94 lines) | stat: -rw-r--r-- 2,235 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
## Process this file with automake to produce Makefile.in

# require automake 1.4
# gnu strictness chokes on README being autogenerated
AUTOMAKE_OPTIONS = 1.4 foreign

SUBDIRS = . tests doc

AM_CFLAGS = -Werror

configincludedir = $(pkglibdir)/include

bin_SCRIPTS = libusb-config

libusb-config: libusb-config.in

EXTRA_DIST = LICENSE libusb.spec.in libusb.spec libusb-config.in README.in README \
             INSTALL.libusb.in INSTALL.libusb Doxyfile apidocs/header.html \
             apidocs/footer.html apidocs/doxygen.css apidocs/doxygen.png libusb.pc.in
EXTRA_libusb_la_SOURCE = linux.c linux.h bsd.c darwin.c dummy.c

lib_LTLIBRARIES = libusb.la libusbpp.la

pkgconfig_DATA = libusb.pc

if LINUX_API
OS_SUPPORT = linux.c linux.h
else
if BSD_API
OS_SUPPORT = bsd.c
else
if DARWIN_API
OS_SUPPORT = darwin.c
AM_CFLAGS_EXT = -no-cpp-precomp
LDADDS = -Wl,-framework -Wl,IOKit -Wl,-framework -Wl,CoreFoundation -Wl,-prebind -no-undefined
PREBIND_FLAGS=-Wl,-seg1addr,0x01666000
PREBIND_FLAGSPP=-Wl,-seg1addr,0x01676000
else
OS_SUPPORT = dummy.c
endif
endif
endif

AM_CFLAGS += $(AM_CFLAGS_EXT)

AM_CPPFLAGS = -I.
AM_CXXFLAGS = 

libusb_la_SOURCES = usb.c usbi.h error.c error.h descriptors.c $(OS_SUPPORT)
libusbpp_la_SOURCES = usbpp.cpp usbpp.h

libusbpp_la_DEPENDENCIES = libusb.la

# Do not add usb.h to *_SOURCES, regardless of dependencies.
# It would be added to the dist tarball, which it shouldn't be.
nodist_include_HEADERS = usb.h
include_HEADERS = usbpp.h

libusb_la_LDFLAGS = \
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
	-release $(LT_RELEASE) \
	-export-dynamic \
	$(LDADDS) $(PREBIND_FLAGS)

libusbpp_la_LDFLAGS = \
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
	-release $(LT_RELEASE) \
	-export-dynamic \
	$(LDADDS) -lusb $(PREBIND_FLAGSPP)

.PHONY: files release snapshot

files:
	@files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
	  echo $$p; \
	done

release:
	$(MAKE) distcheck

snapshot:
	$(MAKE) dist distdir=$(PACKAGE)-`date +"%Y%m%d"`

## generate API documentation with doxygen
apidox:
	$(MAKE) apidox-am-@LIBUSB_HAS_DOXYGEN@

apidox-am-no:
apidox-am-yes:
	@echo "*** Creating API documentation main page"; \
	doxygen Doxyfile

.PHONY: apidox-am-yes apidox-am-no apidox