1# Copyright (c) 2023 Institute of Parallel And Distributed Systems (IPADS), Shanghai Jiao Tong University (SJTU) 2# Licensed under the Mulan PSL v2. 3# You can use this software according to the terms and conditions of the Mulan PSL v2. 4# You may obtain a copy of Mulan PSL v2 at: 5# http://license.coscl.org.cn/MulanPSL2 6# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR 7# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR 8# PURPOSE. 9# See the Mulan PSL v2 for more details. 10 11CFLAGS := $(DEFAULT_LIB_CFLAGS) 12SRCS := $(wildcard *.c) 13OBJS := $(SRCS:%=%.o) 14DEPS := $(OBJS:.o=.d) 15 16libfs_base.a: $(OBJS) 17 $(Q)$(AR) rc $@ $(OBJS) 18 $(Q)$(RANLIB) $@ 19 20clean: 21 $(Q)rm -f $(OBJS) $(DEPS) libfs_base.a 22 23-include $(DEPS) 24 25$(OBJS): %.o: % 26 $(Q)$(CC) $(CFLAGS) -c $< -o $@ -MMD 27