head	1.6;
access;
symbols;
locks
	hatch:1.6; strict;
comment	@# @;


1.6
date	2002.05.08.20.52.37;	author hatch;	state Exp;
branches;
next	1.5;

1.5
date	2002.05.08.20.47.52;	author hatch;	state Exp;
branches;
next	1.4;

1.4
date	2001.12.18.21.53.48;	author hatch;	state Exp;
branches;
next	1.3;

1.3
date	2001.12.14.04.36.12;	author hatch;	state Exp;
branches;
next	1.2;

1.2
date	2001.12.11.21.08.12;	author hatch;	state Exp;
branches;
next	1.1;

1.1
date	2001.08.22.04.36.48;	author hatch;	state Exp;
branches;
next	;


desc
@@


1.6
log
@change html to php
@
text
@# If you don't have javacpp,
# get it from http://www.hadron.org/~dhatch/.
# You'll also need cpp.

.PHONY: all
all: MipFilterApplet.jar


JAVAC = jikes -g -classpath /usr/java/jdk1.3.1/jre/lib/rt.jar
#JAVAC = jikes -g -classpath /usr/java/j2sdk1.4.0/jre/lib/rt.jar
#JAVAC = javac -g
# XXX kaffe just dumps core on my system
#JAVAC = kaffe -g -classpath /usr/java/j2sdk1.4.0/jre/lib/rt.jar

# XXX the -DMAIN following should probably be removed for production version
CPPFLAGS = -DMAIN

CLASSES= \
	MipFilterApplet.class \
        MyGraphics.class  \
        VecMath.class \
        MyMath.class \
        Format.class \
	${NULL}
# classes which which we don't need to build explicitly
# (they are built as side effects of other classes)
# but which need to be included in the jar file...
SUBCLASSES= \
        # MipFilterApplet'$$'*.class \
	${NULL}

.SUFFIXES: .prejava .class
.prejava.class:
	javacpp ${CPPFLAGS} ${JAVAC} $*.prejava
	javarenumber $*.class
MipFilterApplet.jar: ${CLASSES}
	(javarenumber ${SUBCLASSES} > /dev/null 2>&1 || true)
	jar cf MipFilterApplet.jar ${CLASSES} ${SUBCLASSES}
# XXX the javarenumber command above is a hack since I can't figure out
# XXX how to get it to do the right thing during compile time
MipFilterApplet.jar: Makefile

# Make sure modules are compiled in order of dependence...
MipFilterApplet.class: MyGraphics.class VecMath.class Format.class
MyGraphics.class: MyMath.class VecMath.class

${CLASSES}: macros.h

.PHONY: jar
jar:
	(cd ..; jar cvf MipFilterApplet.src.jar MipFilterApplet)

# XXX should automate this better. currently the way to send
# XXX is to do this manually:
#       make clean
#       make jar
#       make
#       make send
# 
.PHONY: send
send:
	rrr "scp MipFilterApplet.php MipFilterApplet.jar ../MipFilterApplet.src.jar www.hadron.org:public_html"

.PHONY: clean
clean:
	rm -f core *.jar *.class *.java.lines *.java
@


1.5
log
@sync with HLerpApplet
@
text
@d62 1
a62 1
	rrr "scp MipFilterApplet.html MipFilterApplet.jar ../MipFilterApplet.src.jar www.hadron.org:public_html"
@


1.4
log
@*** empty log message ***
@
text
@d8 3
a10 1
JAVAC = jikes -g -classpath /usr/java/j2sdk1.4.0/jre/lib/rt.jar
d22 1
d45 1
@


1.3
log
@add VecMath
@
text
@d49 7
@


1.2
log
@remove cruft
@
text
@d19 1
d41 1
a41 1
MipFilterApplet.class: MyGraphics.class Format.class
@


1.1
log
@Initial revision
@
text
@d19 7
a33 1
	echo jar cf MipFilterApplet.jar ${CLASSES} ${SUBCLASSES}
d40 1
a40 2
# XXX don't need most of the crap in HyperbolicUtils
MipFilterApplet.class: MyGraphics.class
@
