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