Added
Link Here
|
1 |
--- Makefile.orig 2016-11-29 13:07:51 UTC |
2 |
+++ Makefile |
3 |
@@ -17,7 +17,7 @@ |
4 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
5 |
|
6 |
CC ?= gcc |
7 |
-DEFAULT_CFLAGS := -std=c99 |
8 |
+DEFAULT_CFLAGS += -std=c99 |
9 |
DEFAULT_CFLAGS += -Wall -Wextra -Wno-unused-result |
10 |
|
11 |
DEFAULT_CFLAGS += -D_POSIX_C_SOURCE=200112L |
12 |
@@ -63,7 +63,7 @@ BINDIR ?= $(PREFIX)/bin |
13 |
tools: $(TOOLS) $(FEXC_LINKS) |
14 |
target-tools: $(TARGET_TOOLS) |
15 |
|
16 |
-all: tools target-tools |
17 |
+all: tools |
18 |
|
19 |
misc: $(MISC_TOOLS) |
20 |
|
21 |
@@ -75,7 +75,7 @@ install-all: install-tools install-target-tools |
22 |
install-tools: $(TOOLS) |
23 |
install -d $(DESTDIR)$(BINDIR) |
24 |
@set -ex ; for t in $^ ; do \ |
25 |
- install -m0755 $$t $(DESTDIR)$(BINDIR)/$$t ; \ |
26 |
+ $(INSTALL_PROGRAM) -m0755 $$t $(DESTDIR)$(BINDIR)/$$t ; \ |
27 |
done |
28 |
@set -ex ; for l in $(FEXC_LINKS) ; do \ |
29 |
ln -nfs sunxi-fexc $(DESTDIR)$(BINDIR)/$$l ; \ |