7ee8cbc852a57bc871931b64ba5c6368cd569482
[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
9 INCLUDES = -I$(top_srcdir)/tirpc -DPORTMAP -DINET6 -DVERSION="\"$(VERSION)\"" \
10                 -D_GNU_SOURCE -Wall -pipe  
11
12 lib_LTLIBRARIES = libtirpc.la
13
14 #
15 # Set the library version information
16 #
17 # According to the libtool manual:
18 #
19 # "This flag accepts an argument of the form current[:revision[:age]].
20 #
21 # If either revision or age are omitted, they default to 0. Also note that
22 # age must be less than or equal to the current interface number.
23 #
24 # Here are a set of rules to help you update your library version information:
25 #
26 # 1.  Start with version information of 0:0:0 for each libtool library.
27 # 2.  Update the version information only immediately before a public
28 #     release of your software. More frequent updates are unnecessary,
29 #     and only guarantee that the current interface number gets larger faster.
30 # 3.  If the library source code has changed at all since the last update,
31 #     then increment revision (c:r:a becomes c:r+1:a).
32 # 4.  If any interfaces have been added, removed, or changed since the last
33 #     update, increment current, and set revision to 0.
34 # 5.  If any interfaces have been added since the last public release,
35 #     then increment age.
36 # 6.  If any interfaces have been removed since the last public release,
37 #     then set age to 0.
38 #
39 # _Never_ try to set the interface numbers so that they correspond to the
40 # release number of your package. This is an abuse that only fosters
41 # misunderstanding of the purpose of library versions."
42 #
43 libtirpc_la_LDFLAGS = -lnsl -lpthread -version-info 1:10:0
44
45 libtirpc_la_SOURCES = auth_none.c auth_unix.c authunix_prot.c bindresvport.c clnt_bcast.c \
46         clnt_dg.c clnt_generic.c clnt_perror.c clnt_raw.c clnt_simple.c \
47         clnt_vc.c rpc_dtablesize.c getnetconfig.c getnetpath.c getrpcent.c \
48         getrpcport.c mt_misc.c pmap_clnt.c pmap_getmaps.c pmap_getport.c \
49         pmap_prot.c pmap_prot2.c pmap_rmt.c rpc_prot.c rpc_commondata.c \
50         rpc_callmsg.c rpc_generic.c rpc_soc.c rpcb_clnt.c rpcb_prot.c \
51         rpcb_st_xdr.c svc.c svc_auth.c svc_dg.c svc_auth_unix.c svc_generic.c \
52         svc_raw.c svc_run.c svc_simple.c svc_vc.c getpeereid.c \
53         auth_time.c auth_des.c authdes_prot.c des_crypt.c
54
55 ## XDR
56 libtirpc_la_SOURCES += xdr.c xdr_rec.c xdr_array.c xdr_float.c xdr_mem.c xdr_reference.c xdr_stdio.c
57
58 ## Secure-RPC
59 if GSS
60     libtirpc_la_SOURCES += auth_gss.c authgss_prot.c svc_auth_gss.c \
61                 svc_auth_none.c
62     libtirpc_la_LDFLAGS += $(GSSGLUE_LIBS)
63     libtirpc_la_CFLAGS = -DHAVE_RPCSEC_GSS $(GSSGLUE_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