aboutsummaryrefslogtreecommitdiff
path: root/sw/Makefile.i2c
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2015-06-18 23:11:09 -0400
committerPaul Selkirk <paul@psgd.org>2015-06-18 23:11:09 -0400
commit63a0d0e5499d3c4c4832e639479808501656e7bf (patch)
treeebc003b4517665fe0808e7542dd3e2cfa9540290 /sw/Makefile.i2c
parente98ac60b21e5d2f66e22e117a793f3665101e170 (diff)
use a variable for AR, to facilitate cross-compiling
Diffstat (limited to 'sw/Makefile.i2c')
-rwxr-xr-xsw/Makefile.i2c3
1 files changed, 2 insertions, 1 deletions
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 $@ $^