summaryrefslogtreecommitdiff
path: root/plugins/dumb/dumb-kode54/make/mingw.inc
blob: 065f2e5ff39d328a018db1d0f0c2a8928590d4ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# This file contains MinGW-specific definitions. It will be included by the
# main Makefile when you compile with MinGW.

PLATFORM := mingw

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 MINGDIR
.PHONY: error
error:
	$(call ECHO,Your MINGDIR environment variable is not set!)
	$(call ECHO,Please set it to point to the directory containing your MinGW installation.)
endif

PREFIX := $(MINGDIR)