# ======================================================================= # # Define extension variables. CLEANFILES= POSTTARGETS= # ======================================================================= # # Default Target default: all # ======================================================================= # # Include configuration and extension rules. include config.mk ifneq ($(wildcard mkext/*.mk),) include mkext/*.mk endif # Adding Extensions: # You can add arbitrary additional rules by putting them in files of the # form mkext/$(FOO).mk, I suggest a simulator sim.mk containing something # like: # # MIDPSIM=??? # POSTTARGETS+=run_sim # run_sim: project # $(MIDPSIM) $(NAME).jar # # ======================================================================= # all: project post project: build-preverified post: $(POSTTARGETS) # ======================================================================= # build-classes: rm -rf build/classes/*.class; mkdir -p build/classes; \ javac -bootclasspath $(MIDP_CLASSPATH) \ -target 1.1 -d build/classes/ src/*.java build-preverified: build-classes rm -rf build/preverified/*.class; mkdir -p build/preverified; \ $(PREVERIFY) -cldc -classpath $(MIDP_CLASSPATH) \ -d build/preverified build/classes && \ cp icon.png mbook-readme.txt build/preverified # ======================================================================= # # Cleanup clean: rm -rf $(CLEANFILES) # ======================================================================= # # Prevent Make from Zapping intermediate files. .SECONDARY: # ======================================================================= #