2
|
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 |
BUILDDIR = ../../..
|
|
27 |
PACKAGE = javax.sound
|
|
28 |
LIBRARY = jsoundalsa
|
|
29 |
PRODUCT = sun
|
|
30 |
include $(BUILDDIR)/common/Defs.gmk
|
|
31 |
|
|
32 |
# this Makefile compiles the native files for alsa support in java sound
|
|
33 |
|
|
34 |
# include defines for sound
|
|
35 |
include ../SoundDefs.gmk
|
|
36 |
|
|
37 |
#
|
|
38 |
# Use mapfile
|
|
39 |
#
|
|
40 |
FILES_m = mapfile-vers
|
|
41 |
include $(BUILDDIR)/common/Mapfile-vers.gmk
|
|
42 |
|
|
43 |
#
|
|
44 |
# Files
|
|
45 |
#
|
|
46 |
|
|
47 |
FILES_c = \
|
|
48 |
Utilities.c \
|
|
49 |
$(DAUDIOFILES_c) \
|
|
50 |
$(MIDIFILES_c) \
|
|
51 |
$(PORTFILES_c)
|
|
52 |
|
|
53 |
# platform dependent files
|
|
54 |
FILES_c += \
|
|
55 |
PLATFORM_API_LinuxOS_ALSA_CommonUtils.c \
|
|
56 |
PLATFORM_API_LinuxOS_ALSA_PCM.c \
|
|
57 |
PLATFORM_API_LinuxOS_ALSA_PCMUtils.c \
|
|
58 |
PLATFORM_API_LinuxOS_ALSA_MidiIn.c \
|
|
59 |
PLATFORM_API_LinuxOS_ALSA_MidiOut.c \
|
|
60 |
PLATFORM_API_LinuxOS_ALSA_MidiUtils.c \
|
|
61 |
PLATFORM_API_LinuxOS_ALSA_Ports.c
|
|
62 |
|
|
63 |
FILES_export = \
|
|
64 |
$(DAUDIOFILES_export) \
|
|
65 |
$(MIDIFILES_export) \
|
|
66 |
$(PORTFILES_export)
|
|
67 |
|
|
68 |
LDFLAGS += -lasound
|
|
69 |
|
|
70 |
CPPFLAGS += \
|
|
71 |
-DUSE_DAUDIO=TRUE \
|
|
72 |
-DUSE_PORTS=TRUE \
|
|
73 |
-DUSE_PLATFORM_MIDI_OUT=TRUE \
|
|
74 |
-DUSE_PLATFORM_MIDI_IN=TRUE \
|
|
75 |
-I$(SHARE_SRC)/native/com/sun/media/sound
|
|
76 |
|
|
77 |
#
|
|
78 |
# Add to the ambient VPATH.
|
|
79 |
#
|
|
80 |
vpath %.c $(SHARE_SRC)/native/com/sun/media/sound
|
|
81 |
vpath %.c $(PLATFORM_SRC)/native/com/sun/media/sound
|
|
82 |
vpath %.cpp $(PLATFORM_SRC)/native/com/sun/media/sound
|
|
83 |
|
|
84 |
|
|
85 |
#
|
|
86 |
# Include rules
|
|
87 |
#
|
|
88 |
include $(BUILDDIR)/common/Library.gmk
|
|
89 |
|
|
90 |
|
|
91 |
|