diff options
| author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-03-29 06:19:21 +0300 |
|---|---|---|
| committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-04-23 06:51:22 +0300 |
| commit | 92f964701d55ae3a7c2060da3a78fe6d3b665bcb (patch) | |
| tree | 4deb210d56a018259411b2fd5f79743698b6b69b /Makefile.wcc | |
| parent | 93f61120ddba2093d85dbd09dff2deb42f0393e2 (diff) | |
| download | videoteco-fork-92f964701d55ae3a7c2060da3a78fe6d3b665bcb.tar.gz | |
MS-DOS real-mode (8086) port
It can be cross-compiled or compiled natively on 32-bit DOS
with OpenWatcom C v1.9.
Compiling on an 8086 might be possible later on - but we would
have to add support for some ancient ANSI C compiler.
Diffstat (limited to 'Makefile.wcc')
| -rw-r--r-- | Makefile.wcc | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Makefile.wcc b/Makefile.wcc new file mode 100644 index 0000000..21d1b8e --- /dev/null +++ b/Makefile.wcc @@ -0,0 +1,41 @@ +CC = $(%WATCOM)/binl64/wcc +LD = $(%WATCOM)/binl64/wlink + +# For the fastest code (C Guide, p.70): +# -onatx -oh -oi+ -ei -zp8 -0 -fpi87 +# Large data model: far code and data pointers +!ifdef DEBUG +# You can also -dDEBUG or even -dDEBUG1. +CFLAGS = -d2 +#-dDEBUG1 +LDFLAGS = debug all +!endif + +CFLAGS += -q -ze -j -os -0 -ml -bt=DOS @WCC_DEFS +LDFLAGS += format dos option map option stack=16k & + libpath $(%WATCOM)/lib286:$(%WATCOM)/lib286/dos + +.BEFORE +!ifndef %WATCOM + set WATCOM=/usr/bin/watcom +!endif + set include=$(%WATCOM)/h + set lib=$(%WATCOM)/lib286;$(%WATCOM)/lib286/dos + set WCC_DEFS=-dSTDC_HEADERS=1 -dHAVE_STDIO_H -dHAVE_CTYPE_H -dHAVE_ERRNO_H & + -dHAVE_STRING_H -dHAVE_STRINGS_H -dHAVE_FCNTL_H -dHAVE_IO_H & + -dHAVE_SYS_STAT_H -dHAVE_SIGNAL_H -dHAVE_STDLIB_H -dHAVE_UNISTD_H & + -dHAVE_STDINT_H -dHAVE_DIRECT_H -dHAVE_SBRK -dHAVE_STRCHR -dTERMCAP + +all : teco.exe .SYMBOLIC + +teco.exe : tecbuf.obj teccmd.obj tecdebug.obj tecdisp.obj tecexec.obj & + tecmem.obj teco.obj tecparse.obj tecstate.obj tecterm.obj tecundo.obj + set WLINK_OBJ=$(LDFLAGS) name $@ file { $< } + $(LD) @WLINK_OBJ + +.c.obj: + $(CC) $(CFLAGS) -fo=$@ $< + +clean: .SYMBOLIC + rm -f teco.exe + rm *.obj |
