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), 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 62 ifeq ($(ZERO_BUILD), true) 63 CPPFLAGS += -DX_ARCH=X_ZERO 64 else 65 ifeq ($(ARCH), i586) 66 CPPFLAGS += -DX_ARCH=X_I586 67 endif # ARCH i586 68 69 ifeq ($(ARCH), sparc) 70 CPPFLAGS += -DX_ARCH=X_SPARC 71 endif # ARCH sparc 72 73 ifeq ($(ARCH), sparcv9) 74 CPPFLAGS += -DX_ARCH=X_SPARCV9 75 endif # ARCH sparcv9 76 77 ifeq ($(ARCH), amd64) 78 CPPFLAGS += -DX_ARCH=X_AMD64 79 endif # ARCH amd64 80 81 ifeq ($(ARCH), arm) 82 CPPFLAGS += -DX_ARCH=X_ARM 83 endif # ARCH arm 84 85 ifeq ($(ARCH), ppc) 86 CPPFLAGS += -DX_ARCH=X_PPC 87 endif # ARCH ppc 88 89 endif 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