Changeset 3a1c042c for Makefile.gcj


Ignore:
Timestamp:
Sep 16, 2009 2:51:39 PM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
2dd650d
Parents:
ca81c35
Message:

gcj makefile fixups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile.gcj

    rca81c35 r3a1c042c  
    66EXTRA_LD_PATH= #/usr/local/gcc-4.0.2/lib
    77ANT=ant #/opt/apache-ant-1.6.5/bin/ant
    8 ANT_TARGET=buildclean
     8ANT_TARGET=build2
    99NATIVE_DIR=native
    1010
     
    2525JAR_ROUTER=router.jar
    2626JAR_JBIGI=jbigi.jar
    27 JAR_XML=xml-apis.jar resolver.jar xercesImpl.jar
    2827JAR_CONSOLE=\
    29             i2psnark.jar \
    3028            javax.servlet.jar \
    3129            commons-el.jar \
    3230            commons-logging.jar \
    3331            jasper-runtime.jar \
    34             ant-apache-bcel.jar \
    35             ant.jar \
    3632            jasper-compiler.jar \
    3733            org.mortbay.jetty.jar \
    3834            routerconsole.jar
    39 JAR_SUCKER=jdom.jar rome-0.7.jar sucker.jar
    4035LIBI2P_JARS=${JAR_BASE} ${JAR_CLIENTS} ${JAR_ROUTER} ${JAR_JBIGI}
     36LIBSAM_JARS=${JAR_BASE} sam.jar
     37LIBROUTER_JARS=i2p.jar ${JAR_ROUTER} ${JAR_JBIGI}
     38LIBCONSOLE_JARS=${LIBROUTER_JARS} ${JAR_CONSOLE}
     39LIBSNARK_JARS=${LIBROUTER_JARS} i2psnark.jar
     40# update:
     41# similar error with gcj 4.3.3.
     42#
    4143# unfortunately, its not quite ready for most end users, as the
    4244# ${JAR_CONSOLE} fails to compile with:
     
    9698
    9799libi2p.so:
    98         @echo "* Building libi2p.so"
    99         @(cd build ; time ${GCJ} ${OPTIMIZE} -fPIC -fjni -shared -o ../${NATIVE_DIR}/libi2p.so ${LIBI2P_JARS} ; cd .. )
    100         @ls -l ${NATIVE_DIR}/libi2p.so
    101         @echo "* libi2p.so built"
     100        @echo "* Building $@"
     101        @(cd build ; time ${GCJ} ${OPTIMIZE} -fPIC -fjni -shared -o ../${NATIVE_DIR}/$@ ${LIBI2P_JARS} ; cd .. )
     102        @ls -l ${NATIVE_DIR}/$@
     103        @echo "* $@ built"
     104
     105sam: jars libi2psam.so
     106
     107libi2psam.so:
     108        @echo "* Building $@"
     109        @rm -f ${NATIVE_DIR}/$@
     110        @(cd build ; time ${GCJ} ${OPTIMIZE} -fPIC -fjni -shared -o ../${NATIVE_DIR}/$@ ${LIBSAM_JARS} ; cd .. )
     111        @ls -l ${NATIVE_DIR}/$@
     112        @echo "* $@ built"
     113
     114router: jars libi2prouter.so
     115
     116libi2prouter.so:
     117        @echo "* Building $@"
     118        @rm -f ${NATIVE_DIR}/$@
     119        @(cd build ; time ${GCJ} ${OPTIMIZE} -fPIC -fjni -shared -o ../${NATIVE_DIR}/$@ ${LIBROUTER_JARS} ; cd .. )
     120        @ls -l ${NATIVE_DIR}/$@
     121        @echo "* $@ built"
     122
     123console: jars libi2pconsole.so
     124
     125# doesn't work, see above
     126libi2pconsole.so:
     127        @echo "* Building $@"
     128        @rm -f ${NATIVE_DIR}/$@
     129        @(cd build ; time ${GCJ} ${OPTIMIZE} -fPIC -fjni -shared -o ../${NATIVE_DIR}/$@ ${LIBCONSOLE_JARS} ; cd .. )
     130        @ls -l ${NATIVE_DIR}/$@
     131        @echo "* $@ built"
     132
Note: See TracChangeset for help on using the changeset viewer.