-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
51 lines (39 loc) · 824 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
41
42
43
44
45
46
47
48
49
50
51
#
# ci20-tools
# Copyright (C) 2014 Paul Burton <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
.SECONDEXPANSION:
AR := ar
CC := gcc
CFLAGS := -Wall -Werror -O2 -I.
LDFLAGS :=
CROSS_COMPILE ?= mips-linux-gnu-
CC_mips := $(CROSS_COMPILE)gcc
objcopy_mips := $(CROSS_COMPILE)objcopy
DESTDIR ?= /usr/local
V ?= 0
ifeq ($(V),1)
SILENT :=
else
SILENT := @
endif
out := out
.PHONY: all
all:
.PHONY: clean
clean:
rm -rf $(out)
.PHONY: install
install: install-tools
.PHONY: install-tools
install-tools: all
include fw/Makefile
include lib/Makefile
include usb-common/Makefile
include usb-boot/Makefile
include usb-nand/Makefile
include usb-test/Makefile