summaryrefslogtreecommitdiff
path: root/util/broadcom/secimage/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'util/broadcom/secimage/Makefile.inc')
-rw-r--r--util/broadcom/secimage/Makefile.inc18
1 files changed, 18 insertions, 0 deletions
diff --git a/util/broadcom/secimage/Makefile.inc b/util/broadcom/secimage/Makefile.inc
new file mode 100644
index 0000000000..6581dd1210
--- /dev/null
+++ b/util/broadcom/secimage/Makefile.inc
@@ -0,0 +1,18 @@
+secimageobj :=
+secimageobj += crypto.o
+secimageobj += io.o
+secimageobj += misc.o
+secimageobj += sbi.o
+
+LIBS = -lgmp -lssl -lcrypto
+
+additional-dirs += $(objutil)/broadcom/secimage
+
+$(objutil)/broadcom/secimage/%.o: $(top)/util/broadcom/secimage/%.c
+ printf " HOSTCC $(subst $(objutil)/,,$(@))\n"
+ $(HOSTCC) $(HOSTCFLAGS) -c -o $@ $<
+
+$(objutil)/broadcom/secimage/secimage: \
+ $(addprefix $(objutil)/broadcom/secimage/,$(secimageobj))
+ printf " HOSTCC $(subst $(objutil)/,,$(@)) (link)\n"
+ $(HOSTCC) $(LIBS) -o $@ $^