2 LDLM := @top_srcdir@/lustre/ldlm/
3 TARGET := @top_srcdir@/lustre/target/
5 ldlm_objs := $(LDLM)l_lock.o $(LDLM)ldlm_lock.o
6 ldlm_objs += $(LDLM)ldlm_resource.o $(LDLM)ldlm_lib.o
7 ldlm_objs += $(LDLM)ldlm_plain.o $(LDLM)ldlm_extent.o
8 ldlm_objs += $(LDLM)ldlm_request.o $(LDLM)ldlm_lockd.o
9 ldlm_objs += $(LDLM)ldlm_flock.o $(LDLM)ldlm_inodebits.o
10 ldlm_objs += $(LDLM)ldlm_pool.o
11 ldlm_objs += $(LDLM)interval_tree.o
12 ptlrpc_objs := client.o recover.o connection.o niobuf.o pack_generic.o
13 ptlrpc_objs += events.o ptlrpc_module.o service.o pinger.o
14 ptlrpc_objs += llog_net.o llog_client.o llog_server.o import.o ptlrpcd.o
15 ptlrpc_objs += pers.o lproc_ptlrpc.o wiretest.o layout.o
16 ptlrpc_objs += sec.o sec_ctx.o sec_bulk.o sec_gc.o sec_config.o sec_lproc.o
17 ptlrpc_objs += sec_null.o sec_plain.o nrs.o nrs_fifo.o nrs_crr.o nrs_orr.o
18 ptlrpc_objs += nrs_tbf.o errno.o
20 target_objs := $(TARGET)tgt_main.o $(TARGET)tgt_lastrcvd.o
21 target_objs += $(TARGET)tgt_handler.o $(TARGET)out_handler.o
22 target_objs += $(TARGET)out_lib.o
23 target_objs += $(TARGET)update_trans.o
25 nodemap_objs = nodemap_handler.o nodemap_lproc.o nodemap_range.o
26 nodemap_objs += nodemap_idmap.o nodemap_rbtree.o nodemap_member.o
28 ptlrpc-objs := $(ldlm_objs) $(ptlrpc_objs)
29 @SERVER_TRUE@ptlrpc-objs += $(target_objs) $(nodemap_objs)
31 @GSS_TRUE@subdir-m += gss
35 ldlm_%.c: @LUSTRE@/ldlm/ldlm_%.c
38 l_lock.c: @LUSTRE@/ldlm/l_lock.c
41 interval_tree.c: @LUSTRE@/ldlm/interval_tree.c
44 tgt_%.c: @LUSTRE@/target/tgt_%.c
47 out_%.c: @LUSTRE@/target/out_%.c
50 EXTRA_DIST := $(ptlrpc_objs:.o=.c) ptlrpc_internal.h
51 EXTRA_DIST += $(TARGET)tgt_internal.h nodemap_internal.h
52 @SERVER_FALSE@EXTRA_DIST += $(target_objs:.o=.c)
54 EXTRA_PRE_CFLAGS := -I@LUSTRE@/ldlm -I@LUSTRE@/target