1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
--- mozilla.pure/security/nss/cmd/shlibsign/Makefile 2007-02-16 03:16:24.000000000 +0100
+++ mozilla/security/nss/cmd/shlibsign/Makefile 2008-11-05 14:04:54.798875000 +0100
@@ -86,18 +86,47 @@
include ../platrules.mk
-SRCDIR = $(call core_abspath,.)
-
+ifeq ($(OS_TARGET), Darwin)
+ SRCDIR = .
+else
+ifeq ($(OS_TARGET), Linux)
+ SRCDIR = .
+else
+ifeq ($(OS_TARGET), WIN95)
+ SRCDIR = $(shell cygpath -d $(SRCDIR))
+else
+ SRCDIR = $(call core_abspath,.)
+endif
+endif
+endif
%.chk: %.$(DLL_SUFFIX)
ifeq ($(OS_TARGET), OS2)
cd $(OBJDIR) ; cmd.exe /c $(SRCDIR)/sign.cmd $(DIST) \
$(call core_abspath,$(OBJDIR)) $(OS_TARGET) \
$(call core_abspath,$(NSPR_LIB_DIR)) $(call core_abspath,$<)
else
+ifeq ($(OS_TARGET), WIN95)
+ sh $(CYGWIN_WRAPPER) ./sign.sh $(shell cygpath -d -a $(DIST)) \
+ $(shell cygpath -d -a $(OBJDIR)) $(OS_TARGET) \
+ $(shell cygpath -d -a $(NSPR_LIB_DIR)) $(shell cygpath -d -a $<)
+else
+ifeq ($(OS_TARGET), Darwin)
+ cd $(SRCDIR) ; sh ./sign.sh $(DIST) \
+ $(OBJDIR) $(OS_TARGET) \
+ $(NSPR_LIB_DIR) $<
+else
+ifeq ($(OS_TARGET), Linux)
+ cd $(SRCDIR) ; sh ./sign.sh $(DIST) \
+ $(OBJDIR) $(OS_TARGET) \
+ $(NSPR_LIB_DIR) $<
+else
cd $(OBJDIR) ; sh $(SRCDIR)/sign.sh $(call core_abspath,$(DIST)) \
$(call core_abspath,$(OBJDIR)) $(OS_TARGET) \
$(call core_abspath,$(NSPR_LIB_DIR)) $(call core_abspath,$<)
endif
+endif
+endif
+endif
libs install :: $(CHECKLOC)
|