2014-11-20 14:13:47 +03:00
|
|
|
SRCS=$(shell find ./cldc1.1.1 -name *.java) $(shell find ./vm -name *.java) $(shell find ./midp -name *.java) $(shell find ./jsr-075 -name *.java) $(shell find ./custom -name *.java)
|
2014-11-14 22:27:43 +03:00
|
|
|
JPP_DEFS=-DENABLE_JSR_205 -DENABLE_CHAMELEON -DENABLE_SSL -DENABLE_PUBLICKEYSTORE -DENABLE_JSR_211 -DENABLE_MULTIPLE_ISOLATES -DRECORD -DUSE_FILE_CONNECTION -DENABLE_JSR_234
|
2014-10-22 14:56:27 +04:00
|
|
|
JPP_SRCS=$(shell find . -name *.jpp)
|
|
|
|
JPP_DESTS=$(JPP_SRCS:.jpp=.java)
|
2014-08-01 05:29:17 +04:00
|
|
|
EXTRA=$(shell find . -name *.png) $(shell find . -name *.bin) $(shell find . -name *.xml)
|
2014-07-30 04:02:28 +04:00
|
|
|
|
2014-08-20 03:07:46 +04:00
|
|
|
VPATH=./cldc1.1.1 ./vm ./midp ./custom
|
2014-07-07 00:59:24 +04:00
|
|
|
|
2014-11-20 14:13:47 +03:00
|
|
|
classes.jar: $(SRCS) $(JPP_DESTS)
|
|
|
|
rm -rf build build-src
|
|
|
|
mkdir build build-src
|
|
|
|
cp -a cldc1.1.1/. vm/. midp/. jsr-075/. build-src/
|
|
|
|
cp -a custom/. build-src/
|
|
|
|
javac -cp build-src -source 1.3 -target 1.3 -bootclasspath "" -extdirs "" -d ./build `find ./build-src -name *.java` > /dev/null
|
2014-10-22 23:07:15 +04:00
|
|
|
cd build && jar cvf0 ../classes.jar *
|
2014-10-23 05:01:16 +04:00
|
|
|
jar uvf0 classes.jar $(EXTRA)
|
2014-11-20 14:13:47 +03:00
|
|
|
rm -rf build build-src
|
2014-07-18 19:18:20 +04:00
|
|
|
|
2014-10-22 14:56:27 +04:00
|
|
|
tools/Jpp.class: tools/Jpp.java
|
|
|
|
javac $^
|
|
|
|
|
|
|
|
# Preprocess all .jpp files to generate corresponding .java files.
|
|
|
|
$(JPP_DESTS): tools/Jpp.class $(JPP_SRCS)
|
2014-10-28 01:55:07 +03:00
|
|
|
$(foreach file,$(JPP_SRCS), java -classpath tools Jpp $(file) $(JPP_DEFS) -o $(file:.jpp=.java);)
|
2014-10-22 14:56:27 +04:00
|
|
|
|
2014-07-18 19:18:20 +04:00
|
|
|
clean:
|
2014-11-03 22:58:32 +03:00
|
|
|
rm -f `find . -name "*.jar" -or -name "*~"` $(JPP_DESTS)
|