forked from ps2dev/ps2sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Defs.make
68 lines (55 loc) · 1.56 KB
/
Defs.make
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# _____ ___ ____ ___ ____
# ____| | ____| | | |____|
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
#-----------------------------------------------------------------------
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
# Licenced under Academic Free License version 2.0
# Review ps2sdk README & LICENSE files for further details.
# You can override the following options on the make command line, or manually
# edit them below. Please see the file INSTALL for details on building
# ps2sdk.
#
# Definitions for the EE toolchain.
#
EE_TOOL_PREFIX ?= ee-
EE_CC = $(EE_TOOL_PREFIX)gcc
EE_CXX = $(EE_TOOL_PREFIX)g++
EE_AS = $(EE_TOOL_PREFIX)as
EE_LD = $(EE_TOOL_PREFIX)ld
EE_AR = $(EE_TOOL_PREFIX)ar
EE_OBJCOPY = $(EE_TOOL_PREFIX)objcopy
EE_STRIP = $(EE_TOOL_PREFIX)strip
#
# Defintions for the IOP toolchain.
#
IOP_TOOL_PREFIX ?= iop-
IOP_CC = $(IOP_TOOL_PREFIX)gcc
IOP_AS = $(IOP_TOOL_PREFIX)as
IOP_LD = $(IOP_TOOL_PREFIX)ld
IOP_AR = $(IOP_TOOL_PREFIX)ar
IOP_OBJCOPY = $(IOP_TOOL_PREFIX)objcopy
IOP_STRIP = $(IOP_TOOL_PREFIX)strip
#
# Definitions for the local toolchain
#
CC = cc
AS = as
LD = ld
AR = ar
OBJCOPY = objcopy
STRIP = strip
#
# Definitions for local shell operations
#
MKDIR = mkdir
RMDIR = rmdir
ECHO = echo
SYSTEM = $(shell uname)
ifeq ($(findstring Windows, $(SYSTEM)), Windows)
# these versions are used for the cygwin toolchain in a dos environment
# since they need to overwrite the standard dos versions of each command
MKDIR = cyg-mkdir
RMDIR = cyg-rmdir
ECHO = cyg-echo
endif
MAKEREC = $(MAKE) -C