Gered
40bab9e61b
the map_edit sources from the cd seemed to include two different versions of a map editor. the sources i've left here seem to most closely match the version of mapedit.exe included on the book's cd
74 lines
1.7 KiB
Makefile
74 lines
1.7 KiB
Makefile
target_config = debug
|
|
|
|
test_map_files_dir = fdemo
|
|
test_map_file = fdemo.l01
|
|
|
|
target_name = mapedit
|
|
|
|
mapedit_dtf = medit.dtf
|
|
bpic_exe = ..\bpic\bpic.exe
|
|
acklib_incdir = ..\ack_lib
|
|
acklib_lib = ..\ack_lib\acklib.lib
|
|
|
|
object_files = &
|
|
m1.obj &
|
|
m1read.obj &
|
|
m1util.obj &
|
|
measm.obj &
|
|
mouse.obj
|
|
|
|
|
|
cc_flags_debug = /d2 /zp1 /4r /fp3 /j
|
|
cc_flags_release = /d1+ /zp1 /4r /fp3 /ontx /oe=40 /j
|
|
cc_flags = /mf /i=$(acklib_incdir) $(cc_flags_$(target_config))
|
|
|
|
link_flags_debug = debug all
|
|
link_flags_release = debug all
|
|
link_flags = $(link_flags_$(target_config))
|
|
|
|
.c.obj: .AUTODEPEND
|
|
wcc386 $[. /zq $(cc_flags)
|
|
|
|
.asm.obj: .AUTODEPEND
|
|
tasm $[. /t $(asm_flags)
|
|
|
|
$(mapedit_dtf):
|
|
$(bpic_exe) m1files.dat $^.
|
|
|
|
$(target_name).lnk: $(object_files)
|
|
%create $^@
|
|
%append $^@ NAME $(target_name).exe
|
|
%append $^@ SYSTEM DOS4G
|
|
%append $^@ OPTION QUIET
|
|
%append $^@ OPTION STACK=16k
|
|
%append $^@ LIBRARY $(acklib_lib)
|
|
@for %i in ($(object_files)) do %append $^@ FILE %i
|
|
|
|
$(target_name).exe: $(object_files) $(target_name).lnk $(mapedit_dtf)
|
|
wlink $(link_flags) @$(target_name).lnk
|
|
|
|
clean : .SYMBOLIC
|
|
del *.obj
|
|
del *.err
|
|
del $(mapedit_dtf)
|
|
del $(target_name).exe
|
|
del $(target_name).lnk
|
|
|
|
.NOCHECK
|
|
build : $(target_name).exe
|
|
|
|
.NOCHECK
|
|
run : $(target_name).exe
|
|
copy $(target_name).exe $(test_map_files_dir)
|
|
copy $(mapedit_dtf) $(test_map_files_dir)
|
|
cd $(test_map_files_dir)
|
|
$(target_name).exe $(test_map_file)
|
|
|
|
.NOCHECK
|
|
debug : $(target_name).exe
|
|
copy $(target_name).exe $(test_map_files_dir)
|
|
copy $(mapedit_dtf) $(test_map_files_dir)
|
|
cd $(test_map_files_dir)
|
|
wd /swap /trap=rsi $(target_name).exe $(test_map_file)
|
|
|