blob: 57a5f3825856b0e1a9a1e726b30ef6513b1fc114 (
plain)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
|
--- swt-gtk-3.1.orig.orig/Makefile 2005-10-02 19:17:47.000000000 +0200
+++ swt-gtk-3.1.orig/Makefile 2005-10-02 19:27:30.000000000 +0200
@@ -1,4 +1,4 @@
-TARGETS=swt.jar libswt.so libswt-pi.so libswt-mozilla.so
+TARGETS=swt.jar
CLEANFILES=java-stamp *.jar *.o *.so.* `find org -name *.class`
RELEASE=3.1
@@ -7,22 +7,12 @@
AGE=1
SOVERSION=$(CURRENT).$(REVISION).$(AGE)
-GCJ=gcj
-GCJLD=gcj
JAR=fastjar
JAVAC=jikes-classpath -nowarn
-LDCONFIG=/sbin/ldconfig
LN_S=ln -s
RM=rm -f
-GCJFLAGS=-fPIC -fjni
-GCJLDFLAGS=-shared
-
-COMPILE=$(GCJ) $(GCJFLAGS)
-LINK=$(GCJLD) $(GCJLDFLAGS) -o $@
-
all: $(TARGETS)
- $(LDCONFIG) -n .
clean distclean:
$(RM) $(CLEANFILES) $(TARGETS)
@@ -31,33 +21,11 @@
java-stamp:
for i in `find org -name *.java`; do \
- echo " GCJ $$i"; \
- $(COMPILE) -c $$i; \
echo " JAVAC $$i"; \
$(JAVAC) $$i; \
done
touch $@
-swt.files:
- find org -type f \
- -not -path org/eclipse/swt/internal\* \
- -not -path org/eclipse/swt/browser\* | sort > $@
-
-swt-mozilla.files:
- find org/eclipse/swt/browser org/eclipse/swt/internal/mozilla \
- -type f | sort > $@
-
-swt-pi.files:
- find org/eclipse/swt/internal -type f \
- -not -path org/eclipse/swt/internal/mozilla\* | sort > $@
-
-lib%.so.$(SOVERSION): %.files java-stamp
- $(LINK) -Wl,-soname=lib$*.so.$(CURRENT) \
- `sed -nre '/\.java$$/{s~.*/(.*)\.java$$~\1.o~;p}' $<`
-
-%.so: %.so.$(SOVERSION)
- $(LN_S) -f $< $@
-
%-gtk-$(RELEASE).jar: java-stamp
$(JAR) cf $@ `find . -name *.class`
|