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)
44 ifeq ($(WITH_FFMPEG),true)
48 ifeq ($(WITH_OPENAL),true)
52 ifeq ($(WITH_JACK),true)
56 ifeq ($(WITH_SNDFILE),true)
60 #ifeq ($(WITH_FFTW3),true)
64 include nan_subdirs.mk
66 install: $(ALL_OR_DEBUG)
67 @[ -d $(NAN_AUDASPACE) ] || mkdir $(NAN_AUDASPACE)
68 @[ -d $(NAN_AUDASPACE)/include ] || mkdir $(NAN_AUDASPACE)/include
69 @[ -d $(NAN_AUDASPACE)/lib/$(DEBUG_DIR) ] || mkdir $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)
70 @../tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)libaudaspace.a $(DIR)/$(DEBUG_DIR)libaud_sdl.a $(DIR)/$(DEBUG_DIR)libaud_python.a $(DIR)/$(DEBUG_DIR)libaud_fx.a $(DIR)/$(DEBUG_DIR)libaud_src.a $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)
72 ifeq ($(WITH_FFMPEG),true)
73 @../tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)libaud_ffmpeg.a $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)
76 ifeq ($(WITH_OPENAL),true)
77 @../tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)libaud_openal.a $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)
80 ifeq ($(WITH_JACK),true)
81 @../tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)libaud_jack.a $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)
84 ifeq ($(WITH_SNDFILE),true)
85 @../tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)libaud_sndfile.a $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)
88 #ifeq ($(WITH_FFTW3),true)
89 # @../tools/cpifdiff.sh $(DIR)/$(DEBUG_DIR)libaud_fftw.a $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)
93 ranlib $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaudaspace.a
94 ranlib $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaud_src.a
95 ranlib $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaud_fx.a
96 ranlib $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaud_sdl.a
98 ifeq ($(WITH_FFMPEG),true)
99 ranlib $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaud_ffmpeg.a
102 ifeq ($(WITH_OPENAL),true)
103 ranlib $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaud_openal.a
106 ifeq ($(WITH_JACK),true)
107 ranlib $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaud_jack.a
110 ifeq ($(WITH_SNDFILE),true)
111 ranlib $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaud_sndfile.a
114 #ifeq ($(WITH_FFTW3),true)
115 # ranlib $(NAN_AUDASPACE)/lib/$(DEBUG_DIR)libaud_fftw.a
119 @../tools/cpifdiff.sh intern/*.h $(NAN_AUDASPACE)/include/