altomaltes / cross / slibtool

Forked from cross/slibtool 2 years ago
Clone

88c6c6 build system: PE targets: added import library --avoid-version support.

Authored and Committed by midipix 8 years ago
    build system: PE targets: added import library --avoid-version support.
    
        
file modified
+33 -15
sysinfo/os/pe.mk CHANGED
@@ -5,7 +5,7 @@ LDFLAGS_SHARED += $(LDFLAGS_IMPLIB)
5
5
LDFLAGS_SHARED += -Wl,-soname
6
6
LDFLAGS_SHARED += -Wl,$(DSO_SONAME)
7
7
8
- implib: implib-ver implib-soname implib-solink
8
+ implib: implib-ver package-implib-soname package-implib-solink
9
9
10
10
implib-ver: shared-lib $(IMPLIB_VER)
11
11
@@ -18,6 +18,37 @@ $(IMPLIB_DEF): shared-lib
18
18
$(IMPLIB_VER): $(IMPLIB_DEF)
19
19
$(DLLTOOL) -l $(IMPLIB_VER) -d $(IMPLIB_DEF) -D $(DSO_VER)
20
20
21
+ install-implib: install-implib-ver \
22
+ package-install-implib-soname \
23
+ package-install-implib-solink
24
+
25
+ install-implib-ver: implib-ver
26
+ mkdir -p $(DESTDIR)$(LIBDIR)
27
+ cp $(IMPLIB_VER) $(DESTDIR)$(LIBDIR)
28
+
29
+ clean-implib:
30
+ rm -f $(SHARED_LIB)
31
+ rm -f $(IMPLIB_DEF)
32
+ rm -f $(IMPLIB_VER)
33
+ rm -f $(IMPLIB_SONAME)
34
+ rm -f $(IMPLIB_SOLINK)
35
+
36
+
37
+ ifeq ($(AVOID_VERSION),yes)
38
+
39
+ package-implib-soname:
40
+ package-implib-solink:
41
+ package-install-implib-soname:
42
+ package-install-implib-solink:
43
+
44
+ else
45
+
46
+ package-implib-soname: implib-soname
47
+ package-implib-solink: implib-solink
48
+ package-install-implib-soname: install-implib-soname
49
+ package-install-implib-solink: install-implib-solink
50
+
51
+
21
52
$(IMPLIB_SONAME): $(IMPLIB_DEF)
22
53
$(DLLTOOL) -l $(IMPLIB_SONAME) -d $(IMPLIB_DEF) -D $(DSO_SONAME)
23
54
@@ -26,14 +57,6 @@ $(IMPLIB_SOLINK): $(IMPLIB_SONAME)
26
57
ln -s $(IMP_SONAME) $(IMPLIB_SOLINK).tmp
27
58
mv $(IMPLIB_SOLINK).tmp $(IMPLIB_SOLINK)
28
59
29
- install-implib: install-implib-ver \
30
- install-implib-soname \
31
- install-implib-solink
32
-
33
- install-implib-ver: implib-ver
34
- mkdir -p $(DESTDIR)$(LIBDIR)
35
- cp $(IMPLIB_VER) $(DESTDIR)$(LIBDIR)
36
-
37
60
install-implib-soname: implib-soname
38
61
mkdir -p $(DESTDIR)$(LIBDIR)
39
62
cp $(IMPLIB_SONAME) $(DESTDIR)$(LIBDIR)
@@ -44,9 +67,4 @@ install-implib-solink: implib-soname
44
67
ln -s $(IMP_SONAME) $@.tmp
45
68
mv $@.tmp $(DESTDIR)$(LIBDIR)/$(IMP_SOLINK)
46
69
47
- clean-implib:
70
+ endif
48
- rm -f $(SHARED_LIB)
49
- rm -f $(IMPLIB_DEF)
50
- rm -f $(IMPLIB_VER)
51
- rm -f $(IMPLIB_SONAME)
52
- rm -f $(IMPLIB_SOLINK)