secimage: Don't link in gmp library
[coreboot.git] / util / broadcom / secimage / Makefile
blob58f3bc182c4db9a6cb28e768e0b238326efabf3a
2 # Copyright (C) 2015 Broadcom Corporation
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License as
6 # published by the Free Software Foundation version 2.
8 # This program is distributed "as is" WITHOUT ANY WARRANTY of any
9 # kind, whether express or implied; without even the implied warranty
10 # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
14 TARGET = secimage
15 OBJS = crypto.o io.o misc.o sbi.o
16 CC = gcc
17 RM = rm
18 CFLAGS += -Wall -g
20 LIBS = -lssl -lcrypto
22 %.o : %.c
23 $(CC) -c $(CFLAGS) -o $@ $<
25 all: $(TARGET)
27 $(TARGET): $(OBJS)
28 $(CC) -o $@ $(OBJS) $(LIBS)
30 install:
31 install -d $(DESTDIR)/usr/bin
32 install $(TARGET) $(DESTDIR)/usr/bin
34 .PHONY: clean
36 clean:
37 $(RM) -f $(TARGET) $(OBJS)