Hamlib/rpcrot/Makefile.am

59 wiersze
1.9 KiB
Makefile
Czysty Zwykły widok Historia

# rpcrot_xdr.c rpcrot_svc.c rpcrot_clnt.c and rpcrot.h are generated by rpcgen
# have to provide: rpcrot_proc.c rpcrotd.c rpcrot_backend.c
#
# Note: automake complains rpcrot_xdr.c is generated both with and
# without libtool, hence the copy rpcrot_xdr_lt.c
LDADD = $(top_builddir)/src/libhamlib.la $(top_builddir)/lib/libmisc.la @NET_LIBS@
DEPENDENCIES = $(top_builddir)/src/libhamlib.la
BUILT_SOURCES = rpcrot_xdr.c rpcrot_svc.c rpcrot_xdr_lt.c rpcrot_clnt.c rpcrot.h
DISTCLEANFILES = rpcrot_xdr.c rpcrot_svc.c rpcrot_xdr_lt.c rpcrot_clnt.c rpcrot.h
# needed for backward compatibility on Solaris.
AM_CFLAGS = $(CFLAGS) -DPORTMAP
# The RPC server
sbin_PROGRAMS = rpc.rotd
rpc_rotd_DEPENDENCIES = $(DEPENDENCIES) @ROT_BACKENDEPS@
rpc_rotd_SOURCES = rpcrot_proc.c rpcrotd.c
nodist_rpc_rotd_SOURCES = rpcrot_xdr.c rpcrot_svc.c rpcrot.h
rpc_rotd_LDFLAGS = @ROT_BACKENDLNK@
man_MANS = rpc.rotd.8
# The RPC backend
lib_LTLIBRARIES = hamlib-rpcrot.la
hamlib_rpcrot_la_SOURCES = rpcrot_backend.c rpcrot_backend.h
nodist_hamlib_rpcrot_la_SOURCES = rpcrot_xdr_lt.c rpcrot_clnt.c rpcrot.h
hamlib_rpcrot_la_LDFLAGS = -no-undefined -module -avoid-version
hamlib_rpcrot_la_LIBADD = $(top_builddir)/src/libhamlib.la @NET_LIBS@
EXTRA_DIST = rpcrot.x $(man_MANS)
RPCGEN = rpcgen
rpcrot.h: rpcrot.x
rm -f $@
$(RPCGEN) -h `test -f rpcrig.x || echo '$(srcdir)/'`rpcrot.x -o $@
rpcrot_clnt.c: rpcrot.x rpcrot.h
rm -f $@
$(RPCGEN) -l `test -f rpcrig.x || echo '$(srcdir)/'`rpcrot.x -o $@
rpcrot_svc.c: rpcrot.x rpcrot.h
rm -f $@
$(RPCGEN) -m `test -f rpcrig.x || echo '$(srcdir)/'`rpcrot.x -o $@
# note:
# we need 2 rpcrot_xdr.c's: one for static rpcrot deamon, one for lt backend
rpcrot_xdr.c: rpcrot.x rpcrot.h
rm -f $@
$(RPCGEN) -c `test -f rpcrig.x || echo '$(srcdir)/'`rpcrot.x -o $@
rpcrot_xdr_lt.c: rpcrot.x rpcrot.h
rm -f $@
$(RPCGEN) -c `test -f rpcrig.x || echo '$(srcdir)/'`rpcrot.x -o $@