author | alanb |
Fri, 02 Nov 2012 15:50:11 +0000 | |
changeset 14342 | 8435a30053c1 |
parent 12047 | 320a714614e9 |
permissions | -rw-r--r-- |
2 | 1 |
# |
14342
8435a30053c1
7197491: update copyright year to match last edit in jdk8 jdk repository
alanb
parents:
12047
diff
changeset
|
2 |
# Copyright (c) 2002, 2012, 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 |
||
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
8796
diff
changeset
|
43 |
ifeq ($(PLATFORM), macosx) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
8796
diff
changeset
|
44 |
CPPFLAGS += -DX_PLATFORM=X_MACOSX |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
8796
diff
changeset
|
45 |
endif # PLATFORM macosx |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
8796
diff
changeset
|
46 |
|
2 | 47 |
ifeq ($(PLATFORM), solaris) |
48 |
CPPFLAGS += -DX_PLATFORM=X_SOLARIS |
|
49 |
||
50 |
# Solaris needs specific binding to libc |
|
51 |
LDFLAGS += -lc |
|
52 |
||
53 |
# |
|
54 |
# Turn off C++ exception handling. |
|
55 |
# |
|
56 |
ifneq ($(CC_VERSION),gcc) |
|
57 |
CXXFLAGS += -noex |
|
58 |
endif # CC_VERSION |
|
59 |
||
60 |
endif # PLATFORM solaris |
|
61 |
||
4111
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
62 |
ifeq ($(ZERO_BUILD), true) |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
63 |
CPPFLAGS += -DX_ARCH=X_ZERO |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
64 |
else |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
65 |
ifeq ($(ARCH), i586) |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
66 |
CPPFLAGS += -DX_ARCH=X_I586 |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
67 |
endif # ARCH i586 |
2 | 68 |
|
4111
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
69 |
ifeq ($(ARCH), sparc) |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
70 |
CPPFLAGS += -DX_ARCH=X_SPARC |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
71 |
endif # ARCH sparc |
2 | 72 |
|
4111
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
73 |
ifeq ($(ARCH), sparcv9) |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
74 |
CPPFLAGS += -DX_ARCH=X_SPARCV9 |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
75 |
endif # ARCH sparcv9 |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
76 |
|
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
77 |
ifeq ($(ARCH), amd64) |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
78 |
CPPFLAGS += -DX_ARCH=X_AMD64 |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
79 |
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
|
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), 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
|
82 |
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
|
83 |
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
|
84 |
|
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
5506
diff
changeset
|
85 |
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
|
86 |
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
|
87 |
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
|
88 |
|
4111
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
2
diff
changeset
|
89 |
endif |
2 | 90 |
|
91 |
||
92 |
# files needed for MIDI i/o |
|
93 |
MIDIFILES_c = \ |
|
94 |
MidiInDevice.c \ |
|
95 |
MidiInDeviceProvider.c \ |
|
96 |
MidiOutDevice.c \ |
|
97 |
MidiOutDeviceProvider.c \ |
|
98 |
PlatformMidi.c |
|
99 |
||
100 |
MIDIFILES_export = \ |
|
101 |
com/sun/media/sound/MidiInDevice.java \ |
|
102 |
com/sun/media/sound/MidiInDeviceProvider.java \ |
|
103 |
com/sun/media/sound/MidiOutDevice.java \ |
|
104 |
com/sun/media/sound/MidiOutDeviceProvider.java |
|
105 |
||
106 |
# files needed for ports |
|
107 |
PORTFILES_c = \ |
|
108 |
PortMixerProvider.c \ |
|
109 |
PortMixer.c |
|
110 |
||
111 |
PORTFILES_export = \ |
|
112 |
com/sun/media/sound/PortMixer.java \ |
|
113 |
com/sun/media/sound/PortMixerProvider.java |
|
114 |
||
115 |
# files needed for direct audio |
|
116 |
DAUDIOFILES_c = \ |
|
117 |
DirectAudioDeviceProvider.c \ |
|
118 |
DirectAudioDevice.c |
|
119 |
||
120 |
DAUDIOFILES_export = \ |
|
121 |
com/sun/media/sound/DirectAudioDeviceProvider.java \ |
|
122 |
com/sun/media/sound/DirectAudioDevice.java |
|
123 |
||
124 |