forked from ChenThread/candyk-psx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (30 loc) · 847 Bytes
/
Makefile
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
CROSSPREFIX = mipsel-elf-
RM = rm
RM_F = $(RM) -f
NATIVE_AR = $(AR)
NATIVE_CC = $(CC)
NATIVE_CFLAGS = -O2 -g
NATIVE_LDFLAGS = -O2 -g
TARGET_AR = $(CROSSPREFIX)gcc-ar
TARGET_CC = $(CROSSPREFIX)gcc
TARGET_LD = $(CROSSPREFIX)ld
TARGET_RANLIB = $(CROSSPREFIX)ranlib
TARGET_CFLAGS = -flto -O2 -g -msoft-float -mips1 -Iinclude
TARGET_LDFLAGS = -flto -O2 -g -msoft-float -mips1
EXEPOST=
LIBPOST=.a
OUTPUT_BINDIR = bin/
OUTPUT_LIBDIR = lib/
fake_all: all
include src/targets.make
include toolsrc/targets.make
all: tools libs
clean: clean_tools clean_libs
clean_tools:
$(RM_F) $(OUTPUT_TOOL_LIBS) $(OUTPUT_TOOL_LIBS_OBJS) || true
$(RM_F) $(OUTPUT_TOOLS) $(OUTPUT_TOOLS_OBJS) || true
clean_libs:
$(RM_F) $(OUTPUT_LIBS) $(OUTPUT_LIBS_OBJS) || true
libs: $(OUTPUT_LIBS)
tools: $(OUTPUT_TOOL_LIBS) $(OUTPUT_TOOLS)
.DUMMY: fake_all all tools libs