source: trunk/openjdk/jdk/make/javax/sound/SoundDefs.gmk

Last change on this file was 278, checked in by dmik, 14 years ago

trunk: Merged in openjdk6 b22 from branches/vendor/oracle.

File size: 3.0 KB
Line 
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
28SUBDIRS=
29EXTRA_SOUND_JNI_LIBS=
30
31#
32# Extra cc/linker flags.
33#
34# system dependent flags
35ifeq ($(PLATFORM), windows)
36 CPPFLAGS += -DX_PLATFORM=X_WINDOWS
37endif # PLATFORM windows
38
39ifeq ($(PLATFORM), os2)
40 # we reuse most of the Windows code
41 CPPFLAGS += -DX_PLATFORM=X_WINDOWS
42endif # PLATFORM os2
43
44ifeq ($(PLATFORM), linux)
45 CPPFLAGS += -DX_PLATFORM=X_LINUX
46endif # PLATFORM linux
47
48ifeq ($(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
61endif # PLATFORM solaris
62
63ifeq ($(ZERO_BUILD), true)
64 CPPFLAGS += -DX_ARCH=X_ZERO
65else
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
81endif
82
83
84# files needed for MIDI i/o
85MIDIFILES_c = \
86 MidiInDevice.c \
87 MidiInDeviceProvider.c \
88 MidiOutDevice.c \
89 MidiOutDeviceProvider.c \
90 PlatformMidi.c
91
92MIDIFILES_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
99PORTFILES_c = \
100 PortMixerProvider.c \
101 PortMixer.c
102
103PORTFILES_export = \
104 com/sun/media/sound/PortMixer.java \
105 com/sun/media/sound/PortMixerProvider.java
106
107# files needed for direct audio
108DAUDIOFILES_c = \
109 DirectAudioDeviceProvider.c \
110 DirectAudioDevice.c
111
112DAUDIOFILES_export = \
113 com/sun/media/sound/DirectAudioDeviceProvider.java \
114 com/sun/media/sound/DirectAudioDevice.java
115
116
Note: See TracBrowser for help on using the repository browser.