1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | include $(top_srcdir)/automake/compile.am |
---|
6 | |
---|
7 | #%dirutils.obj: %dirutils.o |
---|
8 | # $(LD) -r -o $@ $^ |
---|
9 | project_lib_PROGRAMS = dirutils.rel |
---|
10 | dirutils_rel_SOURCES = src/dirutils.c |
---|
11 | dirutils_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
12 | dirutils_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
13 | |
---|
14 | if LIBNETWORKING |
---|
15 | project_lib_LIBRARIES = libnfs.a |
---|
16 | |
---|
17 | # if you have CEXP set this variable to 'YES' |
---|
18 | # and some "help" info will be compiled in. |
---|
19 | libnfs_a_SOURCES = src/rpcio.c src/rpcio.h |
---|
20 | libnfs_a_SOURCES += src/nfs.c src/sock_mbuf.c src/xdr_mbuf.c |
---|
21 | libnfs_a_SOURCES += proto/mount_prot.h proto/nfs_prot.h |
---|
22 | |
---|
23 | # With CEXP |
---|
24 | # libnfs_a_SOURCES += dirutils.c rpcio.modini.c nfs.modini.c cexphelp.c |
---|
25 | |
---|
26 | include_HEADERS = src/librtemsNfs.h |
---|
27 | |
---|
28 | # PGMS=${ARCH}/nfs.obj ${ARCH}/rpcio.obj ${ARCH}/dirutils.obj |
---|
29 | |
---|
30 | libnfs_a_CPPFLAGS = $(AM_CPPFLAGS) |
---|
31 | libnfs_a_CPPFLAGS += -I$(srcdir)/proto |
---|
32 | libnfs_a_CPPFLAGS += -UHAVE_CEXP |
---|
33 | |
---|
34 | #%nfs.obj: %nfs.o %nfs.modini.o |
---|
35 | # $(LD) -r -o $@ $^ -L../proto/$(ARCH) -lnfsprot |
---|
36 | project_lib_PROGRAMS += nfs.rel |
---|
37 | nfs_rel_SOURCES = src/nfs.c proto/nfs_prot.h proto/mount_prot.h |
---|
38 | nfs_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/proto |
---|
39 | nfs_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
40 | nfs_rel_LDADD = libnfs.a |
---|
41 | |
---|
42 | #%rpcio.obj: %rpcio.o %sock_mbuf.o %xdr_mbuf.o %rpcio.modini.o |
---|
43 | # $(LD) -r -o $@ $^ |
---|
44 | project_lib_PROGRAMS += rpcio.rel |
---|
45 | rpcio_rel_SOURCES = src/rpcio.c src/sock_mbuf.c src/xdr_mbuf.c |
---|
46 | rpcio_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
47 | rpcio_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
48 | |
---|
49 | libnfs_a_SOURCES += proto/nfs_prot_xdr.c proto/nfs_prot.h |
---|
50 | libnfs_a_SOURCES += proto/mount_prot_xdr.c proto/mount_prot.h |
---|
51 | |
---|
52 | libnfs_a_CPPFLAGS += -I$(srcdir)/proto |
---|
53 | libnfs_a_CPPFLAGS += -UHAVE_CEXP |
---|
54 | endif |
---|
55 | |
---|
56 | |
---|
57 | if RPCTOOLS |
---|
58 | $(srcdir)/proto/mount_prot.h: proto/mount_prot.x |
---|
59 | (cd $(srcdir)/proto && $(RPCGEN) -h -C mount_prot.x > mount_prot.h) |
---|
60 | |
---|
61 | $(srcdir)/proto/mount_prot_xdr.c: proto/mount_prot.x proto/mount_prot.h |
---|
62 | (cd $(srcdir)/proto && $(RPCGEN) -c -C mount_prot.x \ |
---|
63 | > mount_prot_xdr.c) |
---|
64 | |
---|
65 | $(srcdir)/proto/nfs_prot.h: proto/nfs_prot.x |
---|
66 | (cd $(srcdir)/proto && $(RPCGEN) -h -C nfs_prot.x > nfs_prot.h) |
---|
67 | |
---|
68 | $(srcdir)/proto/nfs_prot_xdr.c: proto/nfs_prot.x proto/nfs_prot.h |
---|
69 | (cd $(srcdir)/proto && $(RPCGEN) -c -C nfs_prot.x \ |
---|
70 | > nfs_prot_xdr.c) |
---|
71 | endif |
---|
72 | |
---|
73 | include $(srcdir)/preinstall.am |
---|
74 | include $(top_srcdir)/automake/local.am |
---|