aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Makefile4
2 files changed, 5 insertions, 0 deletions
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/