Retro68/gcc/libjava/classpath/examples/Makefile.jawt.in
Wolfgang Thaller aaf905ce07 add gcc 4.70
2012-03-28 01:13:14 +02:00

30 lines
951 B
Makefile

# @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