author | dholmes |
Wed, 16 Mar 2011 18:54:50 -0400 | |
changeset 8796 | 604a43386301 |
parent 5506 | 202f599c92aa |
child 12047 | 320a714614e9 |
permissions | -rw-r--r-- |
2 | 1 |
# |
8796
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
5506
diff
changeset
|
2 |
# Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved. |
2 | 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 |
|
5506 | 7 |
# published by the Free Software Foundation. Oracle designates this |
2 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
2 | 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 |
# |
|
5506 | 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. |
|
2 | 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 |
8796
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
5506
diff
changeset
|
76 |
|
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
5506
diff
changeset
|
77 |
ifeq ($(ARCH), arm) |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
5506
diff
changeset
|
78 |
CPPFLAGS += -DX_ARCH=X_ARM |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
5506
diff
changeset
|
79 |
endif # ARCH arm |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
5506
diff
changeset
|
80 |
|
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
5506
diff
changeset
|
81 |
ifeq ($(ARCH), ppc) |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
5506
diff
changeset
|
82 |
CPPFLAGS += -DX_ARCH=X_PPC |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
5506
diff
changeset
|
83 |
endif # ARCH ppc |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
5506
diff
changeset
|
84 |
|
4111
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
85 |
endif |
2 | 86 |
|
87 |
||
88 |
# files needed for MIDI i/o |
|
89 |
MIDIFILES_c = \ |
|
90 |
MidiInDevice.c \ |
|
91 |
MidiInDeviceProvider.c \ |
|
92 |
MidiOutDevice.c \ |
|
93 |
MidiOutDeviceProvider.c \ |
|
94 |
PlatformMidi.c |
|
95 |
||
96 |
MIDIFILES_export = \ |
|
97 |
com/sun/media/sound/MidiInDevice.java \ |
|
98 |
com/sun/media/sound/MidiInDeviceProvider.java \ |
|
99 |
com/sun/media/sound/MidiOutDevice.java \ |
|
100 |
com/sun/media/sound/MidiOutDeviceProvider.java |
|
101 |
||
102 |
# files needed for ports |
|
103 |
PORTFILES_c = \ |
|
104 |
PortMixerProvider.c \ |
|
105 |
PortMixer.c |
|
106 |
||
107 |
PORTFILES_export = \ |
|
108 |
com/sun/media/sound/PortMixer.java \ |
|
109 |
com/sun/media/sound/PortMixerProvider.java |
|
110 |
||
111 |
# files needed for direct audio |
|
112 |
DAUDIOFILES_c = \ |
|
113 |
DirectAudioDeviceProvider.c \ |
|
114 |
DirectAudioDevice.c |
|
115 |
||
116 |
DAUDIOFILES_export = \ |
|
117 |
com/sun/media/sound/DirectAudioDeviceProvider.java \ |
|
118 |
com/sun/media/sound/DirectAudioDevice.java |
|
119 |
||
120 |