source: rtems/cpukit/libfs/src/nfsclient/Makefile.am @ e447c7d2

4.104.115
Last change on this file since e447c7d2 was e447c7d2, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/28/09 at 06:15:55

Whitespace removal.

  • Property mode set to 100644
File size: 2.2 KB
Line 
1#
2#  $Id$
3#
4
5include $(top_srcdir)/automake/compile.am
6
7#%dirutils.obj: %dirutils.o
8#       $(LD) -r -o $@ $^
9project_lib_PROGRAMS = dirutils.rel
10dirutils_rel_SOURCES = src/dirutils.c
11dirutils_rel_CPPFLAGS = $(AM_CPPFLAGS)
12dirutils_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
13
14if LIBNETWORKING
15project_lib_LIBRARIES = libnfs.a
16
17# if you have CEXP set this variable to 'YES'
18# and some "help" info will be compiled in.
19libnfs_a_SOURCES = src/rpcio.c src/rpcio.h
20libnfs_a_SOURCES += src/nfs.c src/sock_mbuf.c src/xdr_mbuf.c
21libnfs_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
26include_HEADERS = src/librtemsNfs.h
27
28# PGMS=${ARCH}/nfs.obj ${ARCH}/rpcio.obj ${ARCH}/dirutils.obj
29
30libnfs_a_CPPFLAGS = $(AM_CPPFLAGS)
31libnfs_a_CPPFLAGS += -I$(srcdir)/proto
32libnfs_a_CPPFLAGS += -UHAVE_CEXP
33
34#%nfs.obj: %nfs.o %nfs.modini.o
35#       $(LD) -r -o $@ $^ -L../proto/$(ARCH) -lnfsprot
36project_lib_PROGRAMS += nfs.rel
37nfs_rel_SOURCES = src/nfs.c proto/nfs_prot.h proto/mount_prot.h
38nfs_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/proto
39nfs_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
40nfs_rel_LDADD = libnfs.a
41
42#%rpcio.obj: %rpcio.o %sock_mbuf.o %xdr_mbuf.o %rpcio.modini.o
43#       $(LD) -r -o $@ $^
44project_lib_PROGRAMS += rpcio.rel
45rpcio_rel_SOURCES = src/rpcio.c src/sock_mbuf.c src/xdr_mbuf.c
46rpcio_rel_CPPFLAGS = $(AM_CPPFLAGS)
47rpcio_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
48
49libnfs_a_SOURCES += proto/nfs_prot_xdr.c proto/nfs_prot.h
50libnfs_a_SOURCES += proto/mount_prot_xdr.c proto/mount_prot.h
51
52libnfs_a_CPPFLAGS += -I$(srcdir)/proto
53libnfs_a_CPPFLAGS += -UHAVE_CEXP
54endif
55
56
57if 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)
71endif
72
73include $(srcdir)/preinstall.am
74include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.