[Cryptech-Commits] [core/platform/novena] 01/01: use a variable for AR, to facilitate cross-compiling
git at cryptech.is
git at cryptech.is
Fri Jun 19 03:11:33 UTC 2015
This is an automated email from the git hooks/post-receive script.
paul at psgd.org pushed a commit to branch master
in repository core/platform/novena.
commit 63a0d0e5499d3c4c4832e639479808501656e7bf
Author: Paul Selkirk <paul at psgd.org>
Date: Thu Jun 18 23:11:09 2015 -0400
use a variable for AR, to facilitate cross-compiling
---
sw/Makefile | 3 ++-
sw/Makefile.i2c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/sw/Makefile b/sw/Makefile
index 2aa4927..fc5faa6 100755
--- a/sw/Makefile
+++ b/sw/Makefile
@@ -1,4 +1,5 @@
CC = gcc
+AR = ar
CFLAGS = -Wall -fPIC
LIB = libcryptech.a
@@ -16,7 +17,7 @@ all: $(LIB) $(BIN)
$(CC) $(CFLAGS) -c -o $@ $<
libcryptech.a: tc_eim.o novena-eim.o
- ar rcs $@ $^
+ $(AR) rcs $@ $^
hash_tester: hash_tester.o $(LIB)
$(CC) -o $@ $^
diff --git a/sw/Makefile.i2c b/sw/Makefile.i2c
index 5348918..d993883 100755
--- a/sw/Makefile.i2c
+++ b/sw/Makefile.i2c
@@ -1,4 +1,5 @@
CC = gcc
+AR = AR
CFLAGS = -Wall -fPIC
LIB = libcryptech_i2c.a
@@ -16,7 +17,7 @@ all: $(LIB) $(BIN)
$(CC) $(CFLAGS) -c -o $@ $<
libcryptech_i2c.a: tc_i2c.o
- ar rcs $@ $^
+ $(AR) rcs $@ $^
hash_tester_i2c: hash_tester.o $(LIB)
$(CC) -o $@ $^
More information about the Commits
mailing list