1 # |
|
2 # Copyright 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 = jsoundhs |
|
29 PRODUCT = sun |
|
30 CPLUSPLUSLIBRARY = true |
|
31 include $(BUILDDIR)/common/Defs.gmk |
|
32 |
|
33 # this Makefile compiles "closed" JavaSound library |
|
34 |
|
35 ifdef OPENJDK |
|
36 |
|
37 # precompiled lib will be copied by the rules in Library.gmk instead of compiling. |
|
38 USE_BINARY_PLUG_LIBRARY=true |
|
39 |
|
40 build: import-binary-plug-jsound-library |
|
41 |
|
42 include $(BUILDDIR)/common/internal/BinaryPlugs.gmk |
|
43 |
|
44 else # OPENJDK |
|
45 |
|
46 # include defines for sound |
|
47 include ../SoundDefs.gmk |
|
48 |
|
49 # |
|
50 # Add use of mapfile |
|
51 # |
|
52 FILES_m = mapfile-vers |
|
53 include $(BUILDDIR)/common/Mapfile-vers.gmk |
|
54 |
|
55 # |
|
56 # Files |
|
57 # |
|
58 include FILES.gmk |
|
59 |
|
60 FILES_c += $(FILES_engine) $(FILES_$(PLATFORM)) |
|
61 |
|
62 # |
|
63 # Extra cc/linker flags. |
|
64 # |
|
65 # flags needed for all platforms |
|
66 CPPFLAGS += \ |
|
67 -DJAVA_SOUND -DJAVA_THREAD \ |
|
68 -I$(CLOSED_SHARE_SRC)/native/com/sun/media/sound \ |
|
69 -I$(CLOSED_SHARE_SRC)/native/com/sun/media/sound/engine |
|
70 |
|
71 # system dependent flags |
|
72 ifeq ($(PLATFORM), windows) |
|
73 CPPFLAGS += -DUSE_DIRECTSOUND=0 \ |
|
74 -DUSE_EXTERNAL_SYNTH=TRUE |
|
75 LDLIBS += winmm.lib |
|
76 endif # PLATFORM windows |
|
77 |
|
78 ifeq ($(PLATFORM), linux) |
|
79 endif # PLATFORM linux |
|
80 |
|
81 ifeq ($(PLATFORM), solaris) |
|
82 endif # PLATFORM solaris |
|
83 |
|
84 |
|
85 # |
|
86 # Add to the ambient VPATH. |
|
87 # |
|
88 vpath %.c $(CLOSED_SHARE_SRC)/native/com/sun/media/sound |
|
89 vpath %.c $(CLOSED_SHARE_SRC)/native/com/sun/media/sound/engine |
|
90 vpath %.c $(CLOSED_PLATFORM_SRC)/native/com/sun/media/sound/engine |
|
91 |
|
92 |
|
93 endif # OPENJDK |
|
94 |
|
95 |
|
96 # |
|
97 # Include rules |
|
98 # |
|
99 include $(BUILDDIR)/common/Library.gmk |
|
100 |
|