2020-01-11 00:03:56 +08:00
|
|
|
# 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)
|
|
|
|
|
2020-01-11 00:04:07 +08:00
|
|
|
test: bootconfig
|
|
|
|
./test-bootconfig.sh
|
|
|
|
|
2020-01-11 00:03:56 +08:00
|
|
|
clean:
|
|
|
|
$(RM) -f *.o bootconfig
|