90baf6a403
BUG=None TEST=Build Signed-off-by: Martin Roth <martin@coreboot.org> Change-Id: I7746430c24dd052c435561236454b456bc597517 Reviewed-on: https://review.coreboot.org/c/coreboot/+/50644 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
21 lines
334 B
Makefile
21 lines
334 B
Makefile
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
HOSTCC ?= cc
|
|
|
|
SRC = amdfwtool.c data_parse.c
|
|
OBJ = $(SRC:%.c=%.o)
|
|
TARGET = amdfwtool
|
|
CFLAGS=-O2 -Wall -Wextra -Wshadow -Werror
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(OBJ)
|
|
$(CC) $(OBJ) $(LDFLAGS) -o $@
|
|
|
|
%.o: %.c $(HEADER)
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
clean:
|
|
@rm -f $(TARGET) $(OBJ)
|
|
|
|
distclean: clean
|