3rdparty/fsp: Update submodule to upstream master
[coreboot.git] / util / archive / Makefile
blob2de6a6294a1d16dfd3897eba8c5288a5e5c192ce
1 ## SPDX-License-Identifier: GPL-2.0-only
2 PROGRAM = archive
3 HOSTCC ?= gcc
4 WERROR=-Werror
5 CFLAGS=-O2 -Wall -Wextra -Wshadow ${WERROR}
7 SRCS = $(PROGRAM).c
9 all: $(PROGRAM)
11 $(PROGRAM): $(SRCS)
12 $(HOSTCC) $(CFLAGS) -o $@ $^
14 clean:
15 rm -f $(PROGRAM) *.o
17 distclean: clean
19 help:
20 @echo "${PROGRAM}: Concatenate files and create an archive"
21 @echo "Targets: all, clean, distclean, help"
22 @echo "To disable warnings as errors, run make as:"
23 @echo " make all WERROR=\"\""
25 .PHONY: all clean distclean help