xref: /openbmc/linux/tools/bootconfig/Makefile (revision 4ec575b7)
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
19test: bootconfig
20	./test-bootconfig.sh
21
22clean:
23	$(RM) -f *.o bootconfig
24