1 # 2 # Copyright (c) 2002, 2011, 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), linux) 40 CPPFLAGS += -DX_PLATFORM=X_LINUX 41 endif # PLATFORM linux 42 43 ifeq ($(PLATFORM), macosx) 44 CPPFLAGS += -DX_PLATFORM=X_MACOSX 45 endif # PLATFORM macosx 46 47 ifeq ($(PLATFORM), aix) 48 CPPFLAGS += -DX_PLATFORM=X_AIX 49 endif # PLATFORM aix 50 51 ifeq ($(PLATFORM), solaris) 52 CPPFLAGS += -DX_PLATFORM=X_SOLARIS 53 54 # Solaris needs specific binding to libc 55 LDFLAGS += -lc 56 57 # 58 # Turn off C++ exception handling. 59 # 60 ifneq ($(CC_VERSION),gcc) 61 CXXFLAGS += -noex 62 endif # CC_VERSION 63 64 endif # PLATFORM solaris 65 66 ifeq ($(ZERO_BUILD), true) 67 CPPFLAGS += -DX_ARCH=X_ZERO 68 else 69 ifeq ($(ARCH), i586) 70 CPPFLAGS += -DX_ARCH=X_I586 71 endif # ARCH i586 72 73 ifeq ($(ARCH), sparc) 74 CPPFLAGS += -DX_ARCH=X_SPARC 75 endif # ARCH sparc 76 77 ifeq ($(ARCH), sparcv9) 78 CPPFLAGS += -DX_ARCH=X_SPARCV9 79 endif # ARCH sparcv9 80 81 ifeq ($(ARCH), amd64) 82 CPPFLAGS += -DX_ARCH=X_AMD64 83 endif # ARCH amd64 84 85 ifeq ($(ARCH), arm) 86 CPPFLAGS += -DX_ARCH=X_ARM 87 endif # ARCH arm 88 89 ifeq ($(ARCH), ppc) 90 CPPFLAGS += -DX_ARCH=X_PPC 91 endif # ARCH ppc 92 93 ifeq ($(ARCH), ppc64) 94 CPPFLAGS += -DX_ARCH=X_PPC 95 endif # ARCH ppc64 96 97 endif 98 99 100 # files needed for MIDI i/o 101 MIDIFILES_c = \ 102 MidiInDevice.c \ 103 MidiInDeviceProvider.c \ 104 MidiOutDevice.c \ 105 MidiOutDeviceProvider.c \ 106 PlatformMidi.c 107 108 MIDIFILES_export = \ 109 com/sun/media/sound/MidiInDevice.java \ 110 com/sun/media/sound/MidiInDeviceProvider.java \ 111 com/sun/media/sound/MidiOutDevice.java \ 112 com/sun/media/sound/MidiOutDeviceProvider.java 113 114 # files needed for ports 115 PORTFILES_c = \ 116 PortMixerProvider.c \ 117 PortMixer.c 118 119 PORTFILES_export = \ 120 com/sun/media/sound/PortMixer.java \ 121 com/sun/media/sound/PortMixerProvider.java 122 123 # files needed for direct audio 124 DAUDIOFILES_c = \ 125 DirectAudioDeviceProvider.c \ 126 DirectAudioDevice.c 127 128 DAUDIOFILES_export = \ 129 com/sun/media/sound/DirectAudioDeviceProvider.java \ 130 com/sun/media/sound/DirectAudioDevice.java 131 132