changeset 305:0d0ccaa46985 rel-0_9_1

Add Makefile for cross-compilation to DOS/DJGPP on a *NIX host.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 09 Jan 2020 23:26:37 +0200
parents 9a5f87c664e6
children a9466e0a8ad6
files Makefile.djgpp
diffstat 1 files changed, 26 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile.djgpp	Thu Jan 09 23:26:37 2020 +0200
@@ -0,0 +1,26 @@
+#
+# For cross-compilation of DJGPP/DOS version under Linux
+#
+
+# Compiler, flags and linker flags
+export PATH := /opt/bin:$(PATH)
+
+BINTOOL_PREFIX=i586-pc-msdosdjgpp-
+
+CFLAGS += -DTH_BYTEORDER=TH_LITTLE_ENDIAN
+LDFLAGS += -s
+
+CFLAGS += -DHAVE_STRING_H
+CFLAGS += -DHAVE_INTTYPES_H
+
+# Miscellaneous
+BINEXT=.exe
+OBJPATH=obj/dos/
+BINPATH=./
+
+
+###
+### Stuff
+###
+include Makefile.gen
+