summaryrefslogtreecommitdiff
path: root/util/broadcom/secimage/Makefile.inc
blob: ee9a480ccc2a9b004e68fb806542c139e7c6c21e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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) -o $@ $^ $(LIBS)