diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/swt/files/Makefile | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/swt/files/Makefile')
-rw-r--r-- | recipes/swt/files/Makefile | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/recipes/swt/files/Makefile b/recipes/swt/files/Makefile new file mode 100644 index 0000000000..4835f1410d --- /dev/null +++ b/recipes/swt/files/Makefile @@ -0,0 +1,78 @@ +JAVA=swt-gtk-$(RELEASE).jar +LIBRARIES=libswt.so libswt-pi.so libswt-mozilla.so +CLEANFILES=*.files *.jar *.so* *-stamp + +RELEASE=OE_SWT_RELEASE +SONAME_VERSION=OE_SWT_API_VERSION + +GCJ=false +JAR=fastjar +JAVAC=javac -classpath . +LDCONFIG=/sbin/ldconfig +LN_S=ln -s +RM=rm -f + +GCJFLAGS=-O2 -fPIC -fjni -shared + +LINK=$(GCJ) $(GCJFLAGS) -o $@ -Wl,-soname=lib$*.so.$(SONAME_VERSION) + +# Build without Jars +#all: +# $(MAKE) -f make_linux.mak make_swt make_atk make_cairo + +# Build with Jars +all: $(JAVA) + $(MAKE) -f make_linux.mak make_swt make_atk make_cairo + +# all: $(JAVA) $(LIBRARIES) +# $(MAKE) -f make_linux.mak make_swt make_atk make_gnome make_mozilla + +clean distclean: + $(RM) $(CLEANFILES) + $(RM) -r swt swt-pi swt-mozilla + -$(MAKE) -f make_linux.mak clean + +.PHONY: all clean distclean + +swt.files: + find org -name *.java \ + -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 \ + -name *.java | sort > $@ + +swt-pi.files: + find org/eclipse/swt/internal -name *.java \ + -not -path org/eclipse/swt/internal/mozilla\* | sort > $@ + +%-stamp: %.files + mkdir -p $* + for i in `cat $<`; do \ + if [ -e $*/$${i%java}class ]; then \ + echo SKIPPING $$i; \ + else \ + echo $(JAVAC) -d $* $$i; \ + $(JAVAC) -d $* $$i || exit $$?; \ + fi \ + done + touch $@ + +%.jar: %-stamp + $(JAR) -C $* -cf $@ . + +lib%.so.$(RELEASE): %.jar + $(LINK) $< + $(LDCONFIG) -n . + +%.so: %.so.$(RELEASE) + $(LN_S) -f $< $@ + +swt-gtk-$(RELEASE).jar: swt.jar swt-pi.jar swt-mozilla.jar + mkdir _jar + cd _jar && for i in $^; do $(JAR) -xf ../$$i || exit $$?; done + $(JAR) -C _jar -cf $@ org + rm -rf _jar + +.SECONDARY: |