Subversion Repositories

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

Rev 5 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5 Rev 28
Line 10... Line 10...
10
includedir =	@includedir@
10
includedir =	@includedir@
11
11
12
OBJEXT = @OBJEXT@
12
OBJEXT = @OBJEXT@
13
LIBS    = @LIBS@ @libcrypto_LIBS@
13
LIBS    = @LIBS@ @libcrypto_LIBS@
14
14
-
 
15
CC = @CC@
-
 
16
CXX = @CXX@
-
 
17
15
CFLAGS = @CFLAGS@
18
CFLAGS = @CFLAGS@
16
CXXFLAGS = @CXXFLAGS@
19
CXXFLAGS = @CXXFLAGS@
17
CPPFLAGS = @CPPFLAGS@
20
CPPFLAGS = @CPPFLAGS@
18
21
19
INCL	= 
22
INCL	= 
Line 27... Line 30...
27
30
28
libdkimtest_SOURCES = libdkimtest.cpp
31
libdkimtest_SOURCES = libdkimtest.cpp
29
libdkimtest_OBJS = libdkimtest.$(OBJEXT)
32
libdkimtest_OBJS = libdkimtest.$(OBJEXT)
30
33
31
SHLIBFORLINK = libdkim.so
34
SHLIBFORLINK = libdkim.so
32
SHLIBVERSCRIPT = debian/libdkim.ver
-
 
33
SHLIBSONAME = $(SHLIBFORLINK).$(SHLIBMAJOR)
35
SHLIBSONAME = $(SHLIBFORLINK).$(SHLIBMAJOR)
34
SHLIBTARGET = $(SHLIBFORLINK)
36
SHLIBTARGET = $(SHLIBFORLINK)
35
SHLIBLINK = $(CXX) $(LDFLAGS) -shared -Wl,-soname=$(SHLIBSONAME) -Wl,-version-script=$(SHLIBVERSCRIPT)
37
SHLIBLINK = $(CXX) $(LDFLAGS) -shared -Wl,-soname=$(SHLIBSONAME)
36
SHLIBMAJOR = 0
38
SHLIBMAJOR = 1
37
SHLIBMINOR = 1
39
SHLIBMINOR = 1
38
SHLIBFILE = $(SHLIBSONAME).$(SHLIBMINOR)
40
SHLIBFILE = $(SHLIBSONAME).$(SHLIBMINOR)
39
SHLIBCFLAGS = -fPIC
41
SHLIBCFLAGS = -fPIC
40
42
41
ARFLAGS = crs
43
ARFLAGS = crs
Line 46... Line 48...
46
48
47
libdkim.a: $(libdkim_OBJS)
49
libdkim.a: $(libdkim_OBJS)
48
	-rm -f $@
50
	-rm -f $@
49
	$(AR) $(ARFLAGS) $@ $(libdkim_OBJS)
51
	$(AR) $(ARFLAGS) $@ $(libdkim_OBJS)
50
52
51
$(SHLIBFORLINK): $(libdkim_PURE_OBJS) $(SHLIBVERSCRIPT)
53
$(SHLIBFORLINK): $(libdkim_PURE_OBJS)
52
	$(SHLIBLINK) -o $@ $(LIBS) $(libdkim_PURE_OBJS)
54
	$(SHLIBLINK) -o $@ $(LIBS) $(libdkim_PURE_OBJS)
53
	-mkdir .lib 2>/dev/null
55
	-mkdir .lib 2>/dev/null
54
	[ -z "$(SHLIBSONAME)" ] || (cd .lib \
56
	[ -z "$(SHLIBSONAME)" ] || (cd .lib \
55
          && ln -sf ../$(SHLIBFORLINK) $(SHLIBSONAME))
57
          && ln -sf ../$(SHLIBFORLINK) $(SHLIBSONAME))
56
58