diff options
Diffstat (limited to 'apps/codecs/dumb/make/djgpp.inc')
-rw-r--r-- | apps/codecs/dumb/make/djgpp.inc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/apps/codecs/dumb/make/djgpp.inc b/apps/codecs/dumb/make/djgpp.inc new file mode 100644 index 0000000000..4147ab26a4 --- /dev/null +++ b/apps/codecs/dumb/make/djgpp.inc | |||
@@ -0,0 +1,28 @@ | |||
1 | # This file contains DJGPP-specific definitions. It will be included by the | ||
2 | # main Makefile when you compile with DJGPP. | ||
3 | |||
4 | PLATFORM := djgpp | ||
5 | |||
6 | APOST := \' | ||
7 | |||
8 | # Macro for replacing / with \ where necessary. Usage: $(call FIX,path) | ||
9 | FIX = $(subst /,\,$(subst /*,\\\*,$(1))) | ||
10 | |||
11 | ECHO = @$(COMSPEC) /C ECHO $(1) | ||
12 | # Note: the following two macros only work for single files! | ||
13 | DELETE = $(COMSPEC) /C DEL $(call FIX,$(1)) | ||
14 | COPY = $(COMSPEC) /C COPY $(call FIX,$(1)) $(call FIX,$(2)) | ||
15 | |||
16 | EXE_SUFFIX := .exe | ||
17 | |||
18 | LINK_MATH := | ||
19 | LINK_ALLEGRO := -lalleg | ||
20 | |||
21 | ifndef DJDIR | ||
22 | .PHONY: error | ||
23 | error: | ||
24 | $(call ECHO,Your DJDIR environment variable is not set!) | ||
25 | $(call ECHO,Please refer to DJGPP's documentation and install it properly.) | ||
26 | endif | ||
27 | |||
28 | PREFIX := $(DJDIR) | ||