aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNicholas Tay <nick@windblume.net>2024-04-16 20:53:27 +1000
committerNicholas Tay <nick@windblume.net>2024-04-16 20:57:32 +1000
commit96f6d594e6c36b03431c3f7d560de8f684c71927 (patch)
tree2f377306bc2e4264b0353f746ab3d6b8f340ed64 /Makefile
parenteee364e8124bfb99079537a789b8aca6476804a9 (diff)
downloadpassgen-96f6d594e6c36b03431c3f7d560de8f684c71927.tar.gz
passgen-96f6d594e6c36b03431c3f7d560de8f684c71927.tar.bz2
passgen-96f6d594e6c36b03431c3f7d560de8f684c71927.zip
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
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/