| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 | ccflags-y += -I$(src)
|
| 7 |
|
| 8 | obj-$(CONFIG_LOCKD) += lockd.o
|
| 9 |
|
| 10 | lockd-y := clntlock.o clntproc.o clntxdr.o host.o svc.o svclock.o \
|
| 11 | svcshare.o svcproc.o svcsubs.o mon.o trace.o netlink.o \
|
| 12 | nlm3xdr_gen.o
|
| 13 | lockd-$(CONFIG_LOCKD_V4) += clnt4xdr.o svc4proc.o nlm4xdr_gen.o
|
| 14 | lockd-$(CONFIG_PROC_FS) += procfs.o
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 | .PHONY: xdrgen
|
| 26 |
|
| 27 | XDRGEN = ../../tools/net/sunrpc/xdrgen/xdrgen
|
| 28 |
|
| 29 | XDRGEN_DEFINITIONS = ../../include/linux/sunrpc/xdrgen/nlm4.h \
|
| 30 | ../../include/linux/sunrpc/xdrgen/nlm3.h
|
| 31 | XDRGEN_DECLARATIONS = nlm4xdr_gen.h nlm3xdr_gen.h
|
| 32 | XDRGEN_SOURCE = nlm4xdr_gen.c nlm3xdr_gen.c
|
| 33 |
|
| 34 | xdrgen: $(XDRGEN_DEFINITIONS) $(XDRGEN_DECLARATIONS) $(XDRGEN_SOURCE)
|
| 35 |
|
| 36 | ../../include/linux/sunrpc/xdrgen/nlm4.h: ../../Documentation/sunrpc/xdr/nlm4.x
|
| 37 | $(XDRGEN) definitions $< > $@
|
| 38 |
|
| 39 | ../../include/linux/sunrpc/xdrgen/nlm3.h: ../../Documentation/sunrpc/xdr/nlm3.x
|
| 40 | $(XDRGEN) definitions $< > $@
|
| 41 |
|
| 42 | nlm4xdr_gen.h: ../../Documentation/sunrpc/xdr/nlm4.x
|
| 43 | $(XDRGEN) declarations $< > $@
|
| 44 |
|
| 45 | nlm3xdr_gen.h: ../../Documentation/sunrpc/xdr/nlm3.x
|
| 46 | $(XDRGEN) declarations $< > $@
|
| 47 |
|
| 48 | nlm4xdr_gen.c: ../../Documentation/sunrpc/xdr/nlm4.x
|
| 49 | $(XDRGEN) source --peer server $< > $@
|
| 50 |
|
| 51 | nlm3xdr_gen.c: ../../Documentation/sunrpc/xdr/nlm3.x
|
| 52 | $(XDRGEN) source --peer server $< > $@
|