Subversion Repositories

?revision_form?Rev ?revision_input??revision_submit??revision_endform?

Rev 11 | Rev 32 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11 Rev 15
Line 30... Line 30...
30
30
31
libdkimtest_SOURCES = libdkimtest.cpp
31
libdkimtest_SOURCES = libdkimtest.cpp
32
libdkimtest_OBJS = libdkimtest.$(OBJEXT)
32
libdkimtest_OBJS = libdkimtest.$(OBJEXT)
33
33
34
SHLIBFORLINK = libdkim.so
34
SHLIBFORLINK = libdkim.so
35
SHLIBVERSCRIPT = debian/libdkim.ver
-
 
36
SHLIBSONAME = $(SHLIBFORLINK).$(SHLIBMAJOR)
35
SHLIBSONAME = $(SHLIBFORLINK).$(SHLIBMAJOR)
37
SHLIBTARGET = $(SHLIBFORLINK)
36
SHLIBTARGET = $(SHLIBFORLINK)
38
SHLIBLINK = $(CXX) $(LDFLAGS) -shared -Wl,-soname=$(SHLIBSONAME) -Wl,-version-script=$(SHLIBVERSCRIPT)
37
SHLIBLINK = $(CXX) $(LDFLAGS) -shared -Wl,-soname=$(SHLIBSONAME)
39
SHLIBMAJOR = 1
38
SHLIBMAJOR = 1
40
SHLIBMINOR = 0
39
SHLIBMINOR = 0
41
SHLIBFILE = $(SHLIBSONAME).$(SHLIBMINOR)
40
SHLIBFILE = $(SHLIBSONAME).$(SHLIBMINOR)
42
SHLIBCFLAGS = -fPIC
41
SHLIBCFLAGS = -fPIC
43
42
Line 49... Line 48...
49
48
50
libdkim.a: $(libdkim_OBJS)
49
libdkim.a: $(libdkim_OBJS)
51
	-rm -f $@
50
	-rm -f $@
52
	$(AR) $(ARFLAGS) $@ $(libdkim_OBJS)
51
	$(AR) $(ARFLAGS) $@ $(libdkim_OBJS)
53
52
54
$(SHLIBFORLINK): $(libdkim_PURE_OBJS) $(SHLIBVERSCRIPT)
53
$(SHLIBFORLINK): $(libdkim_PURE_OBJS)
55
	$(SHLIBLINK) -o $@ $(LIBS) $(libdkim_PURE_OBJS)
54
	$(SHLIBLINK) -o $@ $(LIBS) $(libdkim_PURE_OBJS)
56
	-mkdir .lib 2>/dev/null
55
	-mkdir .lib 2>/dev/null
57
	[ -z "$(SHLIBSONAME)" ] || (cd .lib \
56
	[ -z "$(SHLIBSONAME)" ] || (cd .lib \
58
          && ln -sf ../$(SHLIBFORLINK) $(SHLIBSONAME))
57
          && ln -sf ../$(SHLIBFORLINK) $(SHLIBSONAME))
59
58