blob: 9dd1396948e8fc17be61fa25e3dddc51c77210bd [file] [log] [blame]
Daisuke Nojirie1741c52015-02-09 18:15:17 -08001#
2# Copyright (C) 2015 Broadcom Corporation
3#
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.
7#
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.
12#
13
14TARGET = secimage
15OBJS = crypto.o io.o misc.o sbi.o
16CC = gcc
17RM = rm
18CFLAGS += -Wall -g
19
Stefan Reinauer03597d02015-08-06 16:57:48 -070020LIBS = -lssl -lcrypto -lz
Daisuke Nojirie1741c52015-02-09 18:15:17 -080021
22%.o : %.c
23 $(CC) -c $(CFLAGS) -o $@ $<
24
25all: $(TARGET)
26
27$(TARGET): $(OBJS)
28 $(CC) -o $@ $(OBJS) $(LIBS)
29
30install:
31 install -d $(DESTDIR)/usr/bin
32 install $(TARGET) $(DESTDIR)/usr/bin
33
34.PHONY: clean
35
36clean:
37 $(RM) -f $(TARGET) $(OBJS)