blob: a6146ac6445804fd6052d81b77831681db62dc25 [file] [log] [blame]
Masami Hiramatsu950313e2020-01-11 01:03:56 +09001# 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
Masami Hiramatsu081c6532020-01-11 01:04:07 +090019test: bootconfig
20 ./test-bootconfig.sh
21
Masami Hiramatsu950313e2020-01-11 01:03:56 +090022clean:
23 $(RM) -f *.o bootconfig