1 | #
|
---|
2 | # Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
|
---|
3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
---|
4 | #
|
---|
5 | # This code is free software; you can redistribute it and/or modify it
|
---|
6 | # under the terms of the GNU General Public License version 2 only, as
|
---|
7 | # published by the Free Software Foundation. Oracle designates this
|
---|
8 | # particular file as subject to the "Classpath" exception as provided
|
---|
9 | # by Oracle in the LICENSE file that accompanied this code.
|
---|
10 | #
|
---|
11 | # This code is distributed in the hope that it will be useful, but WITHOUT
|
---|
12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
---|
13 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
---|
14 | # version 2 for more details (a copy is included in the LICENSE file that
|
---|
15 | # accompanied this code).
|
---|
16 | #
|
---|
17 | # You should have received a copy of the GNU General Public License version
|
---|
18 | # 2 along with this work; if not, write to the Free Software Foundation,
|
---|
19 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
---|
20 | #
|
---|
21 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
---|
22 | # or visit www.oracle.com if you need additional information or have any
|
---|
23 | # questions.
|
---|
24 | #
|
---|
25 |
|
---|
26 | # defines common for all Java Sound native code
|
---|
27 |
|
---|
28 | SUBDIRS=
|
---|
29 | EXTRA_SOUND_JNI_LIBS=
|
---|
30 |
|
---|
31 | #
|
---|
32 | # Extra cc/linker flags.
|
---|
33 | #
|
---|
34 | # system dependent flags
|
---|
35 | ifeq ($(PLATFORM), windows)
|
---|
36 | CPPFLAGS += -DX_PLATFORM=X_WINDOWS
|
---|
37 | endif # PLATFORM windows
|
---|
38 |
|
---|
39 | ifeq ($(PLATFORM), os2)
|
---|
40 | # we reuse most of the Windows code
|
---|
41 | CPPFLAGS += -DX_PLATFORM=X_WINDOWS
|
---|
42 | endif # PLATFORM os2
|
---|
43 |
|
---|
44 | ifeq ($(PLATFORM), linux)
|
---|
45 | CPPFLAGS += -DX_PLATFORM=X_LINUX
|
---|
46 | endif # PLATFORM linux
|
---|
47 |
|
---|
48 | ifeq ($(PLATFORM), solaris)
|
---|
49 | CPPFLAGS += -DX_PLATFORM=X_SOLARIS
|
---|
50 |
|
---|
51 | # Solaris needs specific binding to libc
|
---|
52 | LDFLAGS += -lc
|
---|
53 |
|
---|
54 | #
|
---|
55 | # Turn off C++ exception handling.
|
---|
56 | #
|
---|
57 | ifneq ($(CC_VERSION),gcc)
|
---|
58 | CXXFLAGS += -noex
|
---|
59 | endif # CC_VERSION
|
---|
60 |
|
---|
61 | endif # PLATFORM solaris
|
---|
62 |
|
---|
63 | ifeq ($(ZERO_BUILD), true)
|
---|
64 | CPPFLAGS += -DX_ARCH=X_ZERO
|
---|
65 | else
|
---|
66 | ifeq ($(ARCH), i586)
|
---|
67 | CPPFLAGS += -DX_ARCH=X_I586
|
---|
68 | endif # ARCH i586
|
---|
69 |
|
---|
70 | ifeq ($(ARCH), sparc)
|
---|
71 | CPPFLAGS += -DX_ARCH=X_SPARC
|
---|
72 | endif # ARCH sparc
|
---|
73 |
|
---|
74 | ifeq ($(ARCH), sparcv9)
|
---|
75 | CPPFLAGS += -DX_ARCH=X_SPARCV9
|
---|
76 | endif # ARCH sparcv9
|
---|
77 |
|
---|
78 | ifeq ($(ARCH), amd64)
|
---|
79 | CPPFLAGS += -DX_ARCH=X_AMD64
|
---|
80 | endif # ARCH amd64
|
---|
81 | endif
|
---|
82 |
|
---|
83 |
|
---|
84 | # files needed for MIDI i/o
|
---|
85 | MIDIFILES_c = \
|
---|
86 | MidiInDevice.c \
|
---|
87 | MidiInDeviceProvider.c \
|
---|
88 | MidiOutDevice.c \
|
---|
89 | MidiOutDeviceProvider.c \
|
---|
90 | PlatformMidi.c
|
---|
91 |
|
---|
92 | MIDIFILES_export = \
|
---|
93 | com/sun/media/sound/MidiInDevice.java \
|
---|
94 | com/sun/media/sound/MidiInDeviceProvider.java \
|
---|
95 | com/sun/media/sound/MidiOutDevice.java \
|
---|
96 | com/sun/media/sound/MidiOutDeviceProvider.java
|
---|
97 |
|
---|
98 | # files needed for ports
|
---|
99 | PORTFILES_c = \
|
---|
100 | PortMixerProvider.c \
|
---|
101 | PortMixer.c
|
---|
102 |
|
---|
103 | PORTFILES_export = \
|
---|
104 | com/sun/media/sound/PortMixer.java \
|
---|
105 | com/sun/media/sound/PortMixerProvider.java
|
---|
106 |
|
---|
107 | # files needed for direct audio
|
---|
108 | DAUDIOFILES_c = \
|
---|
109 | DirectAudioDeviceProvider.c \
|
---|
110 | DirectAudioDevice.c
|
---|
111 |
|
---|
112 | DAUDIOFILES_export = \
|
---|
113 | com/sun/media/sound/DirectAudioDeviceProvider.java \
|
---|
114 | com/sun/media/sound/DirectAudioDevice.java
|
---|
115 |
|
---|
116 |
|
---|