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