Daisuke Nojiri | e1741c5 | 2015-02-09 18:15:17 -0800 | [diff] [blame] | 1 | # |
| 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 | |
| 14 | TARGET = secimage |
| 15 | OBJS = crypto.o io.o misc.o sbi.o |
| 16 | CC = gcc |
| 17 | RM = rm |
| 18 | CFLAGS += -Wall -g |
| 19 | |
Stefan Reinauer | 03597d0 | 2015-08-06 16:57:48 -0700 | [diff] [blame] | 20 | LIBS = -lssl -lcrypto -lz |
Daisuke Nojiri | e1741c5 | 2015-02-09 18:15:17 -0800 | [diff] [blame] | 21 | |
| 22 | %.o : %.c |
| 23 | $(CC) -c $(CFLAGS) -o $@ $< |
| 24 | |
| 25 | all: $(TARGET) |
| 26 | |
| 27 | $(TARGET): $(OBJS) |
| 28 | $(CC) -o $@ $(OBJS) $(LIBS) |
| 29 | |
| 30 | install: |
| 31 | install -d $(DESTDIR)/usr/bin |
| 32 | install $(TARGET) $(DESTDIR)/usr/bin |
| 33 | |
| 34 | .PHONY: clean |
| 35 | |
| 36 | clean: |
| 37 | $(RM) -f $(TARGET) $(OBJS) |