forked from msikma/allegro-4.2.2-xc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile.mgw
545 lines (385 loc) · 14.9 KB
/
makefile.mgw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
#
# Rules for building the Allegro library with MingW32. This file is included
# by the primary makefile, and should not be used directly.
#
# The "depend" target uses sed.
#
# See makefile.all for a list of the available targets.
# -------- define some variables that the primary makefile will use --------
PLATFORM = MinGW32
CC = gcc
EXE = .exe
OBJ = .o
HTML = html
ifndef CROSSCOMPILE
PLUGIN_RUNNER = obj/mingw32/runner.exe
endif
PLATFORM_DIR = obj/mingw32
ifdef CROSSCOMPILE
UNIX_TOOLS = 1
CC = $(XPREFIX)gcc
endif
ifdef ALLEGRO_USE_CYGWIN
UNIX_TOOLS = 1
endif
ifneq (,$(findstring /sh.exe,$(SHELL)))
UNIX_TOOLS = 1
endif
ifdef ALLEGRO_USE_C
NO_ASM_SUFFIX = _c
else
NO_ASM_SUFFIX =
endif
ifdef STATICLINK
# -------- link as a static library --------
OBJ_DIR = obj/mingw32/$(VERSION)_s$(NO_ASM_SUFFIX)
IMPLIB_BASENAME = lib$(VERSION)_s$(NO_ASM_SUFFIX).a
IMPLIB_NAME = lib/mingw32/$(IMPLIB_BASENAME)
LIB_NAME = $(IMPLIB_NAME)
else
# -------- link as a DLL --------
OBJ_DIR = obj/mingw32/$(VERSION)$(NO_ASM_SUFFIX)
DLL_BASENAME = $(VERSION)$(LIBRARY_VERSION)$(NO_ASM_SUFFIX).dll
DLL_NAME = lib/mingw32/$(DLL_BASENAME)
IMPLIB_BASENAME = lib$(VERSION)$(NO_ASM_SUFFIX).a
IMPLIB_NAME = lib/mingw32/$(IMPLIB_BASENAME)
LIB_NAME = $(DLL_NAME) $(IMPLIB_NAME)
EXPDEF_NAME = lib/mingw32/allegro.def
endif # STATICLINK
# -------- check that environment path variable is set --------
.PHONY: badwin badming
ifdef ALLEGRO_USE_CYGWIN
WINDIR_S := $(shell cygpath -S)
WINDIR_U = $(subst \,/,$(WINDIR_S))
WINDIR_D = $(subst /,\,$(WINDIR_S))
else
ifeq ($(OS),Windows_NT)
WINSYSDIR = $(SYSTEMROOT)
ifeq ($(WINSYSDIR),)
WINSYSDIR = $(SystemRoot)
endif
WINSUBDIR = system32
else
WINSYSDIR = $(WINDIR)
ifeq ($(WINSYSDIR),)
WINSYSDIR = $(windir)
endif
WINSUBDIR = system
endif
ifneq ($(WINSYSDIR),)
WINDIR_U = $(subst \,/,$(WINSYSDIR)/$(WINSUBDIR))
WINDIR_D = $(subst /,\,$(WINSYSDIR)\$(WINSUBDIR))
else
ifndef CROSSCOMPILE
badwin:
@echo Your SYSTEMROOT or WINDIR environment variable is not set!
endif
endif
endif # ALLEGRO_USE_CYGWIN
ifdef MINGDIR
MINGDIR_U = $(subst \,/,$(MINGDIR))
MINGDIR_D = $(subst /,\,$(MINGDIR))
else
badming:
@echo Your MINGDIR environment variable is not set!
@echo See the docs/build/mingw32.txt file!
endif
NULLSTRING :=
SPACE := $(NULLSTRING) # special magic to get an isolated space character
ifneq ($(findstring $(SPACE),$(MINGDIR)),)
badspaces:
@echo There are spaces in your MINGDIR environment variable:
@echo please change it to the 8.3 short filename version,
@echo or move your compiler to a different directory.
endif
# -------- give a sensible default target for make without any args --------
.PHONY: _default
_default: default
# -------- decide what compiler options to use --------
ifdef ALLEGRO_USE_CYGWIN
PFLAGS = -mno-cygwin
endif
ifdef WARNMODE
WFLAGS = -Wall -W -Wstrict-prototypes -Wno-unused -Werror
else
WFLAGS = -Wall -Wno-unused
endif
ifdef TARGET_ARCH_COMPAT
TARGET_ARCH = $(GCC_MTUNE)=$(TARGET_ARCH_COMPAT)
else
ifdef TARGET_ARCH_EXCL
TARGET_ARCH = -march=$(TARGET_ARCH_EXCL)
else
TARGET_ARCH = $(GCC_MTUNE)=i586
endif
endif
ifndef TARGET_OPTS
TARGET_OPTS = -O2 -funroll-loops -ffast-math
endif
OFLAGS = $(TARGET_ARCH) $(TARGET_OPTS)
CFLAGS = -DALLEGRO_LIB_BUILD
ifdef DEBUGMODE
# -------- debugging build --------
CFLAGS += -DDEBUGMODE=$(DEBUGMODE) $(WFLAGS) $(PFLAGS) -g
SFLAGS = -DDEBUGMODE=$(DEBUGMODE) $(WFLAGS)
LFLAGS += -g
else
ifdef PROFILEMODE
# -------- profiling build --------
CFLAGS += $(WFLAGS) $(OFLAGS) $(PFLAGS) -pg
SFLAGS = $(WFLAGS)
LFLAGS += -pg
else
# -------- optimised build --------
CFLAGS += $(WFLAGS) $(OFLAGS) $(PFLAGS) -fomit-frame-pointer
SFLAGS = $(WFLAGS)
ifndef SYMBOLMODE
LFLAGS += -s
endif
endif
endif
# -------- list platform specific objects and programs --------
VPATH = src/win src/misc tests/win tools/win
ifdef ALLEGRO_USE_C
# ------ build a C-only version ------
VPATH += src/c
MY_OBJECTS = $(C_OBJECTS)
CFLAGS += -DALLEGRO_NO_ASM
SFLAGS += -DALLEGRO_NO_ASM
else
# ------ build the normal asm version ------
VPATH += src/i386
MY_OBJECTS = $(I386_OBJECTS)
endif # ALLEGRO_USE_C
OBJECT_LIST = $(COMMON_OBJECTS) $(MY_OBJECTS) $(basename $(notdir $(ALLEGRO_SRC_WIN_FILES)))
LIBRARIES = -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lole32 -ldinput -lddraw -ldxguid -lwinmm -ldsound
ifdef PROFILEMODE
LIBRARIES += -lgmon
endif
ifdef ALLEGRO_USE_CYGWIN
LIBRARIES += -L/lib/mingw -lmoldname -lmsvcrt
endif
PROGRAMS = dibgrab dibhello dibsound dxwindow scrsave wfixicon
dibgrab: tests/win/dibgrab.exe
dibhello: tests/win/dibhello.exe
dibsound: tests/win/dibsound.exe
dxwindow: tests/win/dxwindow.exe
scrsave: tests/win/scrsave.scr
wfixicon: tools/win/wfixicon.exe
# -------- rules for installing and removing the library files --------
INSTALLDIR = $(MINGDIR_U)
LIBDIR = lib
INCDIR = include
ifdef UNIX_TOOLS
$(MINGDIR_U)/lib/$(IMPLIB_BASENAME): $(IMPLIB_NAME) $(MINGDIR_U)/lib
cp lib/mingw32/$(IMPLIB_BASENAME) $(MINGDIR_U)/lib
$(WINDIR_U)/$(DLL_BASENAME): $(DLL_NAME)
cp lib/mingw32/$(DLL_BASENAME) $(WINDIR_U)
else
$(MINGDIR_U)/lib/$(IMPLIB_BASENAME): $(IMPLIB_NAME) $(MINGDIR_U)/lib
copy lib\mingw32\$(IMPLIB_BASENAME) $(MINGDIR_D)\lib
$(WINDIR_U)/$(DLL_BASENAME): $(DLL_NAME)
copy lib\mingw32\$(DLL_BASENAME) $(WINDIR_D)
endif # UNIX_TOOLS
HEADERS = $(MINGDIR_U)/include/winalleg.h \
$(MINGDIR_U)/include/allegro/platform/aintwin.h \
$(MINGDIR_U)/include/allegro/platform/al386gcc.h \
$(MINGDIR_U)/include/allegro/platform/almngw32.h \
$(MINGDIR_U)/include/allegro/platform/alplatf.h \
$(MINGDIR_U)/include/allegro/platform/astdint.h \
$(MINGDIR_U)/include/allegro/platform/alwin.h
INSTALL_FILES = $(MINGDIR_U)/lib/$(IMPLIB_BASENAME)
ifndef CROSSCOMPILE
ifndef STATICLINK
INSTALL_FILES += $(WINDIR_U)/$(DLL_BASENAME)
endif
endif
INSTALL_FILES += $(HEADERS)
install: generic-install
@echo The $(DESCRIPTION) $(PLATFORM) library has been installed.
UNINSTALL_FILES = $(MINGDIR_U)/lib/liballeg.a \
$(MINGDIR_U)/lib/liballd.a \
$(MINGDIR_U)/lib/liballp.a \
$(MINGDIR_U)/lib/liballeg_s.a \
$(MINGDIR_U)/lib/liballd_s.a \
$(MINGDIR_U)/lib/liballp_s.a \
$(WINDIR_U)/alleg$(LIBRARY_VERSION).dll \
$(WINDIR_U)/alld$(LIBRARY_VERSION).dll \
$(WINDIR_U)/allp$(LIBRARY_VERSION).dll \
$(HEADERS)
uninstall: generic-uninstall
@echo All gone!
# -------- helper function for compressing the executables --------
.PHONY: compress
compress:
ifdef UPX_BIN
$(UPX_BIN) demo/*.exe examples/*.exe setup/*.exe tests/*.exe tools/*.exe lib/mingw32/all*.dll
else
@echo No executable compressor specified! You must set the environment variable
@echo UPX_BIN to point to upx.exe.
endif
# -------- test capabilities --------
TEST_CPP = $(CC) -fno-exceptions -c src/misc/test.cpp -o $(PLATFORM_DIR)/test.o
include makefile.tst
# -------- finally, we get to the fun part... --------
ifndef CROSSCOMPILE
DLLWRAP = dllwrap
WINDRES = windres
AR = ar
else
DLLWRAP = $(XPREFIX)dllwrap
WINDRES = $(XPREFIX)windres
AR = $(XPREFIX)ar
endif
ifdef STATICLINK
# -------- link as a static library --------
define MAKE_LIB
$(AR) crs $(LIB_NAME) $(OBJECTS)
endef
COMPILE_FLAGS = -DALLEGRO_STATICLINK
else
# -------- link as a DLL --------
define MAKE_LIB
$(DLLWRAP) $(PFLAGS) --target i386-mingw32 --def $(EXPDEF_NAME) -o $(DLL_NAME) $(OBJECTS) $(LIBRARIES) --output-lib $(IMPLIB_NAME)
endef
endif # STATICLINK
COMPILE_FLAGS += $(subst src/,-DALLEGRO_SRC ,$(findstring src/, $<))$(CFLAGS)
$(OBJ_DIR)/%.o: %.c
$(CC) $(COMPILE_FLAGS) -I. -I./include -o $@ -c $<
$(OBJ_DIR)/%.o: %.cpp
$(CC) -fno-exceptions $(COMPILE_FLAGS) -I. -I./include -o $@ -c $<
$(OBJ_DIR)/%.o: %.s
$(CC) $(SFLAGS) -I. -I./include -x assembler-with-cpp -o $@ -c $<
$(OBJ_DIR)/%.o: %.rc
$(WINDRES) --include-dir include -O coff -o $@ -i $<
obj/mingw32/%.res: %.rc
$(WINDRES) -O coff -o $@ -i $<
tests/win/dibsound.exe: $(OBJ_DIR)/dibsound.o obj/mingw32/dibsound.res $(IMPLIB_NAME)
$(CC) $(LFLAGS) $(PFLAGS) -Wl,--subsystem,windows -o tests/win/dibsound.exe $(OBJ_DIR)/dibsound.o obj/mingw32/dibsound.res $(IMPLIB_NAME) $(LIBRARIES)
tests/win/dxwindow.exe: $(OBJ_DIR)/dxwindow.o obj/mingw32/dxwindow.res $(IMPLIB_NAME)
$(CC) $(LFLAGS) $(PFLAGS) -Wl,--subsystem,windows -o tests/win/dxwindow.exe $(OBJ_DIR)/dxwindow.o obj/mingw32/dxwindow.res $(IMPLIB_NAME) $(LIBRARIES)
tests/win/%.exe: $(OBJ_DIR)/%.o $(IMPLIB_NAME)
$(CC) $(LFLAGS) $(PFLAGS) -Wl,--subsystem,windows -o $@ $< $(IMPLIB_NAME) $(LIBRARIES)
tests/win/scrsave.scr: $(OBJ_DIR)/scrsave.o obj/mingw32/scrsave.res $(IMPLIB_NAME)
$(CC) $(LFLAGS) $(PFLAGS) -Wl,--subsystem,windows -o tests/win/scrsave.scr $(OBJ_DIR)/scrsave.o obj/mingw32/scrsave.res $(IMPLIB_NAME) $(LIBRARIES)
tools/win/%.exe: $(OBJ_DIR)/%.o $(IMPLIB_NAME)
$(CC) $(LFLAGS) $(PFLAGS) -Wl,--subsystem,console -o $@ $< $(IMPLIB_NAME) $(LIBRARIES)
ifdef CROSSCOMPILE
demo/demo.exe: $(IMPLIB_NAME)
$(CC) $(LFLAGS) $(PFLAGS) -Wl,--subsystem,windows -o $@ $(OBJECTS_DEMO) $(IMPLIB_NAME) $(LIBRARIES)
setup/setup.exe: $(OBJ_DIR)/setup.o $(IMPLIB_NAME)
$(CC) $(LFLAGS) $(PFLAGS) -Wl,--subsystem,windows -o $@ $< $(IMPLIB_NAME) $(LIBRARIES)
else
obj/mingw32/demo.res: demo/demo.dat tools/win/wfixicon.exe
ifdef STATICLINK
tools/win/wfixicon.exe obj/mingw32/demo.ico -ro -d demo/demo.dat SHIP3 GAME_PAL
else
ifdef UNIX_TOOLS
cp tools/win/wfixicon.exe lib/mingw32/wfixicon.exe
else
copy tools\win\wfixicon.exe lib\mingw32\wfixicon.exe
endif
lib/mingw32/wfixicon.exe obj/mingw32/demo.ico -ro -d demo/demo.dat SHIP3 GAME_PAL
ifdef UNIX_TOOLS
rm lib/mingw32/wfixicon.exe
else
del lib\mingw32\wfixicon.exe
endif
endif
demo/demo.exe: obj/mingw32/demo.res $(IMPLIB_NAME)
$(CC) $(LFLAGS) $(PFLAGS) -Wl,--subsystem,windows -o $@ $(OBJECTS_DEMO) obj/mingw32/demo.res $(IMPLIB_NAME) $(LIBRARIES)
obj/mingw32/setupdat.s: setup/setup.dat tools/dat2s.exe
ifdef STATICLINK
tools/dat2s.exe -p setup -o obj/mingw32/setupdat.s setup/setup.dat
else
ifdef UNIX_TOOLS
cp tools/dat2s.exe lib/mingw32/dat2s.exe
else
copy tools\dat2s.exe lib\mingw32\dat2s.exe
endif
lib/mingw32/dat2s.exe -p setup -o obj/mingw32/setupdat.s setup/setup.dat
ifdef UNIX_TOOLS
rm lib/mingw32/dat2s.exe
else
del lib\mingw32\dat2s.exe
endif
endif
obj/mingw32/setupdat.o: obj/mingw32/setupdat.s
$(CC) -o obj/mingw32/setupdat.o -c obj/mingw32/setupdat.s
$(OBJ_DIR)/setup.o: setup/setup.c
$(CC) $(COMPILE_FLAGS) -DSETUP_USE_COMPILED_DATAFILES -I. -I./include -o $(OBJ_DIR)/setup.o -c setup/setup.c
setup/setup.exe: $(OBJ_DIR)/setup.o obj/mingw32/setupdat.o $(IMPLIB_NAME)
$(CC) $(LFLAGS) $(PFLAGS) -Wl,--subsystem,windows -o setup/setup.exe $(OBJ_DIR)/setup.o obj/mingw32/setupdat.o $(IMPLIB_NAME) $(LIBRARIES)
endif # CROSSCOMPILE
examples/%.exe setup/%.exe tests/%.exe: $(OBJ_DIR)/%.o $(IMPLIB_NAME)
$(CC) $(LFLAGS) $(PFLAGS) -Wl,--subsystem,windows -o $@ $< $(IMPLIB_NAME) $(LIBRARIES)
LINK_CONSOLE_DEPS = $(IMPLIB_NAME)
define LINK_CONSOLE
$(CC) $(LFLAGS) $(PFLAGS) -Wl,--subsystem,console -o $@ $< $(IMPLIB_NAME) $(LIBRARIES)
endef
ifdef CROSSCOMPILE
obj/mingw32/asmdef.s: src/i386/asmdef.c include/*.h include/allegro/*.h obj/mingw32/asmcapa.h
$(CC) $(WFLAGS) -I. -I./include -S -o obj/mingw32/asmdef.s src/i386/asmdef.c
obj/mingw32/asmdef.inc: obj/mingw32/asmdef.s
if [ ! -x misc/asmdef.sh ]; then chmod a+x misc/asmdef.sh; fi
misc/asmdef.sh obj/mingw32/asmdef.s obj/mingw32/asmdef.inc
else
obj/mingw32/asmdef.inc: obj/mingw32/asmdef.exe
obj/mingw32/asmdef.exe obj/mingw32/asmdef.inc
obj/mingw32/asmdef.exe: src/i386/asmdef.c
$(CC) -O $(WFLAGS) $(PFLAGS) -I. -I./include -o obj/mingw32/asmdef.exe src/i386/asmdef.c
obj/mingw32/runner.exe: src/misc/runnergw.c
$(CC) -O -Wall -Werror -o obj/mingw32/runner.exe src/misc/runnergw.c
endif # CROSSCOMPILE
define LINK_WITHOUT_LIB
$(CC) $(LFLAGS) $(PFLAGS) -Wl,--subsystem,console -o $@ $^
endef
PLUGIN_LIB = lib/mingw32/lib$(VERY_SHORT_VERSION)dat.a
PLUGIN_DEPS = $(IMPLIB_NAME) $(PLUGIN_LIB) $(PLUGIN_RUNNER)
PLUGINS_H = obj/mingw32/plugins.h
PLUGIN_SCR = scm
ifdef UNIX_TOOLS
define GENERATE_PLUGINS_H
cat tools/plugins/*.inc > obj/mingw32/plugins.h
endef
else
define GENERATE_PLUGINS_H
copy /B tools\plugins\*.inc obj\mingw32\plugins.h
endef
endif
define MAKE_PLUGIN_LIB
$(AR) crs $(PLUGIN_LIB) $(PLUGIN_OBJS)
endef
define LINK_WITH_PLUGINS
$(PLUGIN_RUNNER) $(CC) $(LFLAGS) $(PFLAGS) -Wl,--subsystem,windows -o $@ $< $(strip $(PLUGIN_LIB) $(addprefix @,$(PLUGIN_SCRIPTS)) $(IMPLIB_NAME) $(LIBRARIES))
endef
define LINK_CONSOLE_WITH_PLUGINS
$(PLUGIN_RUNNER) $(CC) $(LFLAGS) $(PFLAGS) -Wl,--subsystem,console -o $@ $< $(strip $(PLUGIN_LIB) $(addprefix @,$(PLUGIN_SCRIPTS)) $(IMPLIB_NAME) $(LIBRARIES))
endef
# -------- generate automatic dependencies --------
DEPEND_PARAMS = -MM -MG -I. -I./include -DSCAN_DEPEND -DALLEGRO_MINGW32
depend:
$(CC) $(DEPEND_PARAMS) src/*.c src/c/*.c src/i386/*.c src/misc/*.c src/win/*.c demo/*.c > _depend.tmp
$(CC) $(DEPEND_PARAMS) docs/src/makedoc/*.c examples/*.c setup/*.c tests/*.c tests/win/*.c >> _depend.tmp
$(CC) $(DEPEND_PARAMS) tools/*.c tools/win/*.c tools/plugins/*.c >> _depend.tmp
$(CC) $(DEPEND_PARAMS) -x c tests/*.cpp >> _depend.tmp
$(CC) $(DEPEND_PARAMS) -x assembler-with-cpp src/c/*.s src/i386/*.s src/misc/*.s src/win/*.s >> _depend.tmp
sed -e "s/^[a-zA-Z0-9_\/]*\///" _depend.tmp > _depend2.tmp
ifdef UNIX_TOOLS
sed -e "s/^\([a-zA-Z0-9_]*\)\.o:/obj\/mingw32\/alleg\/\1\.o:/" _depend2.tmp > obj/mingw32/alleg/makefile.dep
sed -e "s/^\([a-zA-Z0-9_]*\)\.o:/obj\/mingw32\/alld\/\1\.o:/" _depend2.tmp > obj/mingw32/alld/makefile.dep
sed -e "s/^\([a-zA-Z0-9_]*\)\.o:/obj\/mingw32\/allp\/\1\.o:/" _depend2.tmp > obj/mingw32/allp/makefile.dep
sed -e "s/^\([a-zA-Z0-9_]*\)\.o:/obj\/mingw32\/alleg_s\/\1\.o:/" _depend2.tmp > obj/mingw32/alleg_s/makefile.dep
sed -e "s/^\([a-zA-Z0-9_]*\)\.o:/obj\/mingw32\/alld_s\/\1\.o:/" _depend2.tmp > obj/mingw32/alld_s/makefile.dep
sed -e "s/^\([a-zA-Z0-9_]*\)\.o:/obj\/mingw32\/allp_s\/\1\.o:/" _depend2.tmp > obj/mingw32/allp_s/makefile.dep
rm _depend.tmp _depend2.tmp
else
sed -e "s/^\([a-zA-Z0-9_]*\)\.o:/obj\/mingw32\/alleg\/\1\.o:/" _depend2.tmp > obj\mingw32\alleg\makefile.dep
sed -e "s/^\([a-zA-Z0-9_]*\)\.o:/obj\/mingw32\/alld\/\1\.o:/" _depend2.tmp > obj\mingw32\alld\makefile.dep
sed -e "s/^\([a-zA-Z0-9_]*\)\.o:/obj\/mingw32\/allp\/\1\.o:/" _depend2.tmp > obj\mingw32\allp\makefile.dep
sed -e "s/^\([a-zA-Z0-9_]*\)\.o:/obj\/mingw32\/alleg_s\/\1\.o:/" _depend2.tmp > obj\mingw32\alleg_s\makefile.dep
sed -e "s/^\([a-zA-Z0-9_]*\)\.o:/obj\/mingw32\/alld_s\/\1\.o:/" _depend2.tmp > obj\mingw32\alld_s\makefile.dep
sed -e "s/^\([a-zA-Z0-9_]*\)\.o:/obj\/mingw32\/allp_s\/\1\.o:/" _depend2.tmp > obj\mingw32\allp_s\makefile.dep
del _depend.tmp
del _depend2.tmp
endif