1ced56a00Sopenharmony_ci# SPDX-License-Identifier: MIT 2ced56a00Sopenharmony_ci# Copyright 2020 Google LLC 3ced56a00Sopenharmony_ci# 4ced56a00Sopenharmony_ci# Use of this source code is governed by an MIT-style 5ced56a00Sopenharmony_ci# license that can be found in the LICENSE file or at 6ced56a00Sopenharmony_ci# https://opensource.org/licenses/MIT. 7ced56a00Sopenharmony_ci 8ced56a00Sopenharmony_ci 9ced56a00Sopenharmony_ci# Use 'make help' to list available targets. 10ced56a00Sopenharmony_ci# 11ced56a00Sopenharmony_ci# Define V=1 to enable "verbose" mode, showing all executed commands. 12ced56a00Sopenharmony_ci# 13ced56a00Sopenharmony_ci# Define USE_SHARED_LIB=1 to link the fsverity binary to the shared library 14ced56a00Sopenharmony_ci# libfsverity.so rather than to the static library libfsverity.a. 15ced56a00Sopenharmony_ci# 16ced56a00Sopenharmony_ci# Define PREFIX to override the installation prefix, like './configure --prefix' 17ced56a00Sopenharmony_ci# in autotools-based projects (default: /usr/local) 18ced56a00Sopenharmony_ci# 19ced56a00Sopenharmony_ci# Define BINDIR to override where to install binaries, like './configure 20ced56a00Sopenharmony_ci# --bindir' in autotools-based projects (default: PREFIX/bin) 21ced56a00Sopenharmony_ci# 22ced56a00Sopenharmony_ci# Define INCDIR to override where to install headers, like './configure 23ced56a00Sopenharmony_ci# --includedir' in autotools-based projects (default: PREFIX/include) 24ced56a00Sopenharmony_ci# 25ced56a00Sopenharmony_ci# Define LIBDIR to override where to install libraries, like './configure 26ced56a00Sopenharmony_ci# --libdir' in autotools-based projects (default: PREFIX/lib) 27ced56a00Sopenharmony_ci# 28ced56a00Sopenharmony_ci# Define MANDIR to override where to install man pages, like './configure 29ced56a00Sopenharmony_ci# --mandir' in autotools-based projects (default: PREFIX/share/man) 30ced56a00Sopenharmony_ci# 31ced56a00Sopenharmony_ci# Define DESTDIR to override the installation destination directory 32ced56a00Sopenharmony_ci# (default: empty string) 33ced56a00Sopenharmony_ci# 34ced56a00Sopenharmony_ci# You can also specify custom CC, CFLAGS, CPPFLAGS, LDFLAGS, and/or PKGCONF. 35ced56a00Sopenharmony_ci# 36ced56a00Sopenharmony_ci############################################################################## 37ced56a00Sopenharmony_ci 38ced56a00Sopenharmony_cicc-option = $(shell if $(CC) $(1) -c -x c /dev/null -o /dev/null > /dev/null 2>&1; \ 39ced56a00Sopenharmony_ci then echo $(1); fi) 40ced56a00Sopenharmony_ci 41ced56a00Sopenharmony_ci# Support building with MinGW for minimal Windows fsverity.exe, but not for 42ced56a00Sopenharmony_ci# libfsverity. fsverity.exe will be statically linked. 43ced56a00Sopenharmony_ciifneq ($(findstring -mingw,$(shell $(CC) -dumpmachine 2>/dev/null)),) 44ced56a00Sopenharmony_ciMINGW = 1 45ced56a00Sopenharmony_ciendif 46ced56a00Sopenharmony_ci 47ced56a00Sopenharmony_ci# Set the CFLAGS. First give the warning-related flags (unconditionally, though 48ced56a00Sopenharmony_ci# the user can override any of them by specifying the opposite flag); then give 49ced56a00Sopenharmony_ci# the user-specified CFLAGS, defaulting to -O2 if none were specified. 50ced56a00Sopenharmony_ci# 51ced56a00Sopenharmony_ci# Use -Wno-deprecated-declarations to avoid warnings about the Engine API having 52ced56a00Sopenharmony_ci# been deprecated in OpenSSL 3.0; the replacement isn't ready yet. 53ced56a00Sopenharmony_ciCFLAGS ?= -O2 54ced56a00Sopenharmony_cioverride CFLAGS := -Wall -Wundef \ 55ced56a00Sopenharmony_ci $(call cc-option,-Wdeclaration-after-statement) \ 56ced56a00Sopenharmony_ci $(call cc-option,-Wimplicit-fallthrough) \ 57ced56a00Sopenharmony_ci $(call cc-option,-Wmissing-field-initializers) \ 58ced56a00Sopenharmony_ci $(call cc-option,-Wmissing-prototypes) \ 59ced56a00Sopenharmony_ci $(call cc-option,-Wstrict-prototypes) \ 60ced56a00Sopenharmony_ci $(call cc-option,-Wunused-parameter) \ 61ced56a00Sopenharmony_ci $(call cc-option,-Wvla) \ 62ced56a00Sopenharmony_ci $(call cc-option,-Wno-deprecated-declarations) \ 63ced56a00Sopenharmony_ci $(CFLAGS) 64ced56a00Sopenharmony_ci 65ced56a00Sopenharmony_cioverride CPPFLAGS := -Iinclude -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $(CPPFLAGS) 66ced56a00Sopenharmony_ci 67ced56a00Sopenharmony_ciifneq ($(V),1) 68ced56a00Sopenharmony_ciQUIET_CC = @echo ' CC ' $@; 69ced56a00Sopenharmony_ciQUIET_CCLD = @echo ' CCLD ' $@; 70ced56a00Sopenharmony_ciQUIET_AR = @echo ' AR ' $@; 71ced56a00Sopenharmony_ciQUIET_LN = @echo ' LN ' $@; 72ced56a00Sopenharmony_ciQUIET_GEN = @echo ' GEN ' $@; 73ced56a00Sopenharmony_ciQUIET_PANDOC = @echo ' PANDOC ' $@; 74ced56a00Sopenharmony_ciendif 75ced56a00Sopenharmony_ciUSE_SHARED_LIB ?= 76ced56a00Sopenharmony_ciPREFIX ?= /usr/local 77ced56a00Sopenharmony_ciBINDIR ?= $(PREFIX)/bin 78ced56a00Sopenharmony_ciINCDIR ?= $(PREFIX)/include 79ced56a00Sopenharmony_ciLIBDIR ?= $(PREFIX)/lib 80ced56a00Sopenharmony_ciMANDIR ?= $(PREFIX)/share/man 81ced56a00Sopenharmony_ciDESTDIR ?= 82ced56a00Sopenharmony_ciifneq ($(MINGW),1) 83ced56a00Sopenharmony_ciPKGCONF ?= pkg-config 84ced56a00Sopenharmony_cielse 85ced56a00Sopenharmony_ciPKGCONF := false 86ced56a00Sopenharmony_ciEXEEXT := .exe 87ced56a00Sopenharmony_ciendif 88ced56a00Sopenharmony_ciFSVERITY := fsverity$(EXEEXT) 89ced56a00Sopenharmony_ci 90ced56a00Sopenharmony_ci# Rebuild if a user-specified setting that affects the build changed. 91ced56a00Sopenharmony_ci.build-config: FORCE 92ced56a00Sopenharmony_ci @flags=$$( \ 93ced56a00Sopenharmony_ci echo 'CC=$(CC)'; \ 94ced56a00Sopenharmony_ci echo 'CFLAGS=$(CFLAGS)'; \ 95ced56a00Sopenharmony_ci echo 'CPPFLAGS=$(CPPFLAGS)'; \ 96ced56a00Sopenharmony_ci echo 'LDFLAGS=$(LDFLAGS)'; \ 97ced56a00Sopenharmony_ci echo 'LDLIBS=$(LDLIBS)'; \ 98ced56a00Sopenharmony_ci echo 'USE_SHARED_LIB=$(USE_SHARED_LIB)'; \ 99ced56a00Sopenharmony_ci ); \ 100ced56a00Sopenharmony_ci if [ "$$flags" != "`cat $@ 2>/dev/null`" ]; then \ 101ced56a00Sopenharmony_ci [ -e $@ ] && echo "Rebuilding due to new settings"; \ 102ced56a00Sopenharmony_ci echo "$$flags" > $@; \ 103ced56a00Sopenharmony_ci fi 104ced56a00Sopenharmony_ci 105ced56a00Sopenharmony_ciDEFAULT_TARGETS := 106ced56a00Sopenharmony_ciEXTRA_TARGETS := 107ced56a00Sopenharmony_ciCOMMON_HEADERS := $(wildcard common/*.h) 108ced56a00Sopenharmony_ciLDLIBS := $(shell "$(PKGCONF)" libcrypto --libs 2>/dev/null || echo -lcrypto) 109ced56a00Sopenharmony_ciCFLAGS += $(shell "$(PKGCONF)" libcrypto --cflags 2>/dev/null || echo) 110ced56a00Sopenharmony_ci 111ced56a00Sopenharmony_ci# If we are dynamically linking, when running tests we need to override 112ced56a00Sopenharmony_ci# LD_LIBRARY_PATH as no RPATH is set 113ced56a00Sopenharmony_ciifdef USE_SHARED_LIB 114ced56a00Sopenharmony_ciRUN_FSVERITY = LD_LIBRARY_PATH=./ $(TEST_WRAPPER_PROG) ./$(FSVERITY) 115ced56a00Sopenharmony_cielse 116ced56a00Sopenharmony_ciRUN_FSVERITY = $(TEST_WRAPPER_PROG) ./$(FSVERITY) 117ced56a00Sopenharmony_ciendif 118ced56a00Sopenharmony_ci 119ced56a00Sopenharmony_ci############################################################################## 120ced56a00Sopenharmony_ci 121ced56a00Sopenharmony_ci#### Library 122ced56a00Sopenharmony_ci 123ced56a00Sopenharmony_ciSOVERSION := 0 124ced56a00Sopenharmony_ciLIB_CFLAGS := $(CFLAGS) -fvisibility=hidden 125ced56a00Sopenharmony_ciLIB_SRC := $(wildcard lib/*.c) 126ced56a00Sopenharmony_ciifeq ($(MINGW),1) 127ced56a00Sopenharmony_ciLIB_SRC := $(filter-out lib/enable.c,${LIB_SRC}) 128ced56a00Sopenharmony_ciendif 129ced56a00Sopenharmony_ciLIB_HEADERS := $(wildcard lib/*.h) $(COMMON_HEADERS) 130ced56a00Sopenharmony_ciSTATIC_LIB_OBJ := $(LIB_SRC:.c=.o) 131ced56a00Sopenharmony_ciSHARED_LIB_OBJ := $(LIB_SRC:.c=.shlib.o) 132ced56a00Sopenharmony_ci 133ced56a00Sopenharmony_ci# Compile static library object files 134ced56a00Sopenharmony_ci$(STATIC_LIB_OBJ): %.o: %.c $(LIB_HEADERS) .build-config 135ced56a00Sopenharmony_ci $(QUIET_CC) $(CC) -o $@ -c $(CPPFLAGS) $(LIB_CFLAGS) $< 136ced56a00Sopenharmony_ci 137ced56a00Sopenharmony_ci# Compile shared library object files 138ced56a00Sopenharmony_ci$(SHARED_LIB_OBJ): %.shlib.o: %.c $(LIB_HEADERS) .build-config 139ced56a00Sopenharmony_ci $(QUIET_CC) $(CC) -o $@ -c $(CPPFLAGS) $(LIB_CFLAGS) -fPIC $< 140ced56a00Sopenharmony_ci 141ced56a00Sopenharmony_ci# Create static library 142ced56a00Sopenharmony_cilibfsverity.a:$(STATIC_LIB_OBJ) 143ced56a00Sopenharmony_ci $(QUIET_AR) $(AR) cr $@ $+ 144ced56a00Sopenharmony_ci 145ced56a00Sopenharmony_ciDEFAULT_TARGETS += libfsverity.a 146ced56a00Sopenharmony_ci 147ced56a00Sopenharmony_ci# Create shared library 148ced56a00Sopenharmony_cilibfsverity.so.$(SOVERSION):$(SHARED_LIB_OBJ) 149ced56a00Sopenharmony_ci $(QUIET_CCLD) $(CC) -o $@ -Wl,-soname=$@ -shared $+ \ 150ced56a00Sopenharmony_ci $(CFLAGS) $(LDFLAGS) $(LDLIBS) 151ced56a00Sopenharmony_ci 152ced56a00Sopenharmony_ciDEFAULT_TARGETS += libfsverity.so.$(SOVERSION) 153ced56a00Sopenharmony_ci 154ced56a00Sopenharmony_ci# Create the symlink libfsverity.so => libfsverity.so.$(SOVERSION) 155ced56a00Sopenharmony_cilibfsverity.so:libfsverity.so.$(SOVERSION) 156ced56a00Sopenharmony_ci $(QUIET_LN) ln -sf $+ $@ 157ced56a00Sopenharmony_ci 158ced56a00Sopenharmony_ciDEFAULT_TARGETS += libfsverity.so 159ced56a00Sopenharmony_ci 160ced56a00Sopenharmony_ci############################################################################## 161ced56a00Sopenharmony_ci 162ced56a00Sopenharmony_ci#### Programs 163ced56a00Sopenharmony_ci 164ced56a00Sopenharmony_ciALL_PROG_SRC := $(wildcard programs/*.c) 165ced56a00Sopenharmony_ciALL_PROG_OBJ := $(ALL_PROG_SRC:.c=.o) 166ced56a00Sopenharmony_ciALL_PROG_HEADERS := $(wildcard programs/*.h) $(COMMON_HEADERS) 167ced56a00Sopenharmony_ciPROG_COMMON_SRC := programs/utils.c 168ced56a00Sopenharmony_ciPROG_COMMON_OBJ := $(PROG_COMMON_SRC:.c=.o) 169ced56a00Sopenharmony_ciFSVERITY_PROG_OBJ := $(PROG_COMMON_OBJ) \ 170ced56a00Sopenharmony_ci programs/cmd_digest.o \ 171ced56a00Sopenharmony_ci programs/cmd_sign.o \ 172ced56a00Sopenharmony_ci programs/fsverity.o 173ced56a00Sopenharmony_ciifneq ($(MINGW),1) 174ced56a00Sopenharmony_ciFSVERITY_PROG_OBJ += \ 175ced56a00Sopenharmony_ci programs/cmd_dump_metadata.o \ 176ced56a00Sopenharmony_ci programs/cmd_enable.o \ 177ced56a00Sopenharmony_ci programs/cmd_measure.o 178ced56a00Sopenharmony_ciendif 179ced56a00Sopenharmony_ciTEST_PROG_SRC := $(wildcard programs/test_*.c) 180ced56a00Sopenharmony_ciTEST_PROGRAMS := $(TEST_PROG_SRC:programs/%.c=%$(EXEEXT)) 181ced56a00Sopenharmony_ci 182ced56a00Sopenharmony_ci# Compile program object files 183ced56a00Sopenharmony_ci$(ALL_PROG_OBJ): %.o: %.c $(ALL_PROG_HEADERS) .build-config 184ced56a00Sopenharmony_ci $(QUIET_CC) $(CC) -o $@ -c $(CPPFLAGS) $(CFLAGS) $< 185ced56a00Sopenharmony_ci 186ced56a00Sopenharmony_ci# Link the fsverity program 187ced56a00Sopenharmony_ciifdef USE_SHARED_LIB 188ced56a00Sopenharmony_ci$(FSVERITY): $(FSVERITY_PROG_OBJ) libfsverity.so 189ced56a00Sopenharmony_ci $(QUIET_CCLD) $(CC) -o $@ $(FSVERITY_PROG_OBJ) \ 190ced56a00Sopenharmony_ci $(CFLAGS) $(LDFLAGS) -L. -lfsverity 191ced56a00Sopenharmony_cielse 192ced56a00Sopenharmony_ci$(FSVERITY): $(FSVERITY_PROG_OBJ) libfsverity.a 193ced56a00Sopenharmony_ci $(QUIET_CCLD) $(CC) -o $@ $+ $(CFLAGS) $(LDFLAGS) $(LDLIBS) 194ced56a00Sopenharmony_ciendif 195ced56a00Sopenharmony_ci 196ced56a00Sopenharmony_ciDEFAULT_TARGETS += $(FSVERITY) 197ced56a00Sopenharmony_ci 198ced56a00Sopenharmony_ci# Link the test programs 199ced56a00Sopenharmony_ci$(TEST_PROGRAMS): %$(EXEEXT): programs/%.o $(PROG_COMMON_OBJ) libfsverity.a 200ced56a00Sopenharmony_ci $(QUIET_CCLD) $(CC) -o $@ $+ $(CFLAGS) $(LDFLAGS) $(LDLIBS) 201ced56a00Sopenharmony_ci 202ced56a00Sopenharmony_ciEXTRA_TARGETS += $(TEST_PROGRAMS) 203ced56a00Sopenharmony_ci 204ced56a00Sopenharmony_ci############################################################################## 205ced56a00Sopenharmony_ci 206ced56a00Sopenharmony_ci#### Manual pages 207ced56a00Sopenharmony_ci 208ced56a00Sopenharmony_ciman/fsverity.1:man/fsverity.1.md 209ced56a00Sopenharmony_ci $(QUIET_PANDOC) pandoc $+ -s -t man > $@ 210ced56a00Sopenharmony_ci 211ced56a00Sopenharmony_ciMAN_PAGES := man/fsverity.1 212ced56a00Sopenharmony_ciEXTRA_TARGETS += $(MAN_PAGES) 213ced56a00Sopenharmony_ci 214ced56a00Sopenharmony_ci############################################################################## 215ced56a00Sopenharmony_ci 216ced56a00Sopenharmony_ci# Support for downloading and building BoringSSL. The purpose of this is to 217ced56a00Sopenharmony_ci# allow testing builds of fsverity-utils that link to BoringSSL instead of 218ced56a00Sopenharmony_ci# OpenSSL, without having to use a system that uses BoringSSL natively. 219ced56a00Sopenharmony_ci 220ced56a00Sopenharmony_ciboringssl: 221ced56a00Sopenharmony_ci rm -rf boringssl boringssl.tar.gz 222ced56a00Sopenharmony_ci curl -s -o boringssl.tar.gz \ 223ced56a00Sopenharmony_ci https://boringssl.googlesource.com/boringssl/+archive/refs/heads/master.tar.gz 224ced56a00Sopenharmony_ci mkdir boringssl 225ced56a00Sopenharmony_ci tar xf boringssl.tar.gz -C boringssl 226ced56a00Sopenharmony_ci cmake -B boringssl/build boringssl 227ced56a00Sopenharmony_ci $(MAKE) -C boringssl/build $(MAKEFLAGS) 228ced56a00Sopenharmony_ci 229ced56a00Sopenharmony_ci############################################################################## 230ced56a00Sopenharmony_ci 231ced56a00Sopenharmony_ciSPECIAL_TARGETS := all test_programs check install install-man uninstall \ 232ced56a00Sopenharmony_ci help clean 233ced56a00Sopenharmony_ci 234ced56a00Sopenharmony_ciFORCE: 235ced56a00Sopenharmony_ci 236ced56a00Sopenharmony_ci.PHONY: $(SPECIAL_TARGETS) FORCE 237ced56a00Sopenharmony_ci 238ced56a00Sopenharmony_ci.DEFAULT_GOAL = all 239ced56a00Sopenharmony_ci 240ced56a00Sopenharmony_ciall:$(DEFAULT_TARGETS) 241ced56a00Sopenharmony_ci 242ced56a00Sopenharmony_citest_programs:$(TEST_PROGRAMS) 243ced56a00Sopenharmony_ci 244ced56a00Sopenharmony_ci# This just runs some quick, portable tests. Use scripts/run-tests.sh if you 245ced56a00Sopenharmony_ci# want to run the full tests. 246ced56a00Sopenharmony_cicheck:$(FSVERITY) test_programs 247ced56a00Sopenharmony_ci for prog in $(TEST_PROGRAMS); do \ 248ced56a00Sopenharmony_ci $(TEST_WRAPPER_PROG) ./$$prog || exit 1; \ 249ced56a00Sopenharmony_ci done 250ced56a00Sopenharmony_ci $(RUN_FSVERITY) --help > /dev/null 251ced56a00Sopenharmony_ci $(RUN_FSVERITY) --version > /dev/null 252ced56a00Sopenharmony_ci $(RUN_FSVERITY) sign $(FSVERITY) fsverity.sig \ 253ced56a00Sopenharmony_ci --key=testdata/key.pem --cert=testdata/cert.pem > /dev/null 254ced56a00Sopenharmony_ci $(RUN_FSVERITY) sign $(FSVERITY) fsverity.sig --hash=sha512 \ 255ced56a00Sopenharmony_ci --block-size=512 --salt=12345678 \ 256ced56a00Sopenharmony_ci --key=testdata/key.pem --cert=testdata/cert.pem > /dev/null 257ced56a00Sopenharmony_ci $(RUN_FSVERITY) digest $(FSVERITY) --hash=sha512 \ 258ced56a00Sopenharmony_ci --block-size=512 --salt=12345678 > /dev/null 259ced56a00Sopenharmony_ci rm -f fsverity.sig 260ced56a00Sopenharmony_ci @echo "All tests passed!" 261ced56a00Sopenharmony_ci 262ced56a00Sopenharmony_ciinstall:all 263ced56a00Sopenharmony_ci install -d $(DESTDIR)$(LIBDIR)/pkgconfig $(DESTDIR)$(INCDIR) $(DESTDIR)$(BINDIR) 264ced56a00Sopenharmony_ci install -m755 $(FSVERITY) $(DESTDIR)$(BINDIR) 265ced56a00Sopenharmony_ci install -m644 libfsverity.a $(DESTDIR)$(LIBDIR) 266ced56a00Sopenharmony_ci install -m755 libfsverity.so.$(SOVERSION) $(DESTDIR)$(LIBDIR) 267ced56a00Sopenharmony_ci ln -sf libfsverity.so.$(SOVERSION) $(DESTDIR)$(LIBDIR)/libfsverity.so 268ced56a00Sopenharmony_ci install -m644 include/libfsverity.h $(DESTDIR)$(INCDIR) 269ced56a00Sopenharmony_ci sed -e "s|@PREFIX@|$(PREFIX)|" \ 270ced56a00Sopenharmony_ci -e "s|@LIBDIR@|$(LIBDIR)|" \ 271ced56a00Sopenharmony_ci -e "s|@INCDIR@|$(INCDIR)|" \ 272ced56a00Sopenharmony_ci lib/libfsverity.pc.in \ 273ced56a00Sopenharmony_ci > $(DESTDIR)$(LIBDIR)/pkgconfig/libfsverity.pc 274ced56a00Sopenharmony_ci chmod 644 $(DESTDIR)$(LIBDIR)/pkgconfig/libfsverity.pc 275ced56a00Sopenharmony_ci 276ced56a00Sopenharmony_ciinstall-man:$(MAN_PAGES) 277ced56a00Sopenharmony_ci install -d $(DESTDIR)$(MANDIR)/man1 278ced56a00Sopenharmony_ci install -m644 $+ $(DESTDIR)$(MANDIR)/man1/ 279ced56a00Sopenharmony_ci 280ced56a00Sopenharmony_ciuninstall: 281ced56a00Sopenharmony_ci rm -f $(DESTDIR)$(BINDIR)/$(FSVERITY) 282ced56a00Sopenharmony_ci rm -f $(DESTDIR)$(LIBDIR)/libfsverity.a 283ced56a00Sopenharmony_ci rm -f $(DESTDIR)$(LIBDIR)/libfsverity.so.$(SOVERSION) 284ced56a00Sopenharmony_ci rm -f $(DESTDIR)$(LIBDIR)/libfsverity.so 285ced56a00Sopenharmony_ci rm -f $(DESTDIR)$(LIBDIR)/pkgconfig/libfsverity.pc 286ced56a00Sopenharmony_ci rm -f $(DESTDIR)$(INCDIR)/libfsverity.h 287ced56a00Sopenharmony_ci for page in $(notdir $(MAN_PAGES)); do \ 288ced56a00Sopenharmony_ci rm -f $(DESTDIR)$(MANDIR)/man1/$$page; \ 289ced56a00Sopenharmony_ci done 290ced56a00Sopenharmony_ci 291ced56a00Sopenharmony_cihelp: 292ced56a00Sopenharmony_ci @echo "Available targets:" 293ced56a00Sopenharmony_ci @echo "------------------" 294ced56a00Sopenharmony_ci @for target in $(DEFAULT_TARGETS) $(EXTRA_TARGETS) $(SPECIAL_TARGETS); \ 295ced56a00Sopenharmony_ci do \ 296ced56a00Sopenharmony_ci echo $$target; \ 297ced56a00Sopenharmony_ci done 298ced56a00Sopenharmony_ci 299ced56a00Sopenharmony_ciclean: 300ced56a00Sopenharmony_ci rm -f $(DEFAULT_TARGETS) $(EXTRA_TARGETS) \ 301ced56a00Sopenharmony_ci lib/*.o programs/*.o .build-config fsverity.sig 302