source: rtems/c/src/nfsclient/Makefile.am @ 433ea5f

4.104.114.84.95
Last change on this file since 433ea5f was 433ea5f, checked in by Ralf Corsepius <ralf.corsepius@…>, on 07/25/07 at 09:33:59

Cleanup.

  • Property mode set to 100644
File size: 2.3 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 HAS_NETWORKING
15noinst_LIBRARIES = librtemsnfs.a
16
17# if you have CEXP set this variable to 'YES'
18# and some "help" info will be compiled in.
19librtemsnfs_a_SOURCES = src/rpcio.c src/rpcio.h
20librtemsnfs_a_SOURCES += src/nfs.c src/sock_mbuf.c src/xdr_mbuf.c
21librtemsnfs_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
26include_HEADERS = src/librtemsNfs.h
27
28# PGMS=${ARCH}/nfs.obj ${ARCH}/rpcio.obj ${ARCH}/dirutils.obj
29
30librtemsnfs_a_CPPFLAGS = $(AM_CPPFLAGS)
31librtemsnfs_a_CPPFLAGS += -I$(srcdir)/proto
32librtemsnfs_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 src/nfs.modini.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 = libnfsprot.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 src/rpcio.modini.c
46rpcio_rel_CPPFLAGS = $(AM_CPPFLAGS)
47rpcio_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
48
49noinst_LIBRARIES += libnfsprot.a
50
51libnfsprot_a_SOURCES = proto/nfs_prot_xdr.c proto/nfs_prot.h
52libnfsprot_a_SOURCES += proto/mount_prot_xdr.c proto/mount_prot.h
53
54libnfsprot_a_CPPFLAGS = $(AM_CPPFLAGS)
55libnfsprot_a_CPPFLAGS += -I$(srcdir)/proto
56libnfsprot_a_CPPFLAGS += -UHAVE_CEXP
57endif
58
59
60if 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)
74endif
75
76include $(srcdir)/preinstall.am
77include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.