30 lines · 789 B · Makefile
RawDownload
# SPDX-License-Identifier: GPL-2.0# Makefile for bootconfig commandinclude ../scripts/Makefile.include bindir ?= /usr/bin ifeq ($(srctree),)srctree := $(patsubst %/,%,$(dir $(CURDIR)))srctree := $(patsubst %/,%,$(dir $(srctree)))endif LIBSRC = $(srctree)/lib/bootconfig.c $(srctree)/include/linux/bootconfig.hoverride CFLAGS += -Wall -g -I$(CURDIR)/include ALL_TARGETS := bootconfigALL_PROGRAMS := $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS)) all: $(ALL_PROGRAMS) test $(OUTPUT)bootconfig: main.c include/linux/bootconfig.h $(LIBSRC)	$(CC) $(filter %.c,$^) $(CFLAGS) $(LDFLAGS) -o $@ test: $(ALL_PROGRAMS) test-bootconfig.sh	./test-bootconfig.sh $(OUTPUT) install: $(ALL_PROGRAMS)	install $(OUTPUT)bootconfig $(DESTDIR)$(bindir) clean:	$(RM) -f $(OUTPUT)*.o $(ALL_PROGRAMS)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t