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 
  58 ifeq ($(ARCH), i586)
  59   CPPFLAGS += -DX_ARCH=X_I586
  60 endif # ARCH i586
  61 
  62 ifeq ($(ARCH), sparc)
  63   CPPFLAGS += -DX_ARCH=X_SPARC
  64 endif # ARCH sparc
  65 
  66 ifeq ($(ARCH), sparcv9)
  67   CPPFLAGS += -DX_ARCH=X_SPARCV9
  68 endif # ARCH sparcv9
  69 
  70 ifeq ($(ARCH), amd64)
  71   CPPFLAGS += -DX_ARCH=X_AMD64
  72 endif # ARCH amd64
  73 
  74 
  75 # files needed for MIDI i/o
  76 MIDIFILES_c = \
  77         MidiInDevice.c \
  78         MidiInDeviceProvider.c \
  79         MidiOutDevice.c \
  80         MidiOutDeviceProvider.c \
  81         PlatformMidi.c
  82 
  83 MIDIFILES_export = \
  84         com/sun/media/sound/MidiInDevice.java \
  85         com/sun/media/sound/MidiInDeviceProvider.java \
  86         com/sun/media/sound/MidiOutDevice.java \
  87         com/sun/media/sound/MidiOutDeviceProvider.java
  88 
  89 # files needed for ports
  90 PORTFILES_c = \
  91         PortMixerProvider.c \
  92         PortMixer.c
  93 
  94 PORTFILES_export = \
  95         com/sun/media/sound/PortMixer.java \
  96         com/sun/media/sound/PortMixerProvider.java
  97 
  98 # files needed for direct audio
  99 DAUDIOFILES_c = \
 100         DirectAudioDeviceProvider.c \
 101         DirectAudioDevice.c
 102 
 103 DAUDIOFILES_export = \
 104         com/sun/media/sound/DirectAudioDeviceProvider.java \
 105         com/sun/media/sound/DirectAudioDevice.java
 106 
 107