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 / net / Makefile.in
Makefile  |  1996-10-03  |  2KB  |  76 lines

  1. # Net 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.net@VPATHSEP@@srcdir@/java.net.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_net
  32. LIB=        $(LIBNAME)$(LIBEXT).$(KVER)
  33. LLIB=        $(LIBNAME)$(LIBEXT)
  34.  
  35. OBJECT.NET=    DatagramSocketStub$(OBJEXT) \
  36.         DatagramSocket$(OBJEXT) \
  37.         InetAddressStub$(OBJEXT) \
  38.         InetAddress$(OBJEXT) \
  39.         PlainSocketImplStub$(OBJEXT) \
  40.         PlainSocketImpl$(OBJEXT) \
  41.         SocketInputStreamStub$(OBJEXT) \
  42.         SocketInputStream$(OBJEXT) \
  43.         SocketOutputStreamStub$(OBJEXT) \
  44.         SocketOutputStream$(OBJEXT)
  45.  
  46. OBJECTS=    $(OBJECT.NET)
  47.  
  48. all:        $(LLIB)
  49.  
  50. $(LLIB):    $(LIB)
  51.         rm -f $(LLIB)
  52.         $(LN) $(LIB) $(LLIB)
  53.  
  54. $(LIB):         $(OBJECTS)
  55.         if test "$(LIBEXT)" = ".a" ; then \
  56.             $(AR) $(AR_FLAGS) $(LIB) $(OBJECTS); \
  57.             $(RANLIB) $(LIB); \
  58.         else \
  59.             $(LD) $(LDFLAGS) -o $(LIB) $(OBJECTS) $(LDTAIL); \
  60.         fi
  61.  
  62. .c$(OBJEXT):
  63.         $(CC) $(CFLAGS) -c $(PIC) $<
  64.  
  65. clean:
  66.         rm -f $(LLIB) $(LIB) $(OBJECTS)
  67.  
  68. distclean:    clean
  69.         rm -f Makefile
  70.  
  71. install:
  72.         test -d $(libdir) || mkdir -p $(libdir)
  73.         $(INSTALL_DATA) $(LIB) $(libdir)/$(LIB)
  74.         rm -f $(libdir)/$(LLIB)
  75.         $(LN) $(LIB) $(libdir)/$(LLIB)
  76.