summaryrefslogtreecommitdiff
path: root/plugins/dumb/dumb-kode54/make/djgpp.inc
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/dumb/dumb-kode54/make/djgpp.inc')
-rw-r--r--plugins/dumb/dumb-kode54/make/djgpp.inc28
1 files changed, 28 insertions, 0 deletions
diff --git a/plugins/dumb/dumb-kode54/make/djgpp.inc b/plugins/dumb/dumb-kode54/make/djgpp.inc
new file mode 100644
index 00000000..009533ce
--- /dev/null
+++ b/plugins/dumb/dumb-kode54/make/djgpp.inc
@@ -0,0 +1,28 @@
+# This file contains DJGPP-specific definitions. It will be included by the
+# main Makefile when you compile with DJGPP.
+
+PLATFORM := djgpp
+
+APOST := \'
+
+# Macro for replacing / with \ where necessary. Usage: $(call FIX,path)
+FIX = $(subst /,\,$(subst /*,\\\*,$(1)))
+
+ECHO = @$(COMSPEC) /C ECHO $(1)
+# Note: the following two macros only work for single files!
+DELETE = $(COMSPEC) /C DEL $(call FIX,$(1))
+COPY = $(COMSPEC) /C COPY $(call FIX,$(1)) $(call FIX,$(2))
+
+EXE_SUFFIX := .exe
+
+LINK_MATH :=
+LINK_ALLEGRO := -lalleg
+
+ifndef DJDIR
+.PHONY: error
+error:
+ $(call ECHO,Your DJDIR environment variable is not set!)
+ $(call ECHO,Please refer to DJGPP's documentation and install it properly.)
+endif
+
+PREFIX := $(DJDIR)