summaryrefslogtreecommitdiff
path: root/libjava/classpath/examples/Makefile.jawt.in
blob: aea41d4cb601e1f63a75d5836a6afe279e28b0c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# @configure_input@

prefix = @prefix@
exec_prefix = @exec_prefix@
includedir = @includedir@
libdir = @libdir@
pkglibdir = $(libdir)/@PACKAGE@

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