1 # -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
6 # ***** BEGIN GPL LICENSE BLOCK *****
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License
10 # as published by the Free Software Foundation; either version 2
11 # of the License, or (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software Foundation,
20 # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 # The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
23 # All rights reserved.
25 # The Original Code is: all of this file.
29 # ***** END GPL LICENSE BLOCK *****
33 include nan_definitions.mk
36 SOURCEDIR = intern/audaspace
37 DIR = $(OCGDIR)/$(SOURCEDIR)
43 ifeq ($(WITH_FFMPEG),true)
47 ifeq ($(WITH_OPENAL),true)
51 ifeq ($(WITH_JACK),true)
55 ifeq ($(WITH_SNDFILE),true)
59 include nan_subdirs.mk
61 install: $(ALL_OR_DEBUG)
62 @[ -d $(NAN_AUDASPACE) ] || mkdir $(NAN_AUDASPACE)
63 @[ -d $(NAN_AUDASPACE)/include ] || mkdir $(NAN_AUDASPACE)/include
64 @[ -d $(NAN_AUDASPACE)/lib/$(DEBUG_DIR) ] || mkdir $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)
65 @../tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)libaudaspace.a $(DIR)/$(DEBUG_DIR)libaud_sdl.a $(DIR)/$(DEBUG_DIR)libaud_fx.a $(DIR)/$(DEBUG_DIR)libaud_src.a $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)
67 ifeq ($(WITH_FFMPEG),true)
68 @../tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)libaud_ffmpeg.a $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)
71 ifeq ($(WITH_OPENAL),true)
72 @../tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)libaud_openal.a $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)
75 ifeq ($(WITH_JACK),true)
76 @../tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)libaud_jack.a $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)
79 ifeq ($(WITH_SNDFILE),true)
80 @../tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)libaud_sndfile.a $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)
84 ranlib $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaudaspace.a
85 ranlib $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaud_src.a
86 ranlib $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaud_fx.a
87 ranlib $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaud_sdl.a
89 ifeq ($(WITH_FFMPEG),true)
90 ranlib $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaud_ffmpeg.a
93 ifeq ($(WITH_OPENAL),true)
94 ranlib $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaud_openal.a
97 ifeq ($(WITH_JACK),true)
98 ranlib $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaud_jack.a
101 ifeq ($(WITH_SNDFILE),true)
102 ranlib $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaud_sndfile.a
106 @../tools/cpifdiff.sh intern/*.h $(NAN_AUDASPACE)/include/