author | gbenson |
Thu, 15 Oct 2009 13:27:59 +0100 | |
changeset 4111 | ffc9c33335f4 |
parent 2 | 90ce3da70b43 |
child 5506 | 202f599c92aa |
permissions | -rw-r--r-- |
2 | 1 |
# |
2 |
# Copyright 2002-2007 Sun Microsystems, Inc. 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. Sun designates this |
|
8 |
# particular file as subject to the "Classpath" exception as provided |
|
9 |
# by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
|
22 |
# CA 95054 USA or visit www.sun.com if you need additional information or |
|
23 |
# have any 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), linux) |
|
40 |
CPPFLAGS += -DX_PLATFORM=X_LINUX |
|
41 |
endif # PLATFORM linux |
|
42 |
||
43 |
ifeq ($(PLATFORM), solaris) |
|
44 |
CPPFLAGS += -DX_PLATFORM=X_SOLARIS |
|
45 |
||
46 |
# Solaris needs specific binding to libc |
|
47 |
LDFLAGS += -lc |
|
48 |
||
49 |
# |
|
50 |
# Turn off C++ exception handling. |
|
51 |
# |
|
52 |
ifneq ($(CC_VERSION),gcc) |
|
53 |
CXXFLAGS += -noex |
|
54 |
endif # CC_VERSION |
|
55 |
||
56 |
endif # PLATFORM solaris |
|
57 |
||
4111
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
58 |
ifeq ($(ZERO_BUILD), true) |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
59 |
CPPFLAGS += -DX_ARCH=X_ZERO |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
60 |
else |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
61 |
ifeq ($(ARCH), i586) |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
62 |
CPPFLAGS += -DX_ARCH=X_I586 |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
63 |
endif # ARCH i586 |
2 | 64 |
|
4111
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
65 |
ifeq ($(ARCH), sparc) |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
66 |
CPPFLAGS += -DX_ARCH=X_SPARC |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
67 |
endif # ARCH sparc |
2 | 68 |
|
4111
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
69 |
ifeq ($(ARCH), sparcv9) |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
70 |
CPPFLAGS += -DX_ARCH=X_SPARCV9 |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
71 |
endif # ARCH sparcv9 |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
72 |
|
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
73 |
ifeq ($(ARCH), amd64) |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
74 |
CPPFLAGS += -DX_ARCH=X_AMD64 |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
75 |
endif # ARCH amd64 |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
76 |
endif |
2 | 77 |
|
78 |
||
79 |
# files needed for MIDI i/o |
|
80 |
MIDIFILES_c = \ |
|
81 |
MidiInDevice.c \ |
|
82 |
MidiInDeviceProvider.c \ |
|
83 |
MidiOutDevice.c \ |
|
84 |
MidiOutDeviceProvider.c \ |
|
85 |
PlatformMidi.c |
|
86 |
||
87 |
MIDIFILES_export = \ |
|
88 |
com/sun/media/sound/MidiInDevice.java \ |
|
89 |
com/sun/media/sound/MidiInDeviceProvider.java \ |
|
90 |
com/sun/media/sound/MidiOutDevice.java \ |
|
91 |
com/sun/media/sound/MidiOutDeviceProvider.java |
|
92 |
||
93 |
# files needed for ports |
|
94 |
PORTFILES_c = \ |
|
95 |
PortMixerProvider.c \ |
|
96 |
PortMixer.c |
|
97 |
||
98 |
PORTFILES_export = \ |
|
99 |
com/sun/media/sound/PortMixer.java \ |
|
100 |
com/sun/media/sound/PortMixerProvider.java |
|
101 |
||
102 |
# files needed for direct audio |
|
103 |
DAUDIOFILES_c = \ |
|
104 |
DirectAudioDeviceProvider.c \ |
|
105 |
DirectAudioDevice.c |
|
106 |
||
107 |
DAUDIOFILES_export = \ |
|
108 |
com/sun/media/sound/DirectAudioDeviceProvider.java \ |
|
109 |
com/sun/media/sound/DirectAudioDevice.java |
|
110 |
||
111 |