summaryrefslogtreecommitdiffstats
path: root/tools/bootconfig/Makefile
blob: a6146ac6445804fd6052d81b77831681db62dc25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# SPDX-License-Identifier: GPL-2.0
# Makefile for bootconfig command

bindir ?= /usr/bin

HEADER = include/linux/bootconfig.h
CFLAGS = -Wall -g -I./include

PROGS = bootconfig

all: $(PROGS)

bootconfig: ../../lib/bootconfig.c main.c $(HEADER)
	$(CC) $(filter %.c,$^) $(CFLAGS) -o $@

install: $(PROGS)
	install bootconfig $(DESTDIR)$(bindir)

test: bootconfig
	./test-bootconfig.sh

clean:
	$(RM) -f *.o bootconfig