xref: /openbmc/u-boot/tools/binman/test/Makefile (revision 00ebd1f7)
1#
2# Builds test programs
3#
4# Copyright (C) 2017 Google, Inc
5# Written by Simon Glass <sjg@chromium.org>
6#
7# SPDX-License-Identifier:      GPL-2.0+
8#
9
10CFLAGS := -march=i386 -m32 -nostdlib -I ../../../include
11
12LDS_UCODE := -T u_boot_ucode_ptr.lds
13
14TARGETS = u_boot_ucode_ptr u_boot_no_ucode_ptr
15
16all: $(TARGETS)
17
18u_boot_no_ucode_ptr: CFLAGS += $(LDS_UCODE)
19u_boot_no_ucode_ptr: u_boot_no_ucode_ptr.c
20
21u_boot_ucode_ptr: CFLAGS += $(LDS_UCODE)
22u_boot_ucode_ptr: u_boot_ucode_ptr.c
23
24clean:
25	rm -f $(TARGETS)
26
27help:
28	@echo "Makefile for binman test programs"
29	@echo
30	@echo "Intended for use on x86 hosts"
31	@echo
32	@echo "Targets:"
33	@echo
34	@echo -e "\thelp	- Print help (this is it!)"
35	@echo -e "\tall	- Builds test programs (default targget)"
36	@echo -e "\tclean	- Delete output files"
37