1## Process this file with automake to produce Makefile.in 2include $(top_srcdir)/include.mk 3include $(top_srcdir)/ncklib/ncklib.mk 4 5SUBDIRS=include 6 7# Initialize 8lib_LTLIBRARIES= 9noinst_LTLIBRARIES= 10noinst_HEADERS= 11CLEANFILES= 12 13###################################################################### 14## COMPONENT: include 15 16noinst_HEADERS+= \ 17 cn.h \ 18 cnasgsm.h \ 19 cnassm.h \ 20 cnassoc.h \ 21 cnbind.h \ 22 cncall.h \ 23 cnclsm.h \ 24 cncthd.h \ 25 cnfbuf.h \ 26 cnid.h \ 27 cnmgmt.h \ 28 cnnet.h \ 29 cnp.h \ 30 cnpkt.h \ 31 cnrcvr.h \ 32 cnsm.h \ 33 cnxfer.h \ 34 com.h \ 35 comauth.h \ 36 comcthd.h \ 37 comfwd.h \ 38 comimage.h \ 39 cominit.h \ 40 cominitp.h \ 41 commonp.h \ 42 comnaf.h \ 43 comnetp.h \ 44 comp.h \ 45 comprot.h \ 46 comsoc.h \ 47 comsoc_bsd.h \ 48 comsoc_smb.h \ 49 comtwr.h \ 50 comtwrflr.h \ 51 comtwrref.h \ 52 cs_s.h \ 53 dg.h \ 54 dgcall.h \ 55 dgccall.h \ 56 dgccallt.h \ 57 dgcct.h \ 58 dgclsn.h \ 59 dgexec.h \ 60 dgfwd.h \ 61 dgglob.h \ 62 dghnd.h \ 63 dgpkt.h \ 64 dgrq.h \ 65 dgscall.h \ 66 dgsct.h \ 67 dgslive.h \ 68 dgslsn.h \ 69 dgsoc.h \ 70 dgutl.h \ 71 dgxq.h \ 72 ipnaf.h \ 73 mgmtp.h \ 74 ndrglob.h \ 75 ndrp.h \ 76 noauth.h \ 77 noauthcn.h \ 78 noauthdg.h \ 79 gssauth.h \ 80 gssauthcn.h \ 81 schnauth.h \ 82 schnauthcn.h \ 83 npnaf.h \ 84 rpcclock.h \ 85 rpcdbg.h \ 86 rpcfork.h \ 87 rpclist.h \ 88 rpclog.h \ 89 rpcmem.h \ 90 rpcmutex.h \ 91 rpcrand.h \ 92 rpcsvc.h \ 93 rpctimer.h \ 94 sec_id_pickle.h \ 95 uxdnaf.h 96 97###################################################################### 98## COMPONENT: com - comprises of libcom and libstubs convenience libs 99 100noinst_LTLIBRARIES+=libcom.la libstubs.la 101 102libcom_la_SOURCES=comauth.c combind.c comcall.c comcthd.c comep.c comif.c \ 103 cominit.c cominit_ux.c comnaf.c comnet.c comnlsn.c comobj.c comp.c \ 104 comtwr.c comtwrflr.c comtwrref.c comutil.c nsldap.c sec_id.c 105libcom_la_CPPFLAGS=$(AM_CPPFLAGS) -DIMAGE_DIR=\"$(libdir)\" 106libcom_la_LIBADD=libstubs.la 107 108# Do not use NCK 109libstubs_la_SOURCES=pickle_cstub.c ep_cstub.c 110libstubs_la_CPPFLAGS=-I. $(BASE_CPPFLAGS) $(IDL_CPPFLAGS) 111libstubs_la_CFLAGS=$(BASE_CFLAGS) 112 113noinst_HEADERS+=ep.h 114 115sec_id.c: pickle.h 116 117pickle.h pickle_cstub.c: pickle.idl 118 $(IDL) $(IDL_INCLUDES) -keep c_source -no_cpp -v -no_mepv -server none $< 119 120ep.h ep_cstub.c: $(IDL_INCLUDE_DIR)/ep.idl 121 $(IDL) $(IDL_INCLUDES) -keep c_source -no_cpp -v -no_mepv -cepv -server none $< 122 123# Unused: id_base.h (the copy here came from some IDL w/MS PAC format info?) 124 125###################################################################### 126## COMPONENT: rpc - comprises of librpc convenience lib 127 128pkgdata_DATA=dcerpc.cat 129BUILT_SOURCES=dcerpc.cat 130 131noinst_LTLIBRARIES+=librpc.la 132 133librpc_la_CPPFLAGS = $(AM_CPPFLAGS) -DCATALOG_DIR=\"$(pkgdatadir)\" 134librpc_la_SOURCES=dce_error.c rpcclock.c rpcdbg.c rpclist.c \ 135 rpclog.c rpcmem.c rpcmutex.c rpcrand.c rpctimer.c 136 137dcerpc.cat: dcerpc.m 138 $(GENCAT) -o $@ $< 139 140###################################################################### 141## COMPONENT: transport - comprises of libtrans convenience lib 142 143noinst_LTLIBRARIES += libtrans.la 144 145libtrans_la_SOURCES = comsoc.c comsoc_bsd.c 146if HAVE_LIKEWISE_LWIO 147libtrans_la_SOURCES += comsoc_smb.c 148endif 149 150if HAVE_SMBCLIENT_FRAMEWORK 151libtrans_la_SOURCES += comsoc_smb.c 152endif 153 154libtrans_la_CPPFLAGS = $(AM_CPPFLAGS) $(NAF_NP_CPPFLAGS) 155libtrans_la_CFLAGS = $(BASE_CFLAGS) 156libtrans_la_LIBADD = $(NAF_NP_LIBS) 157 158if HAVE_LIKEWISE_LWMAPSECURITY 159libtrans_la_LIBADD += -llwmapsecurity 160endif 161 162###################################################################### 163## COMPONENT: auth - comprises of libauth_none shared lib 164 165if AUTH_DUMMY 166lib_LTLIBRARIES+=libauth_none.la 167 168libauth_none_la_SOURCES = noauth.c 169# Unused: noauthcn.c 170# Unused: noauthdg.c 171endif 172 173###################################################################### 174## COMPONENT: . - comprises of libcodeset convenience lib 175## 176## Note: This appears to be unused 177 178if BUILD_CODESET 179noinst_LTLIBRARIES+=libcodeset.la libcodeset_stubs.la 180 181libcodeset_la_SOURCES=cs_s_eval.c cs_s_reg.c cs_s_stub.c 182libcodeset_la_LIBADD=libcodeset_stubs.la 183 184libcodeset_stubs_la_SOURCES=codesets_cstub.c 185libcodeset_stubs_la_CPPFLAGS=-I. $(BASE_CPPFLAGS) $(IDL_CPPFLAGS) 186libcodeset_stubs_la_CFLAGS=$(BASE_CFLAGS) 187 188codesets.h codesets_cstub.c: $(IDL_INCLUDE_DIR)/codesets.idl 189 $(IDL) $(NCK_IDL_FLAGS) -server none $< 190else 191# TODO-2008/01/24-dalmeida - This appears to be completely unused, 192# so I commented it out: 193#EXTRA_FILES=$(codeset_files) 194endif 195 196###################################################################### 197## COMPONENT: . - comprises of libnck and libmgmt_stubs convenience libs 198 199noinst_LTLIBRARIES+=libnck.la libmgmt_stubs.la 200noinst_HEADERS+=mgmt.h 201 202libnck_la_SOURCES=comfork.c ndrglob.c mgmt.c rpcsvc.c 203libnck_la_LIBADD=libcom.la librpc.la libtrans.la libmgmt_stubs.la 204 205### Build w/o NCK flags 206libmgmt_stubs_la_SOURCES=mgmt_cstub.c mgmt_sstub.c 207libmgmt_stubs_la_CPPFLAGS=-I. $(BASE_CPPFLAGS) $(IDL_CPPFLAGS) 208libmgmt_stubs_la_CFLAGS=$(BASE_CFLAGS) 209 210mgmt_cstub.c mgmt_sstub.c mgmt.h: $(IDL_INCLUDE_DIR)/mgmt.idl 211 $(IDL) $(IDL_INCLUDES) -keep c_source -no_cpp -v -no_mepv -cepv $< 212 213# Unused: comfork_cma.c 214# Unused: dgauth.c ("obsolete") 215 216###################################################################### 217## Dist stuff 218 219###################################################################### 220## COMPONENT: transport/cn - comprises of libprot_ncacn shared lib 221 222# code for connection orientated transports 223if PROT_NCACN 224 225noinst_LTLIBRARIES+=libprot_ncacn.la 226libnck_la_LIBADD+=libprot_ncacn.la 227 228libprot_ncacn_la_LDFLAGS = $(DCERPC_LDFLAGS) 229libprot_ncacn_la_SOURCES = cnassoc.c cnbind.c cncall.c cncasgsm.c \ 230 cncassm.c cncclsm.c cncthd.c cnfbuf.c cnid.c cninit.c cnmgmt.c \ 231 cnnet.c cnp.c cnpkt.c cnrcvr.c cnsasgsm.c cnsassm.c cnsclsm.c \ 232 cnsm.c cnxfer.c 233 234endif 235 236###################################################################### 237## COMPONENT: transport/dg - comprises of libprot_ncadg shared lib 238 239if PROT_NCADG 240noinst_LTLIBRARIES+=libprot_ncadg.la 241noinst_LTLIBRARIES+=libprot_ncadg_stubs.la 242libnck_la_LIBADD+=libprot_ncadg.la 243 244libprot_ncadg_stubs_la_SOURCES=conv_cstub.c convc_cstub.c convc_sstub.c 245libprot_ncadg_stubs_la_CPPFLAGS=-I. $(BASE_CPPFLAGS) $(IDL_CPPFLAGS) 246libprot_ncadg_stubs_la_CFLAGS=$(BASE_CFLAGS) 247 248noinst_HEADERS+=conv.h convc.h 249 250conv.h conv_cstub.c: $(IDL_INCLUDE_DIR)/conv.idl 251 $(IDL) $(NCK_IDL_FLAGS) -cepv -server none $< 252 253convc.h convc_cstub.c convc_sstub.c: $(IDL_INCLUDE_DIR)/convc.idl 254 $(IDL) $(NCK_IDL_FLAGS) -cepv $< 255 256libprot_ncadg_la_SOURCES=conv.c dg.c dgcall.c dgccall.c \ 257 dgccallt.c dgcct.c dgclive.c dgclsn.c dgexec.c dgfwd.c \ 258 dgglob.c dghnd.c dginit.c dglossy.c dglsn.c dgpkt.c dgrq.c \ 259 dgscall.c dgsct.c dgslive.c dgslsn.c dgsoc.c dgutl.c dgxq.c 260 261libprot_ncadg_la_LIBADD=libprot_ncadg_stubs.la 262 263endif 264 265###################################################################### 266## COMPONENT: naf - comprises of libnaf_{np,ip,uxd} shared libs 267 268if NAF_IP 269noinst_LTLIBRARIES+=libnaf_ip.la 270libnck_la_LIBADD+=libnaf_ip.la 271libnaf_ip_la_SOURCES=ipnaf.c ipnaf_linux.c twr_ip.c 272endif 273 274if NAF_NP 275noinst_LTLIBRARIES+=libnaf_np.la 276libnck_la_LIBADD+=libnaf_np.la 277libnaf_np_la_SOURCES=npnaf.c npnaf_linux.c twr_np.c twr_uxd.c 278endif 279 280if NAF_UXD 281noinst_LTLIBRARIES+=libnaf_uxd.la 282libnck_la_LIBADD+=libnaf_uxd.la 283libnaf_uxd_la_SOURCES=uxdnaf.c uxdnaf_linux.c twr_uxd.c 284endif 285 286# Unused: twr_dnet.c 287 288if AUTH_GSS_NEGOTIATE 289noinst_LTLIBRARIES += libauth_gss_negotiate.la 290libnck_la_LIBADD+=libauth_gss_negotiate.la 291 292libauth_gss_negotiate_la_SOURCES = gssauth.c gssauthcn.c 293libauth_gss_negotiate_la_CFLAGS = @GSSAPI_INCLUDES@ 294libauth_gss_negotiate_la_LDFLAGS = @GSSAPI_LDFLAGS@ 295libauth_gss_negotiate_la_LIBADD = @GSSAPI_LIBS@ 296 297if HAVE_LIKEWISE_LWMAPSECURITY 298libauth_gss_negotiate_la_LIBADD += -llwmapsecurity 299endif 300 301endif 302 303if AUTH_SCHANNEL 304noinst_LTLIBRARIES += libauth_schannel.la 305libnck_la_LIBADD+=libauth_schannel.la 306 307libauth_schannel_la_SOURCES = schnauth.c schnauthcn.c 308libauth_schannel_la_CFLAGS = @SCHANNEL_INCLUDES@ 309libauth_schannel_la_LDFLAGS = @SCHANNEL_LDFLAGS@ 310libauth_schannel_la_LIBADD = @SCHANNEL_LIBS@ 311endif 312 313EXTRA_DIST=ncklib.mk include 314