-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.defaultconf
114 lines (86 loc) · 2.61 KB
/
Makefile.defaultconf
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# if2a Makefile (C) D. Gauchard <deyv@free.fr>
# Licensed under the terms of the GNU Public License version 2
# Makefile.default is included by default
# if it does not exist, then Makefile.defaultconf will be tried.
# If you need to adjust the default conf, please copy Makefile.defaultconf
# to Makefile.default then edit it.
######################################
# uncomment and/or configure as needed
# F2A USB Linker
F2AUSBLINKER = 1
# F2A USB Writer
F2AUSBWRITER = 0
# F2A Parallel Linker
F2APARLINKER = 0
# EFA USB Linker
EFALINKER = 0
######################################
# uncomment and/or configure as needed
# memory debug
#LDFLAGS += -lefence # don't forget 'export EF_ALLOW_MALLOC_0=1' in shell (propably a bug in libusb)
#LINKDEBUG = ccmalloc
# static linking is good for distributed binaries
STATIC = 0
### libusb search path
#win32
LIBUSBPATH_WIN32 ?= ./libusb-win32-bin-0.1.8.0
#LIBUSBPATH_WIN32 ?= ./libusb-win32-bin-0.1.10.1
# OSX
LIBUSBPATH_OSX ?= ./libusb-0.1.10a
# other unices
LIBUSBPATH_UNIX ?= ./libusb-0.1.10a
#LIBUSBPATH_UNIX ?= /usr/include/libusb-1.0
# some flags
CFLAGS += -O0 -g -Wall -Wextra
LDFLAGS +=
# compiler
CC ?= gcc
AR ?= ar
ARFLAGS = rcs
STRIP ?= strip
# cross win32 compiler
CROSSWIN32CC ?= i586-mingw32msvc-gcc
CROSSWIN32AR ?= i586-mingw32msvc-ar
CROSSWIN32STRIP ?= i586-mingw32msvc-strip
CROSSWIN32HOSTCC ?= gcc
######################################
# internal files configuration
# for each line, first file is default
#
# the same file can be used more than once (may be useful for loaders). from
# the second time, add "./" in the beginning of the filename so that binary
# data are not twice included in binwares.
POGOLOADER = loader-pogo-lite.gba
POGO = 0
#################
#################
## Flash2Advance
#################
# F2A usb linker
ifeq ($(F2AUSBLINKER),1)
F2ACOMMON = 1
F2A-LNK-FIRM = firmware-f2a-usb-linker-v2.3u.hex
F2A-LNK-MB = multiboot-f2a-usb-v2.4b.mb multiboot-f2a-usb-v2.6bU.mb
F2A-LNK-SPLASH = splash-f2a-usb-linker-gundam.img
endif # F2AUSBLINKER
#################
# F2A usb writer
ifeq ($(F2AUSBWRITER),1)
F2ACOMMON = 1
F2A-WRT-FIRM = firmware-f2a-usb-writer-v0.hex
endif # F2AUSBLINKER
#############
# F2A common
ifeq ($(F2ACOMMON),1)
POGO = 1
F2A-LDR-PRO = ./loader-pogo-lite.gba # loader-pro-GBA_Loader32.gba loader-pro-GBA_Loader33.gba
F2A-LDR-ULTRA = loader-ultra-WINF2A270.gba ./loader-pogo-lite.gba # loader-ultra-WINF2A260.gba
endif # F2A
#########################
#########################
## Extreme Flash Advance
ifeq ($(EFALINKER),1)
POGO = 1
EFA-USB-FIRM = firmware-efa-usb-v0.hex
EFA-LDR = ./loader-pogo-lite.gba
endif # EFALINKER