[go: up one dir, main page]

File: djgpp.inc

package info (click to toggle)
libdumb 1%3A0.9.3-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 948 kB
  • ctags: 1,110
  • sloc: ansic: 9,398; makefile: 311; sh: 23
file content (29 lines) | stat: -rw-r--r-- 764 bytes parent folder | download | duplicates (5)
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
29
# 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))
MKDIR = $(COMSPEC) /C MKDIR $(call FIX,$(1))

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)