1 | # $Id: Makefile.kmk 15532 2008-12-15 18:53:11Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for Chromium SPU loader
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2008 Sun Microsystems, Inc.
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.virtualbox.org. This file is free software;
|
---|
11 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | # General Public License (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
18 | # Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
19 | # additional information or have any questions.
|
---|
20 | #
|
---|
21 |
|
---|
22 | SUB_DEPTH = ../../../../../../..
|
---|
23 | include $(KBUILD_PATH)/subheader.kmk
|
---|
24 |
|
---|
25 | ## @todo r=bird: We don't do dependencies like this, and it's also wrong since both arrayspu_config.c
|
---|
26 | # and arrayspu_init.c makes use of these headers according to the dependency info.
|
---|
27 | # Add these as INTERMEDIATES, that way all sources will depend upon them being made.
|
---|
28 | # Btw. *if* you needed such a hack like this, put if *after* the target, not before. [another unwritten rule]
|
---|
29 | $$(PATH_VBoxOGLarrayspu)/arrayspu$(SUFF_OBJ): \
|
---|
30 | $(PATH_VBOXCROGL_GENFILES)/state/cr_currentpointers.h \
|
---|
31 | $(PATH_VBOXCROGL_GENFILES)/state/cr_statefuncs.h
|
---|
32 |
|
---|
33 | DLLS += VBoxOGLarrayspu
|
---|
34 |
|
---|
35 | VBoxOGLarrayspu_TEMPLATE = VBOXGUESTR3NPDLL
|
---|
36 | VBoxOGLarrayspu_DEFS = CHROMIUM_THREADSAFE
|
---|
37 | VBoxOGLarrayspu_DEFS.win = _WIN32_WINNT=0x0500 WINDOWS=1
|
---|
38 | VBoxOGLarrayspu_DEFS.linux = Linux=1
|
---|
39 | VBoxOGLarrayspu_DEFS.solaris = SunOS=1
|
---|
40 | VBoxOGLarrayspu_DEFS.darwin = DARWIN=1 GL_GLEXT_LEGACY
|
---|
41 | VBoxOGLarrayspu_INCS := \
|
---|
42 | $(PATH_VBOXCROGL_INCLUDE) \
|
---|
43 | $(PATH_VBOXCROGL_GENFILES)
|
---|
44 | VBoxOGLarrayspu_INCS.darwin += $(PATH_OUT)/obj/VBoxOGL
|
---|
45 | VBoxOGLarrayspu_LDFLAGS.darwin += -framework Carbon -framework OpenGL
|
---|
46 | VBoxOGLarrayspu_SOURCES = \
|
---|
47 | arrayspu.c \
|
---|
48 | arrayspu_config.c \
|
---|
49 | arrayspu_init.c
|
---|
50 | VBoxOGLarrayspu_SOURCES.win = arrayspu.def
|
---|
51 | VBoxOGLarrayspu_LIBS.win = \
|
---|
52 | $(PATH_LIB)/VBoxOGLcrutil$(VBOX_SUFF_LIB) \
|
---|
53 | $(PATH_LIB)/additions/VBoxOGLspuload$(VBOX_SUFF_LIB) \
|
---|
54 | $(PATH_LIB)/additions/VBoxOGLcrstate$(VBOX_SUFF_LIB)
|
---|
55 | if1of ($(KBUILD_TARGET), linux solaris darwin)
|
---|
56 | VBoxOGLarrayspu_LIBS += \
|
---|
57 | $(VBOX_PATH_ADDITIONS)/VBoxOGLcrutil$(VBOX_SUFF_DLL) \
|
---|
58 | $(PATH_LIB)/additions/VBoxOGLspuload$(VBOX_SUFF_LIB) \
|
---|
59 | $(PATH_LIB)/additions/VBoxOGLcrstate$(VBOX_SUFF_LIB)
|
---|
60 | endif
|
---|
61 |
|
---|
62 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
63 |
|
---|