From 6b8a368c51082fdd010ef5e1b0be4eb9b5059d1a Mon Sep 17 00:00:00 2001 From: Javier Date: Mon, 26 Oct 2026 00:50:06 +0100 Subject: refactor common parts into inc/ch375.h and add win9x, linux drivers --- w9x/makefile | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 w9x/makefile (limited to 'w9x/makefile') diff --git a/w9x/makefile b/w9x/makefile new file mode 100644 index 0000000..115d6d2 --- /dev/null +++ b/w9x/makefile @@ -0,0 +1,40 @@ +# 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 -- cgit v1.2.3