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 $(LDLM)interval_tree.o
11 ldlm_objs += $(LDLM)ldlm_reclaim.o
13 target_objs := $(TARGET)tgt_main.o $(TARGET)tgt_lastrcvd.o
14 target_objs += $(TARGET)tgt_handler.o $(TARGET)out_handler.o
15 target_objs += $(TARGET)out_lib.o $(TARGET)update_trans.o
16 target_objs += $(TARGET)update_records.o
17 target_objs += $(TARGET)update_recovery.o
19 ptlrpc_objs := client.o recover.o connection.o niobuf.o pack_generic.o
20 ptlrpc_objs += events.o ptlrpc_module.o service.o pinger.o
21 ptlrpc_objs += llog_net.o llog_client.o llog_server.o import.o ptlrpcd.o
22 ptlrpc_objs += pers.o lproc_ptlrpc.o wiretest.o layout.o
23 ptlrpc_objs += sec.o sec_ctx.o sec_bulk.o sec_gc.o sec_config.o sec_lproc.o
24 ptlrpc_objs += sec_null.o sec_plain.o nrs.o nrs_fifo.o nrs_crr.o nrs_orr.o
25 ptlrpc_objs += nrs_tbf.o errno.o
27 nodemap_objs := nodemap_handler.o nodemap_lproc.o nodemap_range.o
28 nodemap_objs += nodemap_idmap.o nodemap_rbtree.o nodemap_member.o
29 nodemap_objs += nodemap_storage.o
31 ptlrpc-objs := $(ldlm_objs) $(ptlrpc_objs)
32 @SERVER_TRUE@ptlrpc-objs += $(target_objs) $(nodemap_objs)
34 @GSS_TRUE@subdir-m += gss
38 ldlm_%.c: @LUSTRE@/ldlm/ldlm_%.c
41 l_lock.c: @LUSTRE@/ldlm/l_lock.c
44 interval_tree.c: @LUSTRE@/ldlm/interval_tree.c
47 tgt_%.c: @LUSTRE@/target/tgt_%.c
50 out_%.c: @LUSTRE@/target/out_%.c
53 EXTRA_DIST := $(ptlrpc_objs:.o=.c) ptlrpc_internal.h
54 EXTRA_DIST += $(nodemap_objs:.o=.c) nodemap_internal.h
56 EXTRA_PRE_CFLAGS := -I@LUSTRE@/ldlm -I@LUSTRE@/target