Gered
62af8575c6
- rename standard integer types to a more familiar (u)int(8/16/32) - many function/struct renames. i don't _really_ know if what i've done for this is better, but it "feels" better to me. many draw/blit function names are shorter which is nice, at least. kinda important to me because i develop this on a real DOS machine in 80x50 text mode. - add 'extern "C"' blocks to headers for C++ compiler usage - draw/pixel color value arguments for functions should all have been changed to be uint8 instead of a full 32-bit int. feels right, but maybe should've left alone... - small fix to keyboard handler. noticed a problem on one thinkpad laptop. was a result of what i think was a typo in a constant value used during the part of the interrupt handler that tells the keyboard controller the key event was processed - fix uncommon potential crash function return in draw_filled_rect - renamed low-level "direct" assembly functions to "lowlevel_xxx" to be a little bit more explicit about what they are - add some convenience event helper functions for determining event types - add fixed point atan2 - fixed some tabs/spaces inconsistences (should all be spaces now?) - maybe some other minor things i've forgotten
62 lines
1.4 KiB
Plaintext
Executable file
62 lines
1.4 KiB
Plaintext
Executable file
target_config = debug
|
|
|
|
target_name = test
|
|
|
|
object_files = blit.obj &
|
|
events.obj &
|
|
fixed.obj &
|
|
helpers.obj &
|
|
kbrd.obj &
|
|
line.obj &
|
|
mouse.obj &
|
|
pal.obj &
|
|
pcx.obj &
|
|
pset.obj &
|
|
rect.obj &
|
|
surface.obj &
|
|
test.obj &
|
|
text.obj &
|
|
vector2.obj
|
|
|
|
|
|
cc_flags_debug = /d2 /zp4 /5r /fp3 /j
|
|
cc_flags_release = /d1+ /zp4 /5r /fp3 /onatx /oe=40 /j
|
|
cc_flags = /mf /i=.. $(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)
|
|
|
|
$(target_name).lnk: $(object_files)
|
|
%create $^@
|
|
%append $^@ NAME $(target_name).exe
|
|
%append $^@ SYSTEM DOS4G
|
|
%append $^@ OPTION QUIET
|
|
%append $^@ OPTION STACK=16k
|
|
%append $^@ LIBRARY ..\dgl.lib
|
|
@for %i in ($(object_files)) do %append $^@ FILE %i
|
|
|
|
$(target_name).exe: $(object_files) $(target_name).lnk
|
|
wlink $(link_flags) @$(target_name).lnk
|
|
|
|
clean : .SYMBOLIC
|
|
del *.obj
|
|
del *.err
|
|
del $(target_name).exe
|
|
del $(target_name).lnk
|
|
|
|
.NOCHECK
|
|
build : $(target_name).exe
|
|
|
|
.NOCHECK
|
|
run : $(target_name).exe
|
|
$(target_name).exe
|
|
|
|
.NOCHECK
|
|
debug : $(target_name).exe
|
|
wd /swap /trap=rsi $(target_name).exe
|
|
|