pluotsorbet/java/Makefile

28 строки
1.2 KiB
Makefile
Исходник Обычный вид История

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
JPP_SRCS=$(shell find . -name *.jpp)
JPP_DESTS=$(JPP_SRCS:.jpp=.java)
EXTRA=$(shell find . -name *.png) $(shell find . -name *.bin) $(shell find . -name *.xml)
2014-07-30 04:02:28 +04:00
VPATH=./cldc1.1.1 ./vm ./midp ./custom
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
cd build && jar cvf0 ../classes.jar *
2014-10-23 05:01:16 +04:00
jar uvf0 classes.jar $(EXTRA)
rm -rf build build-src
2014-07-18 19:18:20 +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-07-18 19:18:20 +04:00
clean:
rm -f `find . -name "*.jar" -or -name "*~"` $(JPP_DESTS)