Makefile revision 1258
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync#
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# Copyright 2002-2007 Sun Microsystems, Inc. All Rights Reserved.
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync#
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# This code is free software; you can redistribute it and/or modify it
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# under the terms of the GNU General Public License version 2 only, as
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# published by the Free Software Foundation. Sun designates this
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# particular file as subject to the "Classpath" exception as provided
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# by Sun in the LICENSE file that accompanied this code.
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync#
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# This code is distributed in the hope that it will be useful, but WITHOUT
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# version 2 for more details (a copy is included in the LICENSE file that
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# accompanied this code).
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync#
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# You should have received a copy of the GNU General Public License version
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# 2 along with this work; if not, write to the Free Software Foundation,
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync#
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# CA 95054 USA or visit www.sun.com if you need additional information or
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# have any questions.
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync#
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncBUILDDIR = ../../..
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncPACKAGE = javax.sound
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncLIBRARY = jsoundalsa
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncPRODUCT = sun
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsyncinclude $(BUILDDIR)/common/Defs.gmk
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync# this Makefile compiles the native files for alsa support in java sound
2e848e79ccf2e4285250a0af98ddb9eb28864878vboxsync
# include defines for sound
include ../SoundDefs.gmk
#
# Use mapfile
#
FILES_m = mapfile-vers
include $(BUILDDIR)/common/Mapfile-vers.gmk
#
# Files
#
FILES_c = \
Utilities.c \
$(DAUDIOFILES_c) \
$(MIDIFILES_c) \
$(PORTFILES_c)
# platform dependent files
FILES_c += \
PLATFORM_API_LinuxOS_ALSA_CommonUtils.c \
PLATFORM_API_LinuxOS_ALSA_PCM.c \
PLATFORM_API_LinuxOS_ALSA_PCMUtils.c \
PLATFORM_API_LinuxOS_ALSA_MidiIn.c \
PLATFORM_API_LinuxOS_ALSA_MidiOut.c \
PLATFORM_API_LinuxOS_ALSA_MidiUtils.c \
PLATFORM_API_LinuxOS_ALSA_Ports.c
FILES_export = \
$(DAUDIOFILES_export) \
$(MIDIFILES_export) \
$(PORTFILES_export)
LDFLAGS += -lasound
CPPFLAGS += \
-DUSE_DAUDIO=TRUE \
-DUSE_PORTS=TRUE \
-DUSE_PLATFORM_MIDI_OUT=TRUE \
-DUSE_PLATFORM_MIDI_IN=TRUE \
-I$(SHARE_SRC)/native/com/sun/media/sound
#
# Add to the ambient VPATH.
#
vpath %.c $(SHARE_SRC)/native/com/sun/media/sound
vpath %.c $(PLATFORM_SRC)/native/com/sun/media/sound
vpath %.cpp $(PLATFORM_SRC)/native/com/sun/media/sound
#
# Include rules
#
include $(BUILDDIR)/common/Library.gmk