Gentoo Archives: gentoo-commits

From: "Michael Haubenwallner (haubi)" <haubi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/openmq-cclient/files: Makefile.in-4
Date: Mon, 01 Mar 2010 16:58:42
Message-Id: E1Nm8x5-00054X-E9@stork.gentoo.org
1 haubi 10/03/01 16:58:39
2
3 Added: Makefile.in-4
4 Log:
5 add net-libs/openmq-cclient 4.4u1
6 (Portage version: 2.1.7.17/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 net-libs/openmq-cclient/files/Makefile.in-4
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/openmq-cclient/files/Makefile.in-4?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/openmq-cclient/files/Makefile.in-4?rev=1.1&content-type=text/plain
13
14 Index: Makefile.in-4
15 ===================================================================
16 prefix=@prefix@
17 exec_prefix=@exec_prefix@
18 libdir=@libdir@
19 includedir=@includedir@
20
21 top_srcdir=@top_srcdir@
22 top_builddir=@top_builddir@
23
24 CC = @CC@
25 CXX = @CXX@
26 LIBTOOL = @LIBTOOL@
27
28 CFLAGS = @CFLAGS@
29 CXXFLAGS = @CXXFLAGS@
30 LDFLAGS = @LDFLAGS@
31
32 LTCC = $(LIBTOOL) --mode=compile --tag=CC $(CC)
33 LTCXX = $(LIBTOOL) --mode=compile --tag=CXX $(CXX)
34 LTLD = $(LIBTOOL) --mode=link --tag=CXX $(CXX)
35
36 NS_S_PR_CFLAGS = $(shell pkg-config --cflags nss nspr)
37 NS_S_PR_LIBS = $(shell pkg-config --libs nss nspr)
38
39 SRCS = $(shell find "$(top_srcdir)" -name examples -prune -o -type f '(' -name '*.cpp' -o -name '*.c' -not -name '*Test*' ')')
40 LTOBJS = $(subst .c,.lo,$(subst .cpp,.lo,$(SRCS)))
41
42 HDRS = $(top_srcdir)/cshim/mq/xa.h $(shell find "$(top_srcdir)"/cshim -type f -name 'mq*.h')
43 INSTHDRS = $(subst $(top_srcdir)/cshim,$(DESTDIR)$(includedir),$(HDRS))
44
45 LTLIBRARY = libmqcrt.la
46 INSTLTLIBRARY = $(DESTDIR)$(libdir)/$(LTLIBRARY)
47
48 .SUFFIXES:
49 .SUFFIXES: .cpp .c .lo
50
51 default: all
52
53 all: $(LTLIBRARY)
54
55 Makefile: Makefile.in
56 $(top_builddir)/config.status $@
57
58 .cpp.lo:
59 $(LTCXX) -o $@ $(NS_S_PR_CFLAGS) $(CXXFLAGS) -c $<
60
61 .c.lo:
62 $(LTCC) -o $@ $(NS_S_PR_CFLAGS) $(CFLAGS) -c $<
63
64 VERSIONNUMBER = $(shell { echo '#include "cshim/mqversion.h"'; echo '-version-number MQ_VMAJOR:MQ_VMINOR:MQ_VMICRO'; } | ${CC} -E - | grep version-number)
65
66 $(LTLIBRARY): $(LTOBJS)
67 version=` \
68 { echo '#include "cshim/mqversion.h"' \
69 ; echo '-version-number MQ_VMAJOR:MQ_VMINOR:MQ_VMICRO' \
70 ; } \
71 | ${CC} -E - \
72 | grep version-number \
73 ` \
74 && $(LTLD) -o $@ --no-undefined $${version} $(CXXFLAGS) $(NS_S_PR_LIBS) $(LDFLAGS) -rpath $(libdir) $?
75
76 $(INSTLTLIBRARY): $(LTLIBRARY)
77 $(top_srcdir)/install-sh -d "$(dir $@)"
78 $(LIBTOOL) --mode=install cp $(LTLIBRARY) $@
79
80 $(DESTDIR)$(includedir)/%: $(top_srcdir)/cshim/%
81 $(top_srcdir)/install-sh -d "$(dir $@)"
82 cp -f "$<" "$@"
83
84 install: $(INSTLTLIBRARY) $(INSTHDRS)