Masami Hiramatsu | 950313e | 2020-01-11 01:03:56 +0900 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | # Makefile for bootconfig command |
| 3 | |
| 4 | bindir ?= /usr/bin |
| 5 | |
| 6 | HEADER = include/linux/bootconfig.h |
| 7 | CFLAGS = -Wall -g -I./include |
| 8 | |
| 9 | PROGS = bootconfig |
| 10 | |
| 11 | all: $(PROGS) |
| 12 | |
| 13 | bootconfig: ../../lib/bootconfig.c main.c $(HEADER) |
| 14 | $(CC) $(filter %.c,$^) $(CFLAGS) -o $@ |
| 15 | |
| 16 | install: $(PROGS) |
| 17 | install bootconfig $(DESTDIR)$(bindir) |
| 18 | |
Masami Hiramatsu | 081c653 | 2020-01-11 01:04:07 +0900 | [diff] [blame] | 19 | test: bootconfig |
| 20 | ./test-bootconfig.sh |
| 21 | |
Masami Hiramatsu | 950313e | 2020-01-11 01:03:56 +0900 | [diff] [blame] | 22 | clean: |
| 23 | $(RM) -f *.o bootconfig |