# examples/Makefile.jawt.  Generated from Makefile.jawt.in by configure.

prefix = /usr/local
exec_prefix = ${prefix}
includedir = ${prefix}/include
libdir = ${exec_prefix}/lib
pkglibdir = $(libdir)/classpath

all: gnu/classpath/examples/jawt/DemoJAWT.class libDemoJAWT.so
	@echo "RUN with:"
	@echo "  LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:.:$(pkglibdir) jamvm \\"
	@echo "    gnu.classpath.examples.jawt.DemoJAWT"

gnu/classpath/examples/jawt/DemoJAWT.class: gnu/classpath/examples/jawt/DemoJAWT.java
	gcj -C gnu/classpath/examples/jawt/DemoJAWT.java

DemoJAWT.h: gnu/classpath/examples/jawt/DemoJAWT.class
	gcjh -jni gnu.classpath.examples.jawt.DemoJAWT -o DemoJAWT.h

libDemoJAWT.so: gnu/classpath/examples/jawt/DemoJAWT.c DemoJAWT.h
	gcc -g -O0 -Wall -I. -I/usr/X11R6/include -L. -L/usr/X11R6/lib \
	-I$(includedir) -L$(pkglibdir) \
	-lX11 -ljawtgnu -shared -o libDemoJAWT.so \
	gnu/classpath/examples/jawt/DemoJAWT.c

clean:
	rm -f DemoJAWT.h
	rm -f gnu/classpath/examples/jawt/DemoJAWT*.class
	rm -f libDemoJAWT.so
