Patrick Georgi | 7051707 | 2020-05-10 18:47:05 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: BSD-3-Clause |
2 | |||||
Zheng Bao | 9c7ff7b | 2015-11-17 22:57:39 +0800 | [diff] [blame] | 3 | HOSTCC ?= cc |
4 | |||||
Zheng Bao | c5e28ab | 2020-10-28 11:38:09 +0800 | [diff] [blame] | 5 | SRC = amdfwtool.c data_parse.c |
Zheng Bao | 7698a55 | 2020-09-29 17:32:36 +0800 | [diff] [blame] | 6 | OBJ = $(SRC:%.c=%.o) |
7 | TARGET = amdfwtool | ||||
8 | CFLAGS=-O2 -Wall -Wextra -Wshadow | ||||
Zheng Bao | 9c7ff7b | 2015-11-17 22:57:39 +0800 | [diff] [blame] | 9 | |
Zheng Bao | 7698a55 | 2020-09-29 17:32:36 +0800 | [diff] [blame] | 10 | |
11 | $(TARGET): $(OBJ) | ||||
12 | $(CC) $(OBJ) $(LDFLAGS) -o $@ | ||||
13 | |||||
14 | %.o: %.c $(HEADER) | ||||
15 | $(CC) $(CFLAGS) -c -o $@ $< | ||||
Zheng Bao | 9c7ff7b | 2015-11-17 22:57:39 +0800 | [diff] [blame] | 16 | |
17 | clean: | ||||
Zheng Bao | 7698a55 | 2020-09-29 17:32:36 +0800 | [diff] [blame] | 18 | @rm -f $(TARGET) $(OBJ) |