home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / kaffe-0.5p4-src.tgz / tar.out / contrib / kaffe / lib / native / Makefile.in
Makefile  |  1996-10-03  |  3KB  |  108 lines

  1. # Native support for standard Java libraries
  2. #
  3. # Copyright (c) 1996 Systems Architecture Research Centre,
  4. #           City University, London, UK.
  5. #
  6. # See the file "license.terms" for information on usage and redistribution
  7. # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
  8. #
  9. # Written by Tim Wilkinson <tim@sarc.city.ac.uk>, February 1996.
  10.  
  11. @VPATHOPT@=    @srcdir@/java.io@VPATHSEP@@srcdir@/java.lang@VPATHSEP@@srcdir@/java.util@VPATHSEP@@srcdir@/java.io.stubs@VPATHSEP@@srcdir@/java.lang.stubs@VPATHSEP@@srcdir@/java.util.stubs
  12. srcdir=        @srcdir@
  13. prefix=        @prefix@
  14. exec_prefix=    @exec_prefix@
  15. libdir=        @libdir@
  16. CC=        @CC@
  17. AR=        @AR@
  18. AR_FLAGS=    cr
  19. RANLIB=        @RANLIB@
  20. CFLAGS=        @CFLAGS@ -I$(srcdir) -I../support -I$(srcdir)/../support -I../../config -I$(srcdir)/../../config
  21. INSTALL=    @INSTALL@
  22. INSTALL_DATA=    @INSTALL_DATA@
  23. LN=        @LN_S@
  24. PIC=        @PIC@
  25. LDFLAGS=    @LIBSHARE@
  26. LDTAIL=        @LDTAIL@
  27. KVER=        @KVER@
  28. OBJEXT=        @OBJEXT@
  29. LIBEXT=        @LIBEXT@
  30.  
  31. LIBNAME=    libkaffe_native
  32. LIB=        $(LIBNAME)$(LIBEXT).$(KVER)
  33. LLIB=        $(LIBNAME)$(LIBEXT)
  34.  
  35. OBJECT.IO=    FileDescriptorStub$(OBJEXT) \
  36.         FileDescriptor$(OBJEXT) \
  37.         FileInputStreamStub$(OBJEXT) \
  38.         FileInputStream$(OBJEXT) \
  39.         FileOutputStreamStub$(OBJEXT) \
  40.         FileOutputStream$(OBJEXT) \
  41.         FileStub$(OBJEXT) \
  42.         File$(OBJEXT) \
  43.         RandomAccessFileStub$(OBJEXT) \
  44.         RandomAccessFile$(OBJEXT)
  45.  
  46. OBJECT.LANG=    ClassLoaderStub$(OBJEXT) \
  47.         ClassLoader$(OBJEXT) \
  48.         ClassStub$(OBJEXT) \
  49.         Class$(OBJEXT) \
  50.         CompilerStub$(OBJEXT) \
  51.         Compiler$(OBJEXT) \
  52.         DoubleStub$(OBJEXT) \
  53.         Double$(OBJEXT) \
  54.         FloatStub$(OBJEXT) \
  55.         Float$(OBJEXT) \
  56.         MathStub$(OBJEXT) \
  57.         Math$(OBJEXT) \
  58.         ObjectStub$(OBJEXT) \
  59.         Object$(OBJEXT) \
  60.         ProcessReaperStub$(OBJEXT) \
  61.         ProcessReaper$(OBJEXT) \
  62.         RuntimeStub$(OBJEXT) \
  63.         Runtime$(OBJEXT) \
  64.         SecurityManagerStub$(OBJEXT) \
  65.         SecurityManager$(OBJEXT) \
  66.         SystemStub$(OBJEXT) \
  67.         System$(OBJEXT) \
  68.         ThreadStub$(OBJEXT) \
  69.         Thread$(OBJEXT) \
  70.         ThrowableStub$(OBJEXT) \
  71.         Throwable$(OBJEXT) \
  72.         UNIXProcessStub$(OBJEXT) \
  73.         UNIXProcess$(OBJEXT)
  74.  
  75. OBJECT.UTIL=    DateStub$(OBJEXT) \
  76.         Date$(OBJEXT)
  77.  
  78. OBJECTS=    $(OBJECT.LANG) $(OBJECT.IO) $(OBJECT.UTIL)
  79.  
  80. all:        $(LLIB)
  81.  
  82. $(LLIB):        $(LIB)
  83.         rm -f $(LLIB)
  84.         $(LN) $(LIB) $(LLIB)
  85.  
  86. $(LIB):        $(OBJECTS)
  87.         if test "$(LIBEXT)" = ".a" ; then \
  88.             $(AR) $(AR_FLAGS) $(LIB) $(OBJECTS); \
  89.             $(RANLIB) $(LIB); \
  90.         else \
  91.             $(LD) $(LDFLAGS) -o $(LIB) $(OBJECTS) $(LDTAIL); \
  92.         fi
  93.  
  94. .c$(OBJEXT):
  95.         $(CC) $(CFLAGS) -c $(PIC) $<
  96.  
  97. clean:
  98.         rm -f $(LLIB) $(LIB) $(OBJECTS)
  99.  
  100. distclean:    clean
  101.         rm -f Makefile
  102.  
  103. install:
  104.         test -d $(libdir) || mkdir -p $(libdir)
  105.         $(INSTALL_DATA) $(LIB) $(libdir)/$(LIB)
  106.         rm -f $(libdir)/$(LLIB)
  107.         $(LN) $(LIB) $(libdir)/$(LLIB)
  108.