From 96f6d594e6c36b03431c3f7d560de8f684c71927 Mon Sep 17 00:00:00 2001 From: Nicholas Tay Date: Tue, 16 Apr 2024 20:53:27 +1000 Subject: Add watcom CL to make I got the crosscompile working from linux but ideally more changes coming to get it to work compiling from DOS/Win311 itself --- .gitignore | 1 + Makefile | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index 6b247c8..30ac35f 100644 --- a/.gitignore +++ b/.gitignore @@ -30,6 +30,7 @@ # Executables *.exe +*.com *.out *.app *.i*86 diff --git a/Makefile b/Makefile index 6a6a2b7..4dd6934 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ CC = gcc CFLAGS += -std=c99 -Wall -Wextra -Wshadow -pedantic CC_WIN32 = i686-w64-mingw32-gcc +CC_WATCOM_CL = wcl default: $(NAME) @@ -14,6 +15,9 @@ $(NAME): $(NAME).c config.h $(NAME).exe: $(NAME).c config.h $(CC_WIN32) $(CFLAGS) -o $(NAME).exe $(NAME).c +$(NAME).com: $(NAME).c config.h + $(CC_WATCOM_CL) -bcl=dos -fe=$(NAME).com -za99 -mt -lr $(NAME).c + install: $(NAME) install -d $(DESTDIR)$(PREFIX)/bin/ install -m 755 $(NAME) $(DESTDIR)$(PREFIX)/bin/ -- cgit