• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_USER_CFLAGS) -Iinclude -I$(SERVER_DIR)/fs_base
12LDFLAGS := $(DEFAULT_STATIC_USER_LDFLAGS) -pie
13SRCS := $(wildcard *.c)
14OBJS := $(SRCS:%=%.o)
15DEPS := $(OBJS:.o=.d)
16
17fsm.srv: $(OBJS)
18	$(Q)$(CC) $(LDFLAGS) $^ -o $@
19
20clean:
21	$(Q)rm -f $(OBJS) $(DEPS) fsm.srv
22
23-include $(DEPS)
24
25$(OBJS): %.o: %
26	$(Q)$(CC) $(CFLAGS) -c $< -o $@ -MMD
27