annotate Makefile @ 62:b13fafb976be

Changed _D macro to DBGSND.
author Ryan C. Gordon <icculus@icculus.org>
date Mon, 24 Sep 2001 15:31:25 +0000
parents c3a7d81a7b03
children
rev   line source
4
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
1 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
2 # SDL_sound -- An abstract sound format decoding API.
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
3 # Copyright (C) 2001 Ryan C. Gordon.
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
4 #
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
5 # This library is free software; you can redistribute it and/or
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
6 # modify it under the terms of the GNU Lesser General Public
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
7 # License as published by the Free Software Foundation; either
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
8 # version 2.1 of the License, or (at your option) any later version.
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
9 #
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
10 # This library is distributed in the hope that it will be useful,
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
13 # Lesser General Public License for more details.
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
14 #
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
15 # You should have received a copy of the GNU Lesser General Public
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
16 # License along with this library; if not, write to the Free Software
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
18 #
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
19 # (Please see the file LICENSE in the source's root directory.)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
20 #
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
21 # This file written by Ryan C. Gordon.
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
22 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
23
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
24
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
25 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
26 # Makefile for building SDL_sound on Unix-like systems. Follow the
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
27 # instructions for editing this file, then run "make" on the command line.
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
28 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
29
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
30
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
31 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
32 # Set to your liking.
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
33 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
34 CC = gcc
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
35 LINKER = gcc
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
36
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
37
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
38 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
39 # If this makefile fails to detect Cygwin correctly, or you want to force
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
40 # the build process's behaviour, set it to "true" or "false" (w/o quotes).
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
41 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
42 #cygwin := true
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
43 #cygwin := false
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
44 cygwin := autodetect
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
45
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
46 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
47 # You only need to set SDL_INC_DIR and SDL_LIB_DIR if you are using cygwin.
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
48 # SDL_INC_DIR is where SDL.h and associated headers can be found, and
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
49 # SDL_LIB_DIR is where SDL.lib and SDL.dll are located. These may be set as
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
50 # environment variables, if you'd prefer to not hack the Makefile.
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
51 #
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
52 # examples:
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
53 # SDL_INC_DIR := C:/2/SDL-1.1.8/include
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
54 # SDL_LIB_DIR := C:/2/SDL-1.1.8/lib
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
55 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
56 ifeq ($(strip $(SDL_INC_DIR)),)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
57 SDL_INC_DIR := please_set_me_cygwin_users
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
58 endif
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
59
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
60 ifeq ($(strip $(SDL_LIB_DIR)),)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
61 SDL_LIB_DIR := please_set_me_cygwin_users
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
62 endif
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
63
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
64 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
65 # Set this to true if you want to create a debug build.
6
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
66 # (for generating debugging symbols, disabling optimizations, etc.)
4
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
67 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
68 #debugging := false
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
69 debugging := true
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
70
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
71 #-----------------------------------------------------------------------------#
6
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
72 # Set this to true if you want debugging output. This does a LOT of
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
73 # chattering to stdout, and can be used with out without the (debugging)
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
74 # option above. You do NOT want this in a release build!
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
75 #-----------------------------------------------------------------------------#
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
76 #debugging_chatter := false
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
77 debugging_chatter := true
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
78
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
79 #-----------------------------------------------------------------------------#
4
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
80 # Set the decoder types you'd like to support.
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
81 # Note that various decoders may need external libraries.
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
82 #-----------------------------------------------------------------------------#
45
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
83 use_decoder_raw := true
56
2d0873719c77 Enabling MP3 support by default.
Ryan C. Gordon <icculus@icculus.org>
parents: 50
diff changeset
84 use_decoder_mp3 := true
45
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
85 use_decoder_mod := true
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
86 use_decoder_voc := true
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
87 use_decoder_wav := true
35
36f27ef8bebe Added AIFF support.
Ryan C. Gordon <icculus@icculus.org>
parents: 31
diff changeset
88 use_decoder_aiff := true
45
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
89 use_decoder_ogg := true
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
90
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
91
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
92 #-----------------------------------------------------------------------------#
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
93 # If use_decoder_mod is set to true, and libmikmod is in a nonstandard place,
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
94 # note that here. It's usually safe to leave these commented if you installed
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
95 # MikMod from a package like an RPM, or from source with the defaults.
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
96 #-----------------------------------------------------------------------------#
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
97 #INCPATH_MOD := -I/usr/local/include
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
98 #LIBPATH_MOD := -L/usr/local/lib
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
99
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
100
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
101 #-----------------------------------------------------------------------------#
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
102 # If use_decoder_ogg is set to true, and libvorbis and libvorbisfile are
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
103 # in a nonstandard place, set them here. It's usually safe to leave these
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
104 # commented if you installed Ogg Vorbis from a package like an RPM, or from
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
105 # source with the defaults.
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
106 #-----------------------------------------------------------------------------#
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
107 #INCPATH_OGG := -I/usr/local/include
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
108 #LIBPATH_OGG := -L/usr/local/lib
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
109
4
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
110
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
111 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
112 # Set to "true" if you'd like to build a DLL. Set to "false" otherwise.
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
113 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
114 #build_dll := false
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
115 build_dll := true
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
116
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
117 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
118 # Set one of the below. Currently, none of these are used.
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
119 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
120 #use_asm = -DUSE_I386_ASM
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
121 use_asm = -DUSE_PORTABLE_C
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
122
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
123
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
124 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
125 # Set this to where you want SDL_sound installed. It will put the
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
126 # files in $(install_prefix)/bin, $(install_prefix)/lib, and
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
127 # $(install_prefix)/include ...
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
128 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
129 install_prefix := /usr/local
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
130
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
131
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
132 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
133 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
134 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
135 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
136 # Everything below this line is probably okay.
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
137 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
138 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
139 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
140 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
141
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
142 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
143 # CygWin autodetect.
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
144 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
145
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
146 ifeq ($(strip $(cygwin)),autodetect)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
147 ifneq ($(strip $(shell gcc -v 2>&1 |grep "cygwin")),)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
148 cygwin := true
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
149 else
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
150 cygwin := false
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
151 endif
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
152 endif
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
153
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
154
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
155 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
156 # Platform-specific binary stuff.
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
157 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
158
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
159 ifeq ($(strip $(cygwin)),true)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
160 ifeq ($(strip $(SDL_INC_DIR)),please_set_me_cygwin_users)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
161 $(error Cygwin users need to set the SDL_INC_DIR envr var.)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
162 else
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
163 SDL_CFLAGS := -I$(SDL_INC_DIR)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
164 endif
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
165
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
166 ifeq ($(strip $(SDL_LIB_DIR)),please_set_me_cygwin_users)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
167 $(error Cygwin users need to set the SDL_LIB_DIR envr var.)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
168 else
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
169 SDL_LDFLAGS := -L$(SDL_LIB_DIR) -lSDL
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
170 endif
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
171
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
172 # !!! FIXME
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
173 build_dll := false
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
174 # !!! FIXME
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
175
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
176 ASM = nasmw
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
177 EXE_EXT = .exe
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
178 DLL_EXT = .dll
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
179 STATICLIB_EXT = .a
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
180 ASMOBJFMT = win32
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
181 ASMDEFS = -dC_IDENTIFIERS_UNDERSCORED
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
182 CFLAGS += -DC_IDENTIFIERS_UNDERSCORED
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
183 else
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
184 ASM = nasm
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
185 EXE_EXT =
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
186 DLL_EXT = .so
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
187 STATICLIB_EXT = .a
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
188 ASMOBJFMT = elf
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
189 SDL_CFLAGS := $(shell sdl-config --cflags)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
190 SDL_LDFLAGS := $(shell sdl-config --libs)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
191 endif
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
192
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
193 CFLAGS += $(SDL_CFLAGS)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
194 LDFLAGS += $(SDL_LDFLAGS)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
195
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
196 ifeq ($(strip $(build_dll)),true)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
197 LIB_EXT := $(DLL_EXT)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
198 SHAREDFLAGS += -shared
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
199 else
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
200 LIB_EXT := $(STATICLIB_EXT)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
201 endif
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
202
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
203 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
204 # Version crapola.
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
205 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
206 VERMAJOR := $(shell grep "define SOUND_VER_MAJOR" SDL_sound.h | sed "s/\#define SOUND_VER_MAJOR //")
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
207 VERMINOR := $(shell grep "define SOUND_VER_MINOR" SDL_sound.h | sed "s/\#define SOUND_VER_MINOR //")
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
208 VERPATCH := $(shell grep "define SOUND_VER_PATCH" SDL_sound.h | sed "s/\#define SOUND_VER_PATCH //")
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
209
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
210 VERMAJOR := $(strip $(VERMAJOR))
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
211 VERMINOR := $(strip $(VERMINOR))
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
212 VERPATCH := $(strip $(VERPATCH))
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
213
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
214 VERFULL := $(VERMAJOR).$(VERMINOR).$(VERPATCH)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
215
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
216 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
217 # General compiler, assembler, and linker flags.
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
218 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
219
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
220 BINDIR := bin
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
221 SRCDIR := .
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
222
18
0b66213eb422 Added WAV support.
Ryan C. Gordon <icculus@icculus.org>
parents: 6
diff changeset
223 CFLAGS := -I$(SRCDIR) $(CFLAGS)
0b66213eb422 Added WAV support.
Ryan C. Gordon <icculus@icculus.org>
parents: 6
diff changeset
224 CFLAGS += $(use_asm) -D_REENTRANT -fsigned-char -DPLATFORM_UNIX
60
c3a7d81a7b03 Changed test_sdlsound to playsound.
Ryan C. Gordon <icculus@icculus.org>
parents: 56
diff changeset
225 CFLAGS += -Wall -Werror -fno-exceptions -fno-rtti -ansi
4
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
226
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
227 LDFLAGS += -lm
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
228
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
229 ifeq ($(strip $(debugging)),true)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
230 CFLAGS += -DDEBUG -g -fno-omit-frame-pointer
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
231 LDFLAGS += -g -fno-omit-frame-pointer
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
232 else
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
233 CFLAGS += -DNDEBUG -O2 -fomit-frame-pointer
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
234 LDFLAGS += -O2 -fomit-frame-pointer
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
235 endif
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
236
6
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
237 ifeq ($(strip $(debugging_chatter)),true)
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
238 CFLAGS += -DDEBUG_CHATTER
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
239 endif
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
240
4
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
241 ASMFLAGS := -f $(ASMOBJFMT) $(ASMDEFS)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
242
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
243 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
244 # Source and target names.
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
245 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
246
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
247 PUREBASELIBNAME := SDL_sound
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
248 ifeq ($(strip $(cygwin)),true)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
249 BASELIBNAME := $(strip $(PUREBASELIBNAME))
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
250 else
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
251 BASELIBNAME := lib$(strip $(PUREBASELIBNAME))
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
252 endif
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
253
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
254 MAINLIB := $(BINDIR)/$(strip $(BASELIBNAME))$(strip $(LIB_EXT))
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
255
60
c3a7d81a7b03 Changed test_sdlsound to playsound.
Ryan C. Gordon <icculus@icculus.org>
parents: 56
diff changeset
256 PLAYSOUNDSRCS := test/playsound.c
4
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
257
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
258 MAINSRCS := SDL_sound.c
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
259
6
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
260 need_extra_rwops := false
4
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
261 ifeq ($(strip $(use_decoder_raw)),true)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
262 MAINSRCS += decoders/raw.c
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
263 CFLAGS += -DSOUND_SUPPORTS_RAW
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
264 endif
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
265
6
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
266 ifeq ($(strip $(use_decoder_mp3)),true)
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
267 MAINSRCS += decoders/mp3.c
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
268 need_extra_rwops := true
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
269 CFLAGS += -DSOUND_SUPPORTS_MP3 $(shell smpeg-config --cflags)
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
270 LDFLAGS += $(shell smpeg-config --libs)
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
271 endif
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
272
45
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
273 ifeq ($(strip $(use_decoder_mod)),true)
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
274 MAINSRCS += decoders/mod.c
50
d7e118d8fede Removed -DUSE_RWOPS for MOD, and readded -Werror.
Ryan C. Gordon <icculus@icculus.org>
parents: 45
diff changeset
275 CFLAGS += -DSOUND_SUPPORTS_MOD
45
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
276 LDFLAGS += -lmikmod
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
277 endif
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
278
4
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
279 ifeq ($(strip $(use_decoder_voc)),true)
6
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
280 MAINSRCS += decoders/voc.c
4
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
281 CFLAGS += -DSOUND_SUPPORTS_VOC
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
282 endif
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
283
18
0b66213eb422 Added WAV support.
Ryan C. Gordon <icculus@icculus.org>
parents: 6
diff changeset
284 ifeq ($(strip $(use_decoder_wav)),true)
0b66213eb422 Added WAV support.
Ryan C. Gordon <icculus@icculus.org>
parents: 6
diff changeset
285 MAINSRCS += decoders/wav.c
0b66213eb422 Added WAV support.
Ryan C. Gordon <icculus@icculus.org>
parents: 6
diff changeset
286 CFLAGS += -DSOUND_SUPPORTS_WAV
0b66213eb422 Added WAV support.
Ryan C. Gordon <icculus@icculus.org>
parents: 6
diff changeset
287 endif
0b66213eb422 Added WAV support.
Ryan C. Gordon <icculus@icculus.org>
parents: 6
diff changeset
288
35
36f27ef8bebe Added AIFF support.
Ryan C. Gordon <icculus@icculus.org>
parents: 31
diff changeset
289 ifeq ($(strip $(use_decoder_aiff)),true)
36f27ef8bebe Added AIFF support.
Ryan C. Gordon <icculus@icculus.org>
parents: 31
diff changeset
290 MAINSRCS += decoders/aiff.c
36f27ef8bebe Added AIFF support.
Ryan C. Gordon <icculus@icculus.org>
parents: 31
diff changeset
291 CFLAGS += -DSOUND_SUPPORTS_AIFF
36f27ef8bebe Added AIFF support.
Ryan C. Gordon <icculus@icculus.org>
parents: 31
diff changeset
292 endif
36f27ef8bebe Added AIFF support.
Ryan C. Gordon <icculus@icculus.org>
parents: 31
diff changeset
293
27
ba49bdd9ea33 Ogg Vorbis support.
Ryan C. Gordon <icculus@icculus.org>
parents: 18
diff changeset
294 ifeq ($(strip $(use_decoder_ogg)),true)
ba49bdd9ea33 Ogg Vorbis support.
Ryan C. Gordon <icculus@icculus.org>
parents: 18
diff changeset
295 MAINSRCS += decoders/ogg.c
45
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
296 CFLAGS += -DSOUND_SUPPORTS_OGG $(INCPATH_OGG)
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
297 LDFLAGS += $(LIBPATH_OGG) -lvorbisfile -lvorbis
27
ba49bdd9ea33 Ogg Vorbis support.
Ryan C. Gordon <icculus@icculus.org>
parents: 18
diff changeset
298 endif
ba49bdd9ea33 Ogg Vorbis support.
Ryan C. Gordon <icculus@icculus.org>
parents: 18
diff changeset
299
6
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
300 ifeq ($(strip $(need_extra_rwops)),true)
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
301 MAINSRCS += extra_rwops.c
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
302 endif
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
303
4
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
304 #ifeq ($(strip $(cygwin)),true)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
305 # MAINSRCS += platform/win32.c
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
306 # CFLAGS += -DWIN32
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
307 #else
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
308 # MAINSRCS += platform/unix.c
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
309 #endif
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
310
60
c3a7d81a7b03 Changed test_sdlsound to playsound.
Ryan C. Gordon <icculus@icculus.org>
parents: 56
diff changeset
311 PLAYSOUNDEXE := $(BINDIR)/playsound$(EXE_EXT)
4
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
312
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
313 # Rule for getting list of objects from source
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
314 MAINOBJS1 := $(MAINSRCS:.c=.o)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
315 MAINOBJS2 := $(MAINOBJS1:.cpp=.o)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
316 MAINOBJS3 := $(MAINOBJS2:.asm=.o)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
317 MAINOBJS := $(foreach f,$(MAINOBJS3),$(BINDIR)/$(f))
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
318 MAINSRCS := $(foreach f,$(MAINSRCS),$(SRCDIR)/$(f))
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
319
60
c3a7d81a7b03 Changed test_sdlsound to playsound.
Ryan C. Gordon <icculus@icculus.org>
parents: 56
diff changeset
320 PLAYSOUNDOBJS1 := $(PLAYSOUNDSRCS:.c=.o)
c3a7d81a7b03 Changed test_sdlsound to playsound.
Ryan C. Gordon <icculus@icculus.org>
parents: 56
diff changeset
321 PLAYSOUNDOBJS2 := $(PLAYSOUNDOBJS1:.cpp=.o)
c3a7d81a7b03 Changed test_sdlsound to playsound.
Ryan C. Gordon <icculus@icculus.org>
parents: 56
diff changeset
322 PLAYSOUNDOBJS3 := $(PLAYSOUNDOBJS2:.asm=.o)
c3a7d81a7b03 Changed test_sdlsound to playsound.
Ryan C. Gordon <icculus@icculus.org>
parents: 56
diff changeset
323 PLAYSOUNDOBJS := $(foreach f,$(PLAYSOUNDOBJS3),$(BINDIR)/$(f))
c3a7d81a7b03 Changed test_sdlsound to playsound.
Ryan C. Gordon <icculus@icculus.org>
parents: 56
diff changeset
324 PLAYSOUNDSRCS := $(foreach f,$(PLAYSOUNDSRCS),$(SRCDIR)/$(f))
4
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
325
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
326 CLEANUP = $(wildcard *.exe) $(wildcard *.obj) \
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
327 $(wildcard $(BINDIR)/*.exe) $(wildcard $(BINDIR)/*.obj) \
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
328 $(wildcard *~) $(wildcard *.err) \
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
329 $(wildcard .\#*) core
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
330
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
331
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
332 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
333 # Rules.
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
334 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
335
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
336 # Rules for turning source files into .o files
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
337 $(BINDIR)/%.o: $(SRCDIR)/%.cpp
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
338 $(CC) -c -o $@ $< $(CFLAGS)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
339
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
340 $(BINDIR)/%.o: $(SRCDIR)/%.c
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
341 $(CC) -c -o $@ $< $(CFLAGS)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
342
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
343 $(BINDIR)/%.o: $(SRCDIR)/%.asm
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
344 $(ASM) $(ASMFLAGS) -o $@ $<
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
345
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
346 .PHONY: all clean distclean listobjs install showcfg showflags
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
347
60
c3a7d81a7b03 Changed test_sdlsound to playsound.
Ryan C. Gordon <icculus@icculus.org>
parents: 56
diff changeset
348 all: $(BINDIR) $(EXTRABUILD) $(MAINLIB) $(PLAYSOUNDEXE)
4
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
349
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
350 $(MAINLIB) : $(BINDIR) $(MAINOBJS)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
351 $(LINKER) -o $(MAINLIB) $(SHAREDFLAGS) $(MAINOBJS) $(LDFLAGS)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
352
60
c3a7d81a7b03 Changed test_sdlsound to playsound.
Ryan C. Gordon <icculus@icculus.org>
parents: 56
diff changeset
353 $(PLAYSOUNDEXE) : $(MAINLIB) $(PLAYSOUNDOBJS)
c3a7d81a7b03 Changed test_sdlsound to playsound.
Ryan C. Gordon <icculus@icculus.org>
parents: 56
diff changeset
354 $(LINKER) -o $(PLAYSOUNDEXE) $(PLAYSOUNDOBJS) -L$(BINDIR) -l$(strip $(PUREBASELIBNAME)) $(LDFLAGS)
4
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
355
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
356
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
357 install: all
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
358 rm -f $(install_prefix)/lib/$(strip $(BASELIBNAME))$(strip $(LIB_EXT)).$(strip $(VERMAJOR)).$(strip $(VERMINOR)).*
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
359 mkdir -p $(install_prefix)/bin
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
360 mkdir -p $(install_prefix)/lib
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
361 mkdir -p $(install_prefix)/include
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
362 cp $(SRCDIR)/SDL_sound.h $(install_prefix)/include
60
c3a7d81a7b03 Changed test_sdlsound to playsound.
Ryan C. Gordon <icculus@icculus.org>
parents: 56
diff changeset
363 cp $(PLAYSOUNDEXE) $(install_prefix)/bin
c3a7d81a7b03 Changed test_sdlsound to playsound.
Ryan C. Gordon <icculus@icculus.org>
parents: 56
diff changeset
364 rm -f $(install_prefix)/bin/test_sdlsound$(strip $(EXE_EXT)) # this line can be removed later.
c3a7d81a7b03 Changed test_sdlsound to playsound.
Ryan C. Gordon <icculus@icculus.org>
parents: 56
diff changeset
365
4
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
366 ifeq ($(strip $(cygwin)),true)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
367 cp $(MAINLIB) $(install_prefix)/lib/$(strip $(BASELIBNAME))$(strip $(LIB_EXT))
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
368 else
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
369 cp $(MAINLIB) $(install_prefix)/lib/$(strip $(BASELIBNAME))$(strip $(LIB_EXT)).$(strip $(VERFULL))
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
370 ln -sf $(strip $(BASELIBNAME))$(strip $(LIB_EXT)).$(strip $(VERFULL)) $(install_prefix)/lib/$(strip $(BASELIBNAME))$(strip $(LIB_EXT))
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
371 ln -sf $(strip $(BASELIBNAME))$(strip $(LIB_EXT)).$(strip $(VERFULL)) $(install_prefix)/lib/$(strip $(BASELIBNAME))$(strip $(LIB_EXT)).$(strip $(VERMAJOR))
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
372 chmod 0755 $(install_prefix)/lib/$(strip $(BASELIBNAME))$(strip $(LIB_EXT)).$(strip $(VERFULL))
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
373 chmod 0644 $(install_prefix)/include/SDL_sound.h
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
374 endif
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
375
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
376 $(BINDIR):
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
377 mkdir -p $(BINDIR)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
378 mkdir -p $(BINDIR)/decoders
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
379 mkdir -p $(BINDIR)/platform
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
380 mkdir -p $(BINDIR)/test
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
381
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
382 distclean: clean
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
383
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
384 clean:
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
385 rm -f $(CLEANUP)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
386 rm -rf $(BINDIR)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
387
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
388 listobjs:
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
389 @echo SOURCES:
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
390 @echo $(MAINSRCS)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
391 @echo
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
392 @echo OBJECTS:
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
393 @echo $(MAINOBJS)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
394 @echo
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
395 @echo BINARIES:
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
396 @echo $(MAINLIB)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
397
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
398 showcfg:
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
399 @echo "Compiler : $(CC)"
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
400 @echo "Using CygWin : $(cygwin)"
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
401 @echo "Debugging : $(debugging)"
6
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
402 @echo "Debugging chatter : $(debugging_chatter)"
4
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
403 @echo "ASM flag : $(use_asm)"
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
404 @echo "SDL_sound version : $(VERFULL)"
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
405 @echo "Building DLLs : $(build_dll)"
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
406 @echo "Install prefix : $(install_prefix)"
18
0b66213eb422 Added WAV support.
Ryan C. Gordon <icculus@icculus.org>
parents: 6
diff changeset
407 @echo "Supports .WAV : $(use_decoder_wav)"
35
36f27ef8bebe Added AIFF support.
Ryan C. Gordon <icculus@icculus.org>
parents: 31
diff changeset
408 @echo "Supports .AIFF : $(use_decoder_aiff)"
4
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
409 @echo "Supports .RAW : $(use_decoder_raw)"
6
3f214fe4a82f Added debugging_chatter flag, and VOC and MP3 decoders.
Ryan C. Gordon <icculus@icculus.org>
parents: 4
diff changeset
410 @echo "Supports .MP3 : $(use_decoder_mp3)"
45
f7a792fdf7a4 Added MOD support, and make a per include/lib paths definable.
Ryan C. Gordon <icculus@icculus.org>
parents: 35
diff changeset
411 @echo "Supports .MOD : $(use_decoder_mod)"
4
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
412 @echo "Supports .VOC : $(use_decoder_voc)"
31
530fa59d5db9 Added Ogg Vorbis to "showcfg" target.
Ryan C. Gordon <icculus@icculus.org>
parents: 27
diff changeset
413 @echo "Supports .OGG : $(use_decoder_ogg)"
4
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
414
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
415 showflags:
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
416 @echo 'CFLAGS : $(CFLAGS)'
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
417 @echo 'LDFLAGS : $(LDFLAGS)'
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
418
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
419
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
420 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
421 # This section is pretty much just for Ryan's use to make distributions.
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
422 # You Probably Should Not Touch.
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
423 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
424
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
425 # These are the files needed in a binary distribution, regardless of what
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
426 # platform is being used.
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
427 BINSCOMMON := LICENSE CHANGELOG SDL_sound.h
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
428
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
429 .PHONY: package msbins win32bins nocygwin
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
430 package: clean
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
431 cd .. ; mv SDL_sound SDL_sound-$(VERFULL) ; tar -cyvvf ./SDL_sound-$(VERFULL).tar.bz2 --exclude="*CVS*" SDL_sound-$(VERFULL) ; mv SDL_sound-$(VERFULL) SDL_sound
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
432
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
433
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
434 ifeq ($(strip $(cygwin)),true)
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
435 msbins: win32bins
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
436
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
437 win32bins: clean all
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
438 cp $(SDL_LIB_DIR)/SDL.dll .
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
439 echo -e "\r\n\r\n\r\nHEY YOU.\r\n\r\n\r\nTake a look at README-win32bins.txt FIRST.\r\n\r\n\r\n--ryan. (icculus@clutteredmind.org)\r\n\r\n" |zip -9rz ../SDL_sound-win32bins-$(shell date +%m%d%Y).zip $(MAINLIB) SDL.dll $(EXTRAPACKAGELIBS) README-win32bins.txt
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
440
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
441 else
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
442
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
443 msbins: nocygwin
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
444 win32bins: nocygwin
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
445
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
446 nocygwin:
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
447 @echo This must be done on a Windows box in the Cygwin environment.
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
448
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
449 endif
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
450
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
451 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
452 # That's all, folks.
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
453 #-----------------------------------------------------------------------------#
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
454
341cea3e13c6 Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
455 # end of Makefile ...