~ubuntu-branches/ubuntu/trusty/sblim-sfcb/trusty-proposed

« back to all changes in this revision

Viewing changes to Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Thierry Carrez
  • Date: 2009-06-08 12:04:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090608120449-byfplk09rqz8rtg6
Tags: 1.3.3-0ubuntu1
* New upstream release.
* debian/rules: Removed rpath hacks, SFCB default build handles that now.
* Removed 1934753-remove-assignment.diff, now upstream.
* Refreshed patch cim-schema-location.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: Makefile.am,v 1.73 2008/04/17 00:27:35 buccella Exp $  
 
1
# $Id: Makefile.am,v 1.85 2009/02/17 22:36:27 mchasal Exp $  
2
2
#
3
3
#  Makefile.am
4
4
27
27
sfcbstatedir=$(localstatedir)/lib/sfcb
28
28
initdir=$(sysconfdir)/init.d
29
29
pamdir=$(sysconfdir)/pam.d
 
30
sfcblibdir=$(libdir)/sfcb
 
31
cmpilibdir=$(libdir)/cmpi
30
32
 
31
33
MANFILES=man/genSslCert.1 man/getSchema.1 man/sfcbd.1 man/sfcbmof.1 \
32
34
        man/sfcbrepos.1 man/sfcbstage.1 man/sfcbunstage.1 man/sfcbuuid.1 \
35
37
BUILT_SOURCES=queryParser.c queryLexer.c sqlParser.c sqlLexer.c cimXmlOps.c cimXmlParserProcessed.c $(MANFILES)
36
38
 
37
39
AM_YFLAGS=-d
38
 
 
39
40
AM_CPPFLAGS=-DSFCB_CONFDIR=\"$(sfcbconfdir)\" \
40
41
        -DSFCB_STATEDIR=\"$(sfcbstatedir)\" \
41
 
        -DSFCB_LIBDIR=\"$(libdir)\" \
 
42
        -DSFCB_LIBDIR=\"$(sfcblibdir)\" \
 
43
        -DCMPI_LIBDIR=\"$(cmpilibdir)\" \
 
44
        -DLIBDIR=\"$(libdir)\" \
42
45
        -DSFCB_BINARY=\"$(sbindir)/sfcbd\" \
43
46
        -I$(srcdir)/sfcUtil \
44
47
        @SFCB_CPPFLAGS@ \
45
48
        @SFCB_CMPI_PLATFORM@ 
 
49
AM_LDFLAGS=@SFCB_LDFLAGS@
 
50
 
 
51
SUBDIRS=. $(MOFC_DIR) test
 
52
 
 
53
if GCOV
 
54
AM_CFLAGS=@SFCB_CFLAGS@ -ftest-coverage -fprofile-arcs
 
55
else
46
56
AM_CFLAGS=@SFCB_CFLAGS@
47
 
AM_LDFLAGS=@SFCB_LDFLAGS@
48
 
 
49
 
SUBDIRS=. $(MOFC_DIR)
 
57
endif
50
58
 
51
59
if INDICATIONS
52
60
INDICATION_LIBS = libsfcIndCIMXMLHandler.la
54
62
INDICATION_LIBS =
55
63
endif
56
64
 
 
65
if LOCAL_CONNECT_ONLY
 
66
HTTP_ADAPTER_LIBS =
 
67
HTTP_ADAPTER_LIBS_LINK =
 
68
else
 
69
HTTP_ADAPTER_LIBS = libsfcHttpAdapter.la
 
70
HTTP_ADAPTER_LIBS_LINK = -lsfcHttpAdapter
 
71
endif
 
72
 
 
73
#
 
74
# if enable_local_connect_no_indication is set to "yes"
 
75
# then we won't build libsfcCimXmlCodec.so, libsfcHttpAdapter.so
 
76
# and libsfcIndCIMXMLHandler..so
 
77
#
 
78
if LOCAL_CONNECT_NO_INDICATION
 
79
CIMXMLCODEC_LIBS =
 
80
CIMXMLCODEC_LIBS_LINK =
 
81
 
 
82
HTTP_ADAPTER_LIBS =
 
83
HTTP_ADAPTER_LIBS_LINK =
 
84
 
 
85
INDICATION_LIBS =
 
86
else
 
87
CIMXMLCODEC_LIBS = libsfcCimXmlCodec.la
 
88
CIMXMLCODEC_LIBS_LINK = -lsfcCimXmlCodec
 
89
 
 
90
HTTP_ADAPTER_LIBS = libsfcHttpAdapter.la
 
91
HTTP_ADAPTER_LIBS_LINK = -lsfcHttpAdapter
 
92
endif
 
93
 
57
94
if SLP
58
95
SLP_LIBS = libslpAgent.la
59
96
SLP_LIB = -lslpAgent
64
101
SLP_HEADER =
65
102
endif
66
103
 
 
104
if SLP_HOSTNAME_LIB
 
105
SLP_HOSTNAME_LIBS = libsfcSlpHostname.la
 
106
else
 
107
SLP_HOSTNAME_LIBS =
 
108
endif
 
109
 
67
110
if QUALREP
68
111
QUALREP_LIBS = libsfcQualifierProvider.la
69
112
QUALREP_FILES = qualifier.c
91
134
    PAM_LIBS =
92
135
endif
93
136
 
94
 
lib_LTLIBRARIES = \
 
137
sfcblib_LTLIBRARIES = \
95
138
   libsfcUtil.la \
96
139
   libsfcBrokerCore.la \
97
140
   libsfcFileRepository.la \
102
145
   libsfcClassProvider.la \
103
146
   libsfcClassProviderGz.la \
104
147
   libsfcClassProviderMem.la \
105
 
   libsfcCimXmlCodec.la \
106
 
   libsfcHttpAdapter.la \
 
148
   $(CIMXMLCODEC_LIBS) \
 
149
   $(HTTP_ADAPTER_LIBS) \
107
150
   libsfcBasicAuthentication.la \
108
151
   libsfcCertificateAuthentication.la \
109
152
   libsfcObjectImplSwapI32toP32.la \
110
153
   libcimcClientSfcbLocal.la \
111
154
   $(QUALREP_LIBS) \
112
155
   $(SLP_LIBS) \
 
156
   $(SLP_HOSTNAME_LIBS) \
113
157
   $(INDICATION_LIBS) \
114
 
   $(PAM_LIBS)
 
158
   $(PAM_LIBS) 
115
159
 
116
160
if SLP_ALONE
117
161
SLP_PROGRAMFILES = cimslp
130
174
   sfcbd 
131
175
 
132
176
bin_PROGRAMS = \
133
 
   sfcbmofpp sfcbdump $(SLP_PROGRAMFILES)
 
177
   sfcbmofpp sfcbdump sfcbinst2mof $(SLP_PROGRAMFILES)
134
178
 
135
179
noinst_PROGRAMS = \
136
180
   sfcbdumpP32onI32 classSchema2c
215
259
libsfcFileRepository_la_LIBADD=-lsfcBrokerCore  
216
260
libsfcFileRepository_la_DEPENDENCIES=libsfcBrokerCore.la
217
261
 
 
262
#
 
263
# if enable_local_connect_no_indication is not turned on then
 
264
# we will build libsfcHttpAdapter
 
265
#
 
266
if !LOCAL_CONNECT_NO_INDICATION
218
267
libsfcHttpAdapter_la_SOURCES = \
219
268
   httpAdapter.c \
220
269
   httpComm.c
221
 
libsfcHttpAdapter_la_LIBADD=-lsfcBrokerCore -lsfcCimXmlCodec
222
 
libsfcHttpAdapter_la_DEPENDENCIES=libsfcBrokerCore.la libsfcCimXmlCodec.la
 
270
libsfcHttpAdapter_la_LIBADD=-lsfcBrokerCore $(CIMXMLCODEC_LIBS_LINK)
 
271
libsfcHttpAdapter_la_DEPENDENCIES=libsfcBrokerCore.la $(CIMXMLCODEC_LIBS)
 
272
endif
 
273
 
 
274
libsfcSlpHostname_la_SOURCES = \
 
275
   sfcSlpHostname.c
223
276
 
224
277
libsfcBasicAuthentication_la_SOURCES = \
225
278
   sfcBasicAuthentication.c
256
309
libsfcIndCIMXMLHandler_la_SOURCES = \
257
310
   indCIMXMLHandler.c \
258
311
   indCIMXMLExport.c 
259
 
libsfcIndCIMXMLHandler_la_LIBADD=-lsfcBrokerCore -lsfcInternalProvider -lsfcCimXmlCodec -lsfcHttpAdapter
 
312
libsfcIndCIMXMLHandler_la_LIBADD=-lsfcBrokerCore -lsfcInternalProvider $(CIMXMLCODEC_LIBS_LINK) $(HTTP_ADAPTER_LIBS_LINK)
260
313
libsfcIndCIMXMLHandler_la_DEPENDENCIES=libsfcBrokerCore.la libsfcInternalProvider.la \
261
 
        libsfcCimXmlCodec.la libsfcHttpAdapter.la
 
314
        $(CIMXMLCODEC_LIBS) $(HTTP_ADAPTER_LIBS)
262
315
 
263
316
libsfcProfileProvider_la_SOURCES = \
264
317
   profileProvider.c 
280
333
libsfcClassProviderMem_la_LIBADD=-lsfcBrokerCore
281
334
libsfcClassProviderMem_la_DEPENDENCIES=libsfcBrokerCore.la
282
335
 
 
336
#
 
337
# if enable_local_connect_no_indication is not turned on then
 
338
# we will build libsfcCimXmlCodec
 
339
#
 
340
if !LOCAL_CONNECT_NO_INDICATION
283
341
libsfcCimXmlCodec_la_SOURCES = \
284
342
   cimXmlOps.y \
285
343
   cimXmlParserProcessed.c \
286
344
   cimXmlRequest.c 
287
345
libsfcCimXmlCodec_la_LIBADD=-lsfcBrokerCore 
288
346
libsfcCimXmlCodec_la_DEPENDENCIES=libsfcBrokerCore.la
 
347
endif
289
348
 
290
349
if SLP
291
350
libslpAgent_la_CFLAGS = $(AM_CFLAGS)
305
364
endif
306
365
 
307
366
sfcbd_SOURCES=sfcBroker.c
308
 
sfcbd_LDADD=-lsfcBrokerCore -lsfcCimXmlCodec -lsfcHttpAdapter $(SLP_LIB)
309
 
sfcbd_DEPENDENCIES=libsfcBrokerCore.la libsfcCimXmlCodec.la libsfcHttpAdapter.la
 
367
sfcbd_LDADD=-lsfcBrokerCore $(CIMXMLCODEC_LIBS_LINK) $(HTTP_ADAPTER_LIBS_LINK) $(SLP_LIB)
 
368
sfcbd_DEPENDENCIES=libsfcBrokerCore.la $(CIMXMLCODEC_LIBS) $(HTTP_ADAPTER_LIBS)
310
369
 
311
370
sfcbmofpp_SOURCES=mofpp.c
312
371
 
313
372
sfcbdump_SOURCES=sfcbdump.c
314
373
 
 
374
sfcbinst2mof_SOURCES=sfcbinst2mof.c
 
375
sfcbinst2mof_LDADD = -lsfcFileRepository
 
376
 
315
377
classSchema2c_SOURCES=classSchema2c.c
316
378
classSchema2c_LDADD=-lsfcBrokerCore
317
379
classSchema2c_DEPENDENCIES=libsfcBrokerCore.la
403
465
        test -d $(DESTDIR)$(sfcbstatedir)/registration/repository || $(mkdir_p) $(DESTDIR)$(sfcbstatedir)/registration/repository
404
466
        test -d $(DESTDIR)$(sfcbstatedir)/stage/mofs/root/interop || $(mkdir_p) $(DESTDIR)$(sfcbstatedir)/stage/mofs/root/interop
405
467
        test -d $(DESTDIR)$(sfcbstatedir)/stage/regs || $(mkdir_p) $(DESTDIR)$(sfcbstatedir)/stage/regs
406
 
        $(INSTALL_DATA) $(srcdir)/default.reg $(DESTDIR)$(sfcbstatedir)/stage
 
468
        $(INSTALL_DATA) ./default.reg $(DESTDIR)$(sfcbstatedir)/stage
407
469
        $(INSTALL_DATA) $(srcdir)/interop.mof $(DESTDIR)$(sfcbstatedir)/stage/mofs/root/interop
408
470
if INDICATIONS
409
471
        $(INSTALL_DATA) $(srcdir)/indication.mof $(DESTDIR)$(sfcbstatedir)/stage/mofs
441
503
        $(sfcbdatadir)/genSslCert.sh $(sfcbconfdir)
442
504
endif
443
505
 
 
506
footprint:
 
507
        @flist='$(sbin_PROGRAMS) $(bin_PROGRAMS) $(sfcblib_LTLIBRARIES) $(dist_sfcbdata_SCRIPTS) $(init_SCRIPTS) $(man1_MANS) $(dist_man1_MANS) $(dist_pam_DATA) $(dist_sfcbdata_DATA) $(sfcbconf_DATA) $(sfcbdoc_DATA) '; \
 
508
        rm -f "MANIFEST"; \
 
509
        for p in $$flist; do \
 
510
                f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
 
511
                echo "$$f" >> MANIFEST; \
 
512
        done;\
 
513
        ./footprint.pl;
 
514
 
 
515
if TEST_ENABLED
 
516
testprep:
 
517
if GCOV
 
518
        mkdir -p ./coverage
 
519
        lcov --zerocounters --directory .libs/
 
520
endif
 
521
 
 
522
testreport:
 
523
if GCOV
 
524
        lcov --capture --directory .libs --output-file ./coverage/lcovtest.info --ignore-errors gcov,source
 
525
        lcov --remove ./coverage/lcovtest.info "/usr*" --output-file ./coverage/cov_stripped.info
 
526
        genhtml --output-directory ./coverage ./coverage/cov_stripped.info
 
527
        @echo "****** Coverage report generated in ./coverage/index.html"
 
528
endif
 
529
 
 
530
test: testprep check testreport
 
531
endif
 
532
 
444
533
postinstall: install-cimschema create-sslkeys
445
534
        test -f $(DESTDIR)$(sfcbstatedir)/registration/providerRegister || $(INSTALL_DATA) $(DESTDIR)$(sfcbstatedir)/stage/default.reg $(DESTDIR)$(sfcbstatedir)/registration/providerRegister