Imported Upstream version 0.2.5
[platform/upstream/libtirpc.git] / src / Makefile.am
1 ## Process this file with automake to create Makefile.in.
2
3 ## NOTE: this file doesn't really try to be complete.  In particular
4 ## `make dist' won't work at all.  We're just aiming to get the
5 ## program built.  We also don't bother trying to assemble code, or
6 ## anything like that.
7
8 noinst_HEADERS = rpc_com.h debug.h
9
10 AM_CPPFLAGS = -I$(top_srcdir)/tirpc -DPORTMAP -DINET6 \
11                 -D_GNU_SOURCE -Wall -pipe  
12
13 lib_LTLIBRARIES = libtirpc.la
14
15 #
16 # Set the library version information
17 #
18 # According to the libtool manual:
19 #
20 # "This flag accepts an argument of the form current[:revision[:age]].
21 #
22 # If either revision or age are omitted, they default to 0. Also note that
23 # age must be less than or equal to the current interface number.
24 #
25 # Here are a set of rules to help you update your library version information:
26 #
27 # 1.  Start with version information of 0:0:0 for each libtool library.
28 # 2.  Update the version information only immediately before a public
29 #     release of your software. More frequent updates are unnecessary,
30 #     and only guarantee that the current interface number gets larger faster.
31 # 3.  If the library source code has changed at all since the last update,
32 #     then increment revision (c:r:a becomes c:r+1:a).
33 # 4.  If any interfaces have been added, removed, or changed since the last
34 #     update, increment current, and set revision to 0.
35 # 5.  If any interfaces have been added since the last public release,
36 #     then increment age.
37 # 6.  If any interfaces have been removed since the last public release,
38 #     then set age to 0.
39 #
40 # _Never_ try to set the interface numbers so that they correspond to the
41 # release number of your package. This is an abuse that only fosters
42 # misunderstanding of the purpose of library versions."
43 #
44 libtirpc_la_LDFLAGS = -lpthread -version-info 1:10:0
45
46 libtirpc_la_SOURCES = auth_none.c auth_unix.c authunix_prot.c bindresvport.c clnt_bcast.c \
47         clnt_dg.c clnt_generic.c clnt_perror.c clnt_raw.c clnt_simple.c \
48         clnt_vc.c rpc_dtablesize.c getnetconfig.c getnetpath.c getrpcent.c \
49         getrpcport.c mt_misc.c pmap_clnt.c pmap_getmaps.c pmap_getport.c \
50         pmap_prot.c pmap_prot2.c pmap_rmt.c rpc_prot.c rpc_commondata.c \
51         rpc_callmsg.c rpc_generic.c rpc_soc.c rpcb_clnt.c rpcb_prot.c \
52         rpcb_st_xdr.c svc.c svc_auth.c svc_dg.c svc_auth_unix.c svc_auth_none.c \
53         svc_generic.c svc_raw.c svc_run.c svc_simple.c svc_vc.c getpeereid.c \
54         auth_time.c auth_des.c authdes_prot.c debug.c
55
56 ## XDR
57 libtirpc_la_SOURCES += xdr.c xdr_rec.c xdr_array.c xdr_float.c xdr_mem.c xdr_reference.c xdr_stdio.c
58
59 ## Secure-RPC
60 if GSS
61     libtirpc_la_SOURCES += auth_gss.c authgss_prot.c svc_auth_gss.c
62     libtirpc_la_LDFLAGS += $(GSSAPI_LIBS)
63     libtirpc_la_CFLAGS = -DHAVE_RPCSEC_GSS $(GSSAPI_CFLAGS)
64 endif
65
66 ## libtirpc_a_SOURCES += key_call.c key_prot_xdr.c getpublickey.c
67 ## libtirpc_a_SOURCES += netname.c netnamer.c rpcdname.c \
68 ## libtirpc_a_SOURCES += rtime.c \
69 ## auth_time.c auth_des.c authdes_prot.c 
70
71 CLEANFILES             = cscope.* *~
72 DISTCLEANFILES         = Makefile.in