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 HAS_NETWORKING |
---|
15 | noinst_LIBRARIES = librtemsnfs.a |
---|
16 | |
---|
17 | # if you have CEXP set this variable to 'YES' |
---|
18 | # and some "help" info will be compiled in. |
---|
19 | librtemsnfs_a_SOURCES = src/rpcio.c src/rpcio.h |
---|
20 | librtemsnfs_a_SOURCES += src/nfs.c src/sock_mbuf.c src/xdr_mbuf.c |
---|
21 | librtemsnfs_a_SOURCES += proto/mount_prot.h proto/nfs_prot.h |
---|
22 | |
---|
23 | # With CEXP |
---|
24 | # librtemsnfs_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 | librtemsnfs_a_CPPFLAGS = $(AM_CPPFLAGS) |
---|
31 | librtemsnfs_a_CPPFLAGS += -I$(srcdir)/proto |
---|
32 | librtemsnfs_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 src/nfs.modini.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 = libnfsprot.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 src/rpcio.modini.c |
---|
46 | rpcio_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
47 | rpcio_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
48 | |
---|
49 | noinst_LIBRARIES += libnfsprot.a |
---|
50 | |
---|
51 | libnfsprot_a_SOURCES = proto/nfs_prot_xdr.c proto/nfs_prot.h |
---|
52 | libnfsprot_a_SOURCES += proto/mount_prot_xdr.c proto/mount_prot.h |
---|
53 | |
---|
54 | libnfsprot_a_CPPFLAGS = $(AM_CPPFLAGS) |
---|
55 | libnfsprot_a_CPPFLAGS += -I$(srcdir)/proto |
---|
56 | libnfsprot_a_CPPFLAGS += -UHAVE_CEXP |
---|
57 | endif |
---|
58 | |
---|
59 | |
---|
60 | if RPCTOOLS |
---|
61 | $(srcdir)/proto/mount_prot.h: proto/mount_prot.x |
---|
62 | (cd $(srcdir)/proto && $(RPCGEN) -h -C mount_prot.x > mount_prot.h) |
---|
63 | |
---|
64 | $(srcdir)/proto/mount_prot_xdr.c: proto/mount_prot.x proto/mount_prot.h |
---|
65 | (cd $(srcdir)/proto && $(RPCGEN) -c -C mount_prot.x \ |
---|
66 | > mount_prot_xdr.c) |
---|
67 | |
---|
68 | $(srcdir)/proto/nfs_prot.h: proto/nfs_prot.x |
---|
69 | (cd $(srcdir)/proto && $(RPCGEN) -h -C nfs_prot.x > nfs_prot.h) |
---|
70 | |
---|
71 | $(srcdir)/proto/nfs_prot_xdr.c: proto/nfs_prot.x proto/nfs_prot.h |
---|
72 | (cd $(srcdir)/proto && $(RPCGEN) -c -C nfs_prot.x \ |
---|
73 | > nfs_prot_xdr.c) |
---|
74 | endif |
---|
75 | |
---|
76 | include $(srcdir)/preinstall.am |
---|
77 | include $(top_srcdir)/automake/local.am |
---|