| OLD | NEW |
| 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 TOP ?= ../ | 5 TOP ?= ../ |
| 6 CC ?= gcc | 6 CC ?= gcc |
| 7 CXX ?= g++ | 7 CXX ?= g++ |
| 8 INCLUDES += -I./include \ | 8 INCLUDES += -I./include \ |
| 9 -I$(FWDIR)/lib/cgptlib/include \ | 9 -I$(FWDIR)/lib/cgptlib/include \ |
| 10 -I$(FWDIR)/lib/cryptolib/include \ | 10 -I$(FWDIR)/lib/cryptolib/include \ |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 dumpRSAPublicKey: dumpRSAPublicKey.c | 36 dumpRSAPublicKey: dumpRSAPublicKey.c |
| 37 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ -lcrypto | 37 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ -lcrypto |
| 38 | 38 |
| 39 firmware_utility: firmware_utility.cc $(LIBS) $(FWLIB) | 39 firmware_utility: firmware_utility.cc $(LIBS) $(FWLIB) |
| 40 $(CXX) $(CFLAGS) $(INCLUDES) -ggdb -D__STDC_LIMIT_MACROS $< \ | 40 $(CXX) $(CFLAGS) $(INCLUDES) -ggdb -D__STDC_LIMIT_MACROS $< \ |
| 41 -o $@ $(LIBS) $(FWLIB) -lcrypto | 41 -o $@ $(LIBS) $(FWLIB) -lcrypto |
| 42 | 42 |
| 43 kernel_utility: kernel_utility.cc $(LIBS) $(FWLIB) | 43 kernel_utility: kernel_utility.cc $(LIBS) $(FWLIB) |
| 44 $(CXX) $(CFLAGS) $(INCLUDES) -ggdb -D__STDC_LIMIT_MACROS $< \ | 44 $(CXX) $(CFLAGS) $(INCLUDES) -ggdb -D__STDC_LIMIT_MACROS $< \ |
| 45 » -o $@ $(LIBS) $(FWLIB) -lcrypto | 45 » -o $@ $(LIBS) $(FWLIB) -lcrypto |
| 46 | 46 |
| 47 signature_digest_utility: signature_digest_utility.c $(LIBS) $(FWLIB) | 47 signature_digest_utility: signature_digest_utility.c $(LIBS) $(FWLIB) |
| 48 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) $(FWLIB) -lcrypto | 48 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) $(FWLIB) -lcrypto |
| 49 | 49 |
| 50 verify_data: verify_data.c $(LIBS) $(FWLIB) | 50 verify_data: verify_data.c $(LIBS) $(FWLIB) |
| 51 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) $(FWLIB) -lcrypto | 51 $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) $(FWLIB) -lcrypto |
| 52 | 52 |
| 53 clean: | 53 clean: |
| 54 set -e; \ | 54 set -e; \ |
| 55 for i in $(SUBDIRS); do \ | 55 for i in $(SUBDIRS); do \ |
| 56 $(MAKE) -C $$i clean; \ | 56 $(MAKE) -C $$i clean; \ |
| 57 done | 57 done |
| 58 rm -f $(TARGET_BINS) | 58 rm -f $(TARGET_BINS) |
| 59 |
| 60 install: $(TARGET_BINS) |
| 61 mkdir -p $(DESTDIR) |
| 62 cp -f $^ $(DESTDIR) |
| OLD | NEW |