xref: /linux/tools/bootconfig/Makefile (revision 950313ebf79c65702f4c15d29328147766d1f1fd)
1# SPDX-License-Identifier: GPL-2.0
2# Makefile for bootconfig command
3
4bindir ?= /usr/bin
5
6HEADER = include/linux/bootconfig.h
7CFLAGS = -Wall -g -I./include
8
9PROGS = bootconfig
10
11all: $(PROGS)
12
13bootconfig: ../../lib/bootconfig.c main.c $(HEADER)
14	$(CC) $(filter %.c,$^) $(CFLAGS) -o $@
15
16install: $(PROGS)
17	install bootconfig $(DESTDIR)$(bindir)
18
19clean:
20	$(RM) -f *.o bootconfig
21