Makefile.jawt.in 951 B

123456789101112131415161718192021222324252627282930
  1. # @configure_input@
  2. prefix = @prefix@
  3. exec_prefix = @exec_prefix@
  4. includedir = @includedir@
  5. libdir = @libdir@
  6. pkglibdir = $(libdir)/@PACKAGE@
  7. all: gnu/classpath/examples/jawt/DemoJAWT.class libDemoJAWT.so
  8. @echo "RUN with:"
  9. @echo " LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:.:$(pkglibdir) jamvm \\"
  10. @echo " gnu.classpath.examples.jawt.DemoJAWT"
  11. gnu/classpath/examples/jawt/DemoJAWT.class: gnu/classpath/examples/jawt/DemoJAWT.java
  12. gcj -C gnu/classpath/examples/jawt/DemoJAWT.java
  13. DemoJAWT.h: gnu/classpath/examples/jawt/DemoJAWT.class
  14. gcjh -jni gnu.classpath.examples.jawt.DemoJAWT -o DemoJAWT.h
  15. libDemoJAWT.so: gnu/classpath/examples/jawt/DemoJAWT.c DemoJAWT.h
  16. gcc -g -O0 -Wall -I. -I/usr/X11R6/include -L. -L/usr/X11R6/lib \
  17. -I$(includedir) -L$(pkglibdir) \
  18. -lX11 -ljawtgnu -shared -o libDemoJAWT.so \
  19. gnu/classpath/examples/jawt/DemoJAWT.c
  20. clean:
  21. rm -f DemoJAWT.h
  22. rm -f gnu/classpath/examples/jawt/DemoJAWT*.class
  23. rm -f libDemoJAWT.so