Merge branch 'for-linus' into next
[platform/kernel/linux-rpi.git] / tools / bootconfig / Makefile
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
19 test: bootconfig
20         ./test-bootconfig.sh
21
22 clean:
23         $(RM) -f *.o bootconfig