# Debug Settings !ifeq debug 1 # Dump debug log to IOS debug log debug_cflags = -DENABLE_DLOG=1 !endif # Binaries to build bins = chudisk.pdr infs = chudisk.inf # Object files for chudisk.pdr pdr_objs = chupdr.obj vxd_cflags = -osi -s -zc -w3 -wcd=202 -i=../inc $(debug_cflags) # -osi to optimize for size, put intrinsics inline (to avoid runtime calls) # -s to disable stack checks, since it inserts calls to the runtime # -zc moves const data objects to text segment. required due to no data segment. # -w3 enables warnings # -wcd=202 disables the unreferenced function warning (e.g., for inline functions in headers) compile_vxd = *wcc386 -fo=$^@ $(vxd_cflags) $[@ .BEFORE: # We need DOS and Windows headers, not host platform's set include=$(%watcom)/h/win;$(%watcom)/h all: $(bins) .SYMBOLIC chudisk.pdr: chudisk.lnk $(pdr_objs) *wlink @$[@ name $@ file { $(pdr_objs) } chupdr.obj: chupdr.c .AUTODEPEND $(compile_vxd) test.obj: test.asm .AUTODEPEND wasm -fo=$^@ $[@ clean: .SYMBOLIC rm -f $(bins) rm -f *.obj *.map