~registry/dolphin-emu/triforce

« back to all changes in this revision

Viewing changes to Externals/libusbx/libusb/Makefile.am

  • Committer: Sérgio Benjamim
  • Date: 2015-02-13 05:54:40 UTC
  • Revision ID: sergio_br2@yahoo.com.br-20150213055440-ey2rt3sjpy27km78
Dolphin Triforce branch from code.google, commit b957980 (4.0-315).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
all: libusb-1.0.la libusb-1.0.dll
 
2
 
 
3
lib_LTLIBRARIES = libusb-1.0.la
 
4
 
 
5
POSIX_POLL_SRC = os/poll_posix.c
 
6
LINUX_USBFS_SRC = os/linux_usbfs.c
 
7
DARWIN_USB_SRC = os/darwin_usb.c
 
8
OPENBSD_USB_SRC = os/openbsd_usb.c
 
9
WINDOWS_USB_SRC = os/poll_windows.c os/windows_usb.c libusb-1.0.rc libusb-1.0.def
 
10
WINCE_USB_SRC = os/wince_usb.c os/wince_usb.h
 
11
 
 
12
EXTRA_DIST = $(LINUX_USBFS_SRC) $(DARWIN_USB_SRC) $(OPENBSD_USB_SRC) \
 
13
        $(WINDOWS_USB_SRC) $(WINCE_USB_SRC) \
 
14
        $(POSIX_POLL_SRC) \
 
15
        os/threads_posix.c os/threads_windows.c \
 
16
        os/linux_udev.c os/linux_netlink.c
 
17
 
 
18
if OS_LINUX
 
19
 
 
20
if USE_UDEV
 
21
OS_SRC = $(LINUX_USBFS_SRC) $(POSIX_POLL_SRC) \
 
22
        os/linux_udev.c
 
23
else
 
24
OS_SRC = $(LINUX_USBFS_SRC) $(POSIX_POLL_SRC) \
 
25
        os/linux_netlink.c
 
26
endif
 
27
 
 
28
endif
 
29
 
 
30
if OS_DARWIN
 
31
OS_SRC = $(DARWIN_USB_SRC) $(POSIX_POLL_SRC)
 
32
AM_CFLAGS_EXT = -no-cpp-precomp
 
33
endif
 
34
 
 
35
if OS_OPENBSD
 
36
OS_SRC = $(OPENBSD_USB_SRC) $(POSIX_POLL_SRC)
 
37
endif
 
38
 
 
39
if OS_WINDOWS
 
40
OS_SRC = $(WINDOWS_USB_SRC)
 
41
 
 
42
.rc.lo:
 
43
        $(AM_V_GEN)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --tag=RC --mode=compile $(RC) $(RCFLAGS) -i $< -o $@
 
44
 
 
45
libusb-1.0.rc: version.h version_nano.h
 
46
endif
 
47
 
 
48
libusb-1.0.dll: libusb-1.0.def
 
49
if CREATE_IMPORT_LIB
 
50
# Rebuild the import lib from the .def so that MS and MinGW DLLs can be interchanged
 
51
        $(AM_V_GEN)$(DLLTOOL) $(DLLTOOLFLAGS) --kill-at --input-def $(srcdir)/libusb-1.0.def --dllname $@ --output-lib .libs/$@.a
 
52
endif
 
53
 
 
54
if THREADS_POSIX
 
55
THREADS_SRC = os/threads_posix.h os/threads_posix.c
 
56
else
 
57
THREADS_SRC = os/threads_windows.h os/threads_windows.c
 
58
endif
 
59
 
 
60
libusb_1_0_la_CFLAGS = $(AM_CFLAGS)
 
61
libusb_1_0_la_LDFLAGS = $(LTLDFLAGS)
 
62
libusb_1_0_la_SOURCES = libusbi.h core.c descriptor.c io.c strerror.c sync.c \
 
63
        os/linux_usbfs.h os/darwin_usb.h os/windows_usb.h os/windows_common.h \
 
64
        hotplug.h hotplug.c $(THREADS_SRC) $(OS_SRC) \
 
65
        os/poll_posix.h os/poll_windows.h
 
66
 
 
67
hdrdir = $(includedir)/libusb-1.0
 
68
hdr_HEADERS = libusb.h