forked from msikma/allegro-4.2.2-xc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile.vc
565 lines (409 loc) · 15.6 KB
/
makefile.vc
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
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
#
# Rules for building the Allegro library with MSVC. This file is included
# by the primary makefile, and should not be used directly.
#
# To path MSVC so it can be used from the commandline, run the
# vcvars32.bat file which can be found in your MSVC bin directory.
#
# To use MSVC7 specific options, the variable COMPILER_MSVC7 must be set. The
# fix.bat script should do this automatically if run as `fix msvc7'
#
# To use the Intel commandline compiler instead of the MSVC compiler,
# COMPILER_ICL must be set. Again, `fix icl' should take care of this.
#
# This platform uses GCC for building the assembler sources and calculating
# source dependencies, so you'll need to have that installed in the form of
# DJGPP, MinGW or Cygwin.
#
# 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 = MSVC
RUNNER = obj/msvc/runner.exe
GCC = gcc
EXE = .exe
OBJ = .obj
HTML = html
PLATFORM_DIR = obj/msvc
ifeq ($(TERM), cygwin)
ALLEGRO_USE_CYGWIN=1
UNIX_TOOLS = 1
endif
ifneq (,$(findstring /sh.exe,$(SHELL)))
UNIX_TOOLS = 1
endif
# Choose the calling convention suffix:
ifdef ALLEGRO_USE_C
NO_ASM_SUFFIX = _c
else
NO_ASM_SUFFIX =
endif
ifdef STATICRUNTIME
# ======== USING A STATIC RUNTIME (/MT) ========
ifdef STATICLINK
# -------- link as a static library --------
OBJ_DIR = obj/msvc/$(VERSION)_s_crt$(NO_ASM_SUFFIX)
IMPLIB_BASENAME = $(VERSION)_s_crt$(NO_ASM_SUFFIX).lib
IMPLIB_NAME = lib/msvc/$(IMPLIB_BASENAME)
LIB_NAME = $(IMPLIB_NAME)
else
# -------- link as a DLL --------
OBJ_DIR = obj/msvc/$(VERSION)_crt$(NO_ASM_SUFFIX)
DLL_BASENAME = $(VERSION)$(LIBRARY_VERSION)_crt$(NO_ASM_SUFFIX).dll
DLL_NAME = lib/msvc/$(DLL_BASENAME)
IMPLIB_BASENAME = $(VERSION)_crt$(NO_ASM_SUFFIX).lib
IMPLIB_NAME = lib/msvc/$(IMPLIB_BASENAME)
LIB_NAME = $(DLL_NAME) $(IMPLIB_NAME)
endif
else
# ======== USING DYNAMIC RUNTIME (/MD) ========
ifdef COMPILER_MSVC8
EMBED_MANIFEST = 1
endif
ifdef STATICLINK
# -------- link as a static library --------
OBJ_DIR = obj/msvc/$(VERSION)_s$(NO_ASM_SUFFIX)
IMPLIB_BASENAME = $(VERSION)_s$(NO_ASM_SUFFIX).lib
IMPLIB_NAME = lib/msvc/$(IMPLIB_BASENAME)
LIB_NAME = $(IMPLIB_NAME)
else
# -------- link as a DLL --------
OBJ_DIR = obj/msvc/$(VERSION)$(NO_ASM_SUFFIX)
DLL_BASENAME = $(VERSION)$(LIBRARY_VERSION)$(NO_ASM_SUFFIX).dll
DLL_NAME = lib/msvc/$(DLL_BASENAME)
IMPLIB_BASENAME = $(VERSION)$(NO_ASM_SUFFIX).lib
IMPLIB_NAME = lib/msvc/$(IMPLIB_BASENAME)
LIB_NAME = $(DLL_NAME) $(IMPLIB_NAME)
endif
endif
# -------- check that environment path variables are set --------
.PHONY: badwin badmsvc badspaces
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
badwin:
@echo Your SYSTEMROOT or windir environment variable is not set!
endif
endif # ALLEGRO_USE_CYGWIN
ifndef MSVCDir
badmsvc:
@echo Your MSVCDir environment variable is not set!
@echo See the docs/build/msvc.txt file!
endif
ifdef ALLEGRO_USE_CYGWIN
MSVCDIR_S := $(shell cygpath "$(MSVCDir)")
MSVCDIR_U = $(subst \,/,$(MSVCDIR_S))
MSVCDIR_D = $(subst /,\,$(MSVCDIR_S))
else
MSVCDIR_U = $(subst \,/,$(MSVCDir))
MSVCDIR_D = $(subst /,\,$(MSVCDir))
endif # ALLEGRO_USE_CYGWIN
NULLSTRING :=
SPACE := $(NULLSTRING) # special magic to get an isolated space character
ifneq ($(findstring $(SPACE),$(MSVCDir)),)
badspaces:
@echo There are spaces in your MSVCDir environment variable:
@echo please change it to the 8.3 short filename version,
@echo or move your compiler to a different directory.
endif
# -------- Work out the absolute pathnames for some MSVC tools to avoid confusion --------
ifdef COMPILER_ICL
MSVC_CL = icl
else
MSVC_CL = $(MSVCDIR_U)/bin/cl
endif
MSVC_LINK = $(MSVCDIR_U)/bin/link
MSVC_LIB = $(MSVCDIR_U)/bin/link -lib
MSVC_RC = rc
# -------- give a sensible default target for make without any args --------
.PHONY: _default
_default: default
# -------- decide what compiler options to use --------
ifdef WARNMODE
WFLAGS = -W3 -WX
else
WFLAGS = -W1
endif
ifdef STATICRUNTIME
RUNTIME_FLAGS = -MT
else
RUNTIME_FLAGS = -MD
endif
ifdef DEBUGMODE
# -------- debugging build --------
CFLAGS = -DDEBUGMODE=$(DEBUGMODE) $(WFLAGS) -Gd -Zi $(RUNTIME_FLAGS)d
SFLAGS = -DDEBUGMODE=$(DEBUGMODE) -Wall
LFLAGS = -debug -debugtype:cv
else
ifdef PROFILEMODE
# -------- profiling build --------
CFLAGS = $(WFLAGS) -Gd -Ox $(RUNTIME_FLAGS)
SFLAGS = -Wall
LFLAGS = -profile
else
# -------- optimised build --------
CFLAGS = $(WFLAGS) -Gd $(RUNTIME_FLAGS)
SFLAGS = -Wall
LFLAGS = -release
LIBPARMS =
ifdef COMPILER_ICL
CFLAGS += -Os -G7 -QaxPN
else
ifdef TARGET_ARCH_EXCL
CFLAGS += -O2 -G$(TARGET_ARCH_EXCL)
else
CFLAGS += -O2
endif
endif
ifdef COMPILER_MSVC7
CFLAGS += -GL
LFLAGS += -LTCG
LIBPARMS += -LTCG
endif
ifdef COMPILER_MSVC8
CFLAGS += -GL
LFLAGS += -LTCG
LIBPARMS += -LTCG
endif
endif
endif
# -------- on all MSVC 8 targets, remove deprecation warnings --------
ifdef COMPILER_MSVC8
CFLAGS += -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE
endif
# -------- list platform specific objects and programs --------
VPATH = src/win src/misc src/compat 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 = kernel32.lib user32.lib gdi32.lib comdlg32.lib ole32.lib \
dinput.lib ddraw.lib dxguid.lib winmm.lib dsound.lib
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 = $(MSVCDIR_U)
LIBDIR = lib
INCDIR = include
ifdef UNIX_TOOLS
$(WINDIR_U)/$(DLL_BASENAME): $(DLL_NAME)
cp lib/msvc/$(DLL_BASENAME) $(WINDIR_U)
$(MSVCDIR_U)/lib/$(IMPLIB_BASENAME): $(IMPLIB_NAME) $(MSVCDIR_U)/lib
cp lib/msvc/$(IMPLIB_BASENAME) $(MSVCDIR_U)/lib
else
$(WINDIR_U)/$(DLL_BASENAME): $(DLL_NAME)
copy lib\msvc\$(DLL_BASENAME) $(WINDIR_D)
$(MSVCDIR_U)/lib/$(IMPLIB_BASENAME): $(IMPLIB_NAME) $(MSVCDIR_U)/lib
copy lib\msvc\$(IMPLIB_BASENAME) $(MSVCDIR_D)\lib
endif
HEADERS = $(MSVCDIR_U)/include/winalleg.h \
$(MSVCDIR_U)/include/allegro/platform/aintwin.h \
$(MSVCDIR_U)/include/allegro/platform/al386vc.h \
$(MSVCDIR_U)/include/allegro/platform/almsvc.h \
$(MSVCDIR_U)/include/allegro/platform/alplatf.h \
$(MSVCDIR_U)/include/allegro/platform/astdint.h \
$(MSVCDIR_U)/include/allegro/platform/alwin.h
INSTALL_FILES = $(MSVCDIR_U)/lib/$(IMPLIB_BASENAME)
ifndef STATICLINK
INSTALL_FILES += $(WINDIR_U)/$(DLL_BASENAME)
endif
INSTALL_FILES += $(HEADERS)
install: generic-install
@echo The $(DESCRIPTION) $(PLATFORM) library has been installed.
UNINSTALL_FILES = $(MSVCDIR_U)/lib/alleg.lib \
$(MSVCDIR_U)/lib/alld.lib \
$(MSVCDIR_U)/lib/allp.lib \
$(MSVCDIR_U)/lib/alleg_s.lib \
$(MSVCDIR_U)/lib/alld_s.lib \
$(MSVCDIR_U)/lib/allp_s.lib \
$(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/msvc/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 = @echo ...integrated
include makefile.tst
# -------- finally, we get to the fun part... --------
ifdef STATICLINK
# -------- link as a static library --------
define MAKE_LIB
$(RUNNER) $(MSVC_LIB) @ -nologo $(LIBPARMS) -out:$(LIB_NAME) $(OBJECTS)
endef
COMPILE_FLAGS = -DALLEGRO_STATICLINK
else
# -------- link as a DLL --------
ifdef EMBED_MANIFEST
ifdef ALLEGRO_USE_CYGWIN
EMBEDMAN_BAT = misc/embedman.bat
else
EMBEDMAN_BAT = misc\embedman.bat
endif
define MAKE_LIB
$(RUNNER) $(MSVC_LINK) @ -nologo $(LFLAGS) -dll -def:lib/msvc/allegro.def -out:$(DLL_NAME) -implib:$(IMPLIB_NAME) $(OBJECTS) $(LIBRARIES)
$(EMBEDMAN_BAT) "$(subst /,\,$(DLL_NAME))" 2
endef
else
define MAKE_LIB
$(RUNNER) $(MSVC_LINK) @ -nologo $(LFLAGS) -dll -def:lib/msvc/allegro.def -out:$(DLL_NAME) -implib:$(IMPLIB_NAME) $(OBJECTS) $(LIBRARIES)
endef
endif
endif
COMPILE_FLAGS += $(subst src/,-DALLEGRO_SRC ,$(findstring src/, $<))$(CFLAGS)
$(OBJ_DIR)/%.obj: %.c $(RUNNER)
$(RUNNER) $(MSVC_CL) @ -nologo $(COMPILE_FLAGS) -I. -I./include -Fo$@ -c $<
$(OBJ_DIR)/%.obj: %.cpp $(RUNNER)
$(RUNNER) $(MSVC_CL) @ -nologo $(COMPILE_FLAGS) -I. -I./include -Fo$@ -c $<
$(OBJ_DIR)/%.obj: %.s
$(GCC) $(SFLAGS) -I. -I./include -x assembler-with-cpp -o $@ -c $<
$(OBJ_DIR)/%.obj: %.rc
$(MSVC_RC) -i"include" -fo$@ $<
obj/msvc/%.res: %.rc
$(MSVC_RC) -fo$@ $<
tests/win/dibsound.exe: $(OBJ_DIR)/dibsound.obj obj/msvc/dibsound.res $(IMPLIB_NAME) $(RUNNER)
$(RUNNER) $(MSVC_LINK) @ -nologo $(LFLAGS) -subsystem:windows -out:tests/win/dibsound.exe $(OBJ_DIR)/dibsound.obj obj/msvc/dibsound.res $(IMPLIB_NAME) $(LIBRARIES)
tests/win/dxwindow.exe: $(OBJ_DIR)/dxwindow.obj obj/msvc/dxwindow.res $(IMPLIB_NAME) $(RUNNER)
$(RUNNER) $(MSVC_LINK) @ -nologo $(LFLAGS) -subsystem:windows -out:tests/win/dxwindow.exe $(OBJ_DIR)/dxwindow.obj obj/msvc/dxwindow.res $(IMPLIB_NAME) $(LIBRARIES)
tests/win/%.exe: $(OBJ_DIR)/%.obj $(IMPLIB_NAME) $(RUNNER)
$(RUNNER) $(MSVC_LINK) @ -nologo $(LFLAGS) -subsystem:windows -out:$@ $< $(IMPLIB_NAME) $(LIBRARIES)
tests/win/scrsave.scr: $(OBJ_DIR)/scrsave.obj obj/msvc/scrsave.res $(IMPLIB_NAME) $(RUNNER)
$(RUNNER) $(MSVC_LINK) @ -nologo $(LFLAGS) -subsystem:windows -out:tests/win/scrsave.scr $(OBJ_DIR)/scrsave.obj obj/msvc/scrsave.res $(IMPLIB_NAME) $(LIBRARIES)
tools/win/%.exe: $(OBJ_DIR)/%.obj $(IMPLIB_NAME) $(RUNNER)
$(RUNNER) $(MSVC_LINK) @ -nologo $(LFLAGS) -subsystem:console -out:$@ $< $(IMPLIB_NAME) $(LIBRARIES)
obj/msvc/demo.res: demo/demo.dat tools/win/wfixicon.exe
ifdef STATICLINK
tools/win/wfixicon.exe obj/msvc/demo.ico -ro -d demo/demo.dat SHIP3 GAME_PAL
else
ifdef UNIX_TOOLS
cp tools/win/wfixicon.exe lib/msvc/wfixicon.exe
ifdef EMBED_MANIFEST
cp tools/win/wfixicon.exe.manifest lib/msvc/wfixicon.exe.manifest
endif
else
copy tools\win\wfixicon.exe lib\msvc\wfixicon.exe
ifdef EMBED_MANIFEST
copy tools\win\wfixicon.exe.manifest lib\msvc\wfixicon.exe.manifest
endif
endif
lib/msvc/wfixicon.exe obj/msvc/demo.ico -ro -d demo/demo.dat SHIP3 GAME_PAL
ifdef UNIX_TOOLS
rm lib/msvc/wfixicon.exe
ifdef COMPILER_MSVC8
rm lib/msvc/wfixicon.exe.manifest
endif
else
del lib\msvc\wfixicon.exe
ifdef COMPILER_MSVC8
del lib\msvc\wfixicon.exe.manifest
endif
endif
endif
demo/demo.exe: obj/msvc/demo.res $(IMPLIB_NAME) $(RUNNER)
$(RUNNER) $(MSVC_LINK) @ -nologo $(LFLAGS) -subsystem:windows -out:demo/demo.exe $(OBJECTS_DEMO) obj/msvc/demo.res $(IMPLIB_NAME) $(LIBRARIES)
*/%.exe: $(OBJ_DIR)/%.obj $(IMPLIB_NAME) $(RUNNER)
$(RUNNER) $(MSVC_LINK) @ -nologo $(LFLAGS) -subsystem:windows -out:$@ $< $(IMPLIB_NAME) $(LIBRARIES)
LINK_CONSOLE_DEPS = $(IMPLIB_NAME) $(RUNNER)
define LINK_CONSOLE
$(RUNNER) $(MSVC_LINK) @ -nologo $(LFLAGS) -subsystem:console -out:$@ $< $(IMPLIB_NAME) $(LIBRARIES)
endef
obj/msvc/asmdef.inc: obj/msvc/asmdef.exe
obj/msvc/asmdef.exe obj/msvc/asmdef.inc
obj/msvc/asmdef.exe: src/i386/asmdef.c include/*.h include/allegro/*.h obj/msvc/asmcapa.h $(RUNNER)
$(RUNNER) $(MSVC_CL) @ -nologo $(WFLAGS) $(CFLAGS) -I. -I./include -Foobj/msvc/asmdef.obj -Feobj/msvc/asmdef.exe src/i386/asmdef.c
obj/msvc/runner.exe: src/misc/runner.c
$(GCC) -O -Wall -Werror -o obj/msvc/runner.exe src/misc/runner.c
define LINK_WITHOUT_LIB
$(RUNNER) $(MSVC_LINK) @ -nologo $(LFLAGS) -subsystem:console -out:$@ $^
endef
PLUGIN_LIB = lib/msvc/$(VERY_SHORT_VERSION)dat.lib
PLUGIN_DEPS = $(IMPLIB_NAME) $(PLUGIN_LIB) $(RUNNER)
PLUGINS_H = obj/msvc/plugins.h
PLUGIN_SCR = scv
ifdef UNIX_TOOLS
define GENERATE_PLUGINS_H
cat tools/plugins/*.inc > obj/msvc/plugins.h
endef
else
define GENERATE_PLUGINS_H
copy /B tools\plugins\*.inc obj\msvc\plugins.h
endef
endif
define MAKE_PLUGIN_LIB
$(RUNNER) $(MSVC_LIB) @ -nologo $(LIBPARMS) -out:$(PLUGIN_LIB) $(PLUGIN_OBJS)
endef
define LINK_WITH_PLUGINS
$(RUNNER) $(MSVC_LINK) @ -nologo $(LFLAGS) -subsystem:windows -out:$@ $< $(strip $(PLUGIN_LIB) $(addprefix @,$(PLUGIN_SCRIPTS)) $(IMPLIB_NAME) $(LIBRARIES))
endef
define LINK_CONSOLE_WITH_PLUGINS
$(RUNNER) $(MSVC_LINK) @ -nologo $(LFLAGS) -subsystem:console -out:$@ $< $(strip $(PLUGIN_LIB) $(addprefix @,$(PLUGIN_SCRIPTS)) $(IMPLIB_NAME) $(LIBRARIES))
endef
# -------- generate automatic dependencies --------
DEPEND_PARAMS = -MM -MG -I. -I./include -DSCAN_DEPEND -DALLEGRO_MSVC
depend:
$(GCC) $(DEPEND_PARAMS) src/*.c src/c/*.c src/i386/*.c src/misc/*.c src/win/*.c demo/*.c > _depend.tmp
$(GCC) $(DEPEND_PARAMS) docs/src/makedoc/*.c examples/*.c setup/*.c tests/*.c tests/win/*.c >> _depend.tmp
$(GCC) $(DEPEND_PARAMS) tools/*.c tools/win/*.c tools/plugins/*.c >> _depend.tmp
$(GCC) $(DEPEND_PARAMS) -x c tests/*.cpp >> _depend.tmp
$(GCC) $(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\/msvc\/alleg\/\1\.obj:/" _depend2.tmp > obj/msvc/alleg/makefile.dep
sed -e "s/^\([a-zA-Z0-9_]*\)\.o:/obj\/msvc\/alld\/\1\.obj:/" _depend2.tmp > obj/msvc/alld/makefile.dep
sed -e "s/^\([a-zA-Z0-9_]*\)\.o:/obj\/msvc\/allp\/\1\.obj:/" _depend2.tmp > obj/msvc/allp/makefile.dep
sed -e "s/^\([a-zA-Z0-9_]*\)\.o:/obj\/msvc\/alleg_s\/\1\.obj:/" _depend2.tmp > obj/msvc/alleg_s/makefile.dep
sed -e "s/^\([a-zA-Z0-9_]*\)\.o:/obj\/msvc\/alld_s\/\1\.obj:/" _depend2.tmp > obj/msvc/alld_s/makefile.dep
sed -e "s/^\([a-zA-Z0-9_]*\)\.o:/obj\/msvc\/allp_s\/\1\.obj:/" _depend2.tmp > obj/msvc/allp_s/makefile.dep
rm _depend.tmp _depend2.tmp
else
sed -e "s/^\([a-zA-Z0-9_]*\)\.o:/obj\/msvc\/alleg\/\1\.obj:/" _depend2.tmp > obj\msvc\alleg\makefile.dep
sed -e "s/^\([a-zA-Z0-9_]*\)\.o:/obj\/msvc\/alld\/\1\.obj:/" _depend2.tmp > obj\msvc\alld\makefile.dep
sed -e "s/^\([a-zA-Z0-9_]*\)\.o:/obj\/msvc\/allp\/\1\.obj:/" _depend2.tmp > obj\msvc\allp\makefile.dep
sed -e "s/^\([a-zA-Z0-9_]*\)\.o:/obj\/msvc\/alleg_s\/\1\.obj:/" _depend2.tmp > obj\msvc\alleg_s\makefile.dep
sed -e "s/^\([a-zA-Z0-9_]*\)\.o:/obj\/msvc\/alld_s\/\1\.obj:/" _depend2.tmp > obj\msvc\alld_s\makefile.dep
sed -e "s/^\([a-zA-Z0-9_]*\)\.o:/obj\/msvc\/allp_s\/\1\.obj:/" _depend2.tmp > obj\msvc\allp_s\makefile.dep
del _depend.tmp
del _depend2.tmp
endif