-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
38 lines (32 loc) · 1014 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
##
# Copyright (c) 2009 Ma Can <ml.macana@gmail.com>
# <macan@ncic.ac.cn>
#
# Time-stamp: <2012-05-18 12:42:31 macan>
#
# This is the makefile for HVFS project.
#
# Armed with EMACS.
include ../../Makefile.inc
ifdef USE_FUSE
DEPEND_LIBS = $(XNET_LIB) $(MDS_LIB) $(HVFS_LIB) $(MDSL_LIB) $(R2_LIB) \
$(API_LIB) $(FUSE_LIB) $(BRANCH_LIB)
EX_LFLAGS = -lpfuse
else
DEPEND_LIBS = $(XNET_LIB) $(MDS_LIB) $(HVFS_LIB) $(MDSL_LIB) $(R2_LIB) \
$(API_LIB) $(BRANCH_LIB)
endif
all : $(TEST_XNET_SOURCE:.c=.ut)
%.o : %.c $(mds_h_depend_files)
@echo -e " " CC"\t" $@
@$(CC) $(CFLAGS) $< -DUSE_XNET_SIMPLE -DUNIT_TEST -c
%.ut : %.o $(DEPEND_LIBS)
@echo -e " " CC"\t" $@
@$(CC) $(CFLAGS) -o $@ $< -L$(API) -lapi \
-L$(XNET) -lxnet -L$(MDS) -lmds \
-L$(R2) -lr2 -L$(MDSL) -lmdsl \
-L$(FUSE) $(EX_LFLAGS) -L$(API) -lapi -L$(R2) -lr2 \
-L$(BRANCH) -lbranch $(LFLAGS) -L$(LIB_PATH) -lhvfs $(LFLAGS)
clean :
-@rm -rf $(TEST_XNET_SOURCE:.c=.o)
-@rm -rf $(TEST_XNET_SOURCE:.c=.ut)