2001-08-27 09:16:18 -05:00
|
|
|
|
|
|
|
# --- Settings -----------------------------------------------------
|
|
|
|
|
|
|
|
.INCLUDE : settings.mk
|
|
|
|
|
|
|
|
|
|
|
|
.IF "$(J2EE_HOME)"==""
|
|
|
|
J2EE_HOME=$(SOLARROOT)$/j2sdkee1.2
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
# --- ANT build environment ---------------------------------------
|
|
|
|
|
2001-09-25 11:38:16 -05:00
|
|
|
ANT_HOME=$(SOLARBINDIR)
|
|
|
|
|
2001-08-30 06:48:05 -05:00
|
|
|
.IF "$(ANT_OPTIONAL)" ==""
|
2001-09-25 11:38:16 -05:00
|
|
|
ANT_OPTIONAL=$(SOLARBINDIR)$/jakarta-ant-1.4-optional.jar
|
2001-08-30 06:48:05 -05:00
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
.IF "$(ANT_CLASSPATH)"==""
|
2001-12-07 11:51:22 -06:00
|
|
|
ANT_CLASSPATH:=$(SOLARBINDIR)$/xerces.jar$(PATH_SEPERATOR)$(CLASSDIR)$/xerces.jar$(PATH_SEPERATOR)$/$(SOLARBINDIR)$/jaxp.jar$(PATH_SEPERATOR)$/$(SOLARBINDIR)$/ant.jar$(PATH_SEPERATOR)$(ANT_OPTIONAL)$(PATH_SEPERATOR)$/$(SOLARBINDIR)$/junit.jar$(PATH_SEPERATOR)$(CLASSDIR)$/ant.jar
|
2001-08-30 06:48:05 -05:00
|
|
|
.IF "$(ANTPRJ_BOOTSTRAP)"==""
|
|
|
|
ANT_CLASSPATH!:=$(ANT_CLASSPATH)$(PATH_SEPERATOR)$(SOLARBINDIR)$/antprj.jar
|
|
|
|
.ENDIF
|
2001-08-27 09:16:18 -05:00
|
|
|
.ENDIF
|
|
|
|
|
2001-09-26 08:46:22 -05:00
|
|
|
ANT=java -Xmx128m org.apache.tools.ant.Main -Djava.home=$(JAVA_HOME) -Dant.home=$(ANT_HOME)
|
2001-08-27 09:16:18 -05:00
|
|
|
|
|
|
|
.IF "$(ANT_BUILDFILE)"==""
|
|
|
|
ANT_BUILDFILE=build.xml
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
.IF "$(ANT_DEBUG)"==""
|
|
|
|
.IF "$(debug)"==""
|
|
|
|
ANT_DEBUG=off
|
|
|
|
.ELSE
|
|
|
|
ANT_DEBUG=on
|
|
|
|
.ENDIF
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
.IF "$(ANT_OPT)"==""
|
|
|
|
.IF "$(optimize)"==""
|
|
|
|
ANT_OPT=off
|
|
|
|
.ELSE
|
|
|
|
ANT_OPT=on
|
|
|
|
.ENDIF
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
.IF "$(wdkbuild)"==""
|
2001-09-25 11:38:16 -05:00
|
|
|
ANT_FLAGS!:=-Dprj=$(PRJ) -Dprjname=$(PRJNAME) -Ddebug=$(ANT_DEBUG) -Doptimize=$(ANT_OPT) -Dtarget=$(TARGET) -Dsolar.update=on -Dout=$(OUT) -Dinpath=$(INPATH) -Dproext=$(PROEXT) -Dsolar.bin=$(SOLARBINDIR) -Dsolar.jar=$(SOLARBINDIR) -Dsolar.doc=$(SOLARDOCDIR) -f $(ANT_BUILDFILE) $(ANT_FLAGS) -emacs
|
2001-08-27 09:16:18 -05:00
|
|
|
.ELSE
|
2001-09-25 11:38:16 -05:00
|
|
|
ANT_FLAGS!:=-f $(ANT_BUILDFILE) -Dwdk.build=$(wdkbuild) $(ANT_FLAGS) -emacs -v
|
2001-08-27 09:16:18 -05:00
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
.INCLUDE : target.mk
|
|
|
|
|
|
|
|
CLASSPATH!:=$(CLASSPATH)$(PATH_SEPERATOR)$(ANT_CLASSPATH)$(PATH_SEPERATOR)$(JAVA_HOME)$/lib$/tools.jar
|
|
|
|
.EXPORT : CLASSPATH
|
|
|
|
|
|
|
|
# --- TARGETS -----------------------------------------------------
|
|
|
|
|
|
|
|
#$(CLASSDIR)$/solar.properties .PHONY:
|
|
|
|
$(CLASSDIR)$/solar.properties : $(SOLARENV)$/inc/minor.mk $(SOLARENV)$/inc/ant.properties
|
|
|
|
@echo Making: $@
|
|
|
|
.IF "$(GUI)"=="UNX"
|
|
|
|
@+echo solar.build="$(BUILD)" > $@
|
|
|
|
@+echo solar.rscversion="$(RSCVERSION)" >> $@
|
|
|
|
@+echo solar.rscrevision="$(RSCREVISION)" >> $@
|
|
|
|
@+echo solar.minor="$(LAST_MINOR)" >> $@
|
|
|
|
@+echo solar.sourceversion="$(SOURCEVERSION)" >> $@
|
|
|
|
@+echo solar.udkstamp="$(UDKSTAMP)" >> $@
|
|
|
|
@+echo solar.extstamp="$(EXTSTAMP)" >> $@
|
|
|
|
.ELSE
|
|
|
|
@+echo solar.build=$(BUILD) > $@
|
|
|
|
@+echo solar.rscversion=$(RSCVERSION) >> $@
|
|
|
|
@+echo solar.rscrevision=$(RSCREVISION) >> $@
|
|
|
|
@+echo solar.minor=$(LAST_MINOR) >> $@
|
|
|
|
@+echo solar.sourceversion=$(SOURCEVERSION) >> $@
|
|
|
|
@+echo solar.udkstamp=$(UDKSTAMP) >> $@
|
|
|
|
@+echo solar.extstamp=$(EXTSTAMP) >> $@
|
|
|
|
.ENDIF
|
|
|
|
@+cat $(DMAKEROOT)$/../ant.properties >> $@
|
|
|
|
|
|
|
|
ANTBUILD .PHONY:
|
|
|
|
$(ANT) $(ANT_FLAGS)
|
|
|
|
|
|
|
|
clean .PHONY:
|
|
|
|
$(ANT) $(ANT_FLAGS) $@
|
|
|
|
|
|
|
|
prepare .PHONY:
|
|
|
|
$(ANT) $(ANT_FLAGS) $@
|
|
|
|
|
|
|
|
main:
|
|
|
|
$(ANT) $(ANT_FLAGS) $@
|
|
|
|
|
|
|
|
info:
|
|
|
|
$(ANT) $(ANT_FLAGS) $@
|
|
|
|
|
|
|
|
jar .PHONY:
|
|
|
|
$(ANT) $(ANT_FLAGS) $@
|
|
|
|
|
2001-08-27 09:44:08 -05:00
|
|
|
compile .PHONY:
|
2002-02-21 08:29:42 -06:00
|
|
|
$(ANT) $(ANT_FLAGS) $@
|
2001-08-27 09:44:08 -05:00
|
|
|
|
2001-08-27 09:16:18 -05:00
|
|
|
javadoc .PHONY:
|
|
|
|
$(ANT) $(ANT_FLAGS) $@
|
|
|
|
|
2001-08-27 09:44:08 -05:00
|
|
|
config .PHONY:
|
|
|
|
$(ANT) $(ANT_FLAGS) $@
|
2001-08-27 09:16:18 -05:00
|
|
|
|
|
|
|
test:
|
|
|
|
$(ANT) $(ANT_FLAGS) $@
|
|
|
|
|
|
|
|
|