Changeset 453ecc4


Ignore:
Timestamp:
Nov 26, 2005 5:19:29 PM (15 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
fbf1705
Parents:
d1f2b44
git-author:
jrandom <jrandom> (11/26/05 17:19:29)
git-committer:
zzz <zzz@…> (11/26/05 17:19:29)
Message:

Further improvements, and works fine for ubergeeks, but not yet for normal
geeks (aka no router console)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile.gcj

    rd1f2b44 r453ecc4  
    2525JAR_ROUTER=router.jar
    2626JAR_JBIGI=jbigi.jar
     27JAR_XML=xml-apis.jar resolver.jar xercesImpl.jar
     28JAR_CONSOLE=\
     29            javax.servlet.jar \
     30            commons-el.jar \
     31            commons-logging.jar \
     32            jasper-runtime.jar \
     33            ant-apache-bcel.jar \
     34            ant.jar \
     35            jasper-compiler.jar \
     36            org.mortbay.jetty.jar \
     37            routerconsole.jar
     38JAR_SUCKER=jdom.jar rome-0.7.jar sucker.jar
    2739LIBI2P_JARS=${JAR_BASE} ${JAR_CLIENTS} ${JAR_ROUTER} ${JAR_JBIGI}
     40# unfortunately, its not quite ready for most end users, as the
     41# ${JAR_CONSOLE} fails to compile with:
     42# org/apache/commons/logging/impl/LogKitLogger.java: In class 'org.apache.commons.logging.impl.LogKitLogger':
     43# .../LogKitLogger.java: In constructor '(java.lang.String)':
     44# .../LogKitLogger.java:91: error: cannot find file for class org.apache.log.Hierarchy
     45# .../LogKitLogger.java:91: error: cannot find file for class org.apache.log.Hierarchy
     46# .../LogKitLogger.java:104: error: cannot find file for class org.apache.log.Hierarchy
     47# .../LogKitLogger.java:104: confused by earlier errors, bailing out
    2848
    29 SYSTEM_PROPS=
     49#${JAR_CONSOLE}\
     50#${JAR_XML} \
     51#${JAR_SUCKER}
     52#${JAR_CONSOLE}
     53
     54SYSTEM_PROPS=-DloggerFilenameOverride=logs/log-router-@.txt \
     55             -Dorg.mortbay.http.Version.paranoid=true \
     56             -Dorg.mortbay.util.FileResource.checkAliases=false \
     57             -Dorg.mortbay.xml.XmlParser.NotValidating=true
    3058#SYSTEM_PROPS=-Di2p.weakPRNG=true
     59OPTIMIZE=-O2
     60#OPTIMIZE=-O3
    3161
    3262LD_LIBRARY_PATH=${EXTRA_LD_PATH}:.
     
    4878
    4979native_shared: libi2p.so
    50         @cd build ; ${GCJ} -fjni -L../${NATIVE_DIR} -li2p ${SYSTEM_PROPS} -o ../${NATIVE_DIR}/i2p_dsa --main=net.i2p.crypto.DSAEngine
     80        @cd build ; ${GCJ} ${OPTIMIZE} -fjni -L../${NATIVE_DIR} -li2p ${SYSTEM_PROPS} -o ../${NATIVE_DIR}/i2p_dsa --main=net.i2p.crypto.DSAEngine
    5181        @echo "* i2p_dsa is a simple test app with the DSA engine and Fortuna PRNG to make sure crypto is working"
    52         @cd build ; ${GCJ} -fjni -L../${NATIVE_DIR} -li2p ${SYSTEM_PROPS} -o ../${NATIVE_DIR}/i2ptunnel --main=net.i2p.i2ptunnel.I2PTunnel
     82        @cd build ; ${GCJ} ${OPTIMIZE} -fjni -L../${NATIVE_DIR} -li2p ${SYSTEM_PROPS} -o ../${NATIVE_DIR}/prng --main=gnu.crypto.prng.Fortuna
     83        @cd build ; ${GCJ} ${OPTIMIZE} -fjni -L../${NATIVE_DIR} -li2p ${SYSTEM_PROPS} -o ../${NATIVE_DIR}/i2ptunnel --main=net.i2p.i2ptunnel.I2PTunnel
    5384        @echo "* i2ptunnel is mihi's I2PTunnel CLI"
    5485        @echo "  run it as ./i2ptunnel -cli to avoid awt complaints"
    55         @cd build ; ${GCJ} -fjni -L../${NATIVE_DIR} -li2p ${SYSTEM_PROPS} -o ../${NATIVE_DIR}/i2ptunnelctl --main=net.i2p.i2ptunnel.TunnelControllerGroup
     86        @cd build ; ${GCJ} ${OPTIMIZE} -fjni -L../${NATIVE_DIR} -li2p ${SYSTEM_PROPS} -o ../${NATIVE_DIR}/i2ptunnelctl --main=net.i2p.i2ptunnel.TunnelControllerGroup
    5687        @echo "* i2ptunnelctl is a controller for I2PTunnel, reading i2ptunnel.config"
    5788        @echo "  and launching the appropriate proxies"
    58         @cd build ; ${GCJ} -fjni -L../${NATIVE_DIR} -li2p ${SYSTEM_PROPS} -o ../${NATIVE_DIR}/i2psnark --main=org.klomp.snark.Snark
     89        @cd build ; ${GCJ} ${OPTIMIZE} -fjni -L../${NATIVE_DIR} -li2p ${SYSTEM_PROPS} -o ../${NATIVE_DIR}/i2psnark --main=org.klomp.snark.Snark
    5990        @echo "* i2psnark is an anonymous bittorrent client"
    60         @cd build ; ${GCJ} -fjni -L../${NATIVE_DIR} -li2p ${SYSTEM_PROPS} -o ../${NATIVE_DIR}/i2prouter --main=net.i2p.router.Router
     91        @cd build ; ${GCJ} ${OPTIMIZE} -fjni -L../${NATIVE_DIR} -li2p ${SYSTEM_PROPS} -o ../${NATIVE_DIR}/i2prouter --main=net.i2p.router.Router
    6192        @echo "* i2prouter is the main I2P router"
    6293        @echo "  it can be used, and while the router console won't load,"
     
    6596libi2p.so:
    6697        @echo "* Building libi2p.so"
    67         @(cd build ; ${GCJ} -fPIC -fjni -shared -o ../${NATIVE_DIR}/libi2p.so ${LIBI2P_JARS} ; cd .. )
     98        @(cd build ; ${GCJ} ${OPTIMIZE} -fPIC -fjni -shared -o ../${NATIVE_DIR}/libi2p.so ${LIBI2P_JARS} ; cd .. )
    6899        @ls -l ${NATIVE_DIR}/libi2p.so
    69100        @echo "* libi2p.so built"
Note: See TracChangeset for help on using the changeset viewer.