home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / kaffe-0.5p4-src.tgz / tar.out / contrib / kaffe / win32 / lib / awt / make.vc.in < prev   
Text File  |  1996-09-28  |  3KB  |  106 lines

  1. # Makefile.in for kaffevm - a Java(tm) compatible virtual machine.
  2. # for MSVC
  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. srcdir=        @srcdir@
  12. prefix=        @prefix@
  13. exec_prefix=    @exec_prefix@
  14. libdir=        @libdir@
  15. INSTALL=    @INSTALL@
  16. INSTALL_DATA=    @INSTALL_DATA@
  17. CC=        @CC@
  18. PIC=        @PIC@
  19. LDFLAGS=    @LIBSHARE@
  20. LDTAIL=        @LDTAIL@
  21. KVER=        @KVER@
  22. OBJEXT=@OBJEXT@
  23. LIBEXT=@LIBEXT@
  24.  
  25. LINK32=link.exe
  26.  
  27. CFLAGS=        @CFLAGS@ -I$(srcdir) -I../support -I$(srcdir)/../support -I../../config -I$(srcdir)/../../config
  28.  
  29. LIBNAME=    libkaffe_tawt
  30. LIBX=        $(LIBNAME)$(LIBEXT).$(KVER)
  31. LLIB=        $(LIBNAME)$(LIBEXT)
  32.  
  33. OBJECT=    TinyEventThreadStub$(OBJEXT) \
  34.         TinyEventThread$(OBJEXT) \
  35.         TinyFontMetricsStub$(OBJEXT) \
  36.         TinyFontMetrics$(OBJEXT) \
  37.         TinyGraphicsStub$(OBJEXT) \
  38.         TinyGraphics$(OBJEXT) \
  39.         TinyInputThreadStub$(OBJEXT) \
  40.         TinyInputThread$(OBJEXT) \
  41.         TinyToolkitStub$(OBJEXT) \
  42.         TinyToolkit$(OBJEXT) \
  43.         TinyWindowStub$(OBJEXT) \
  44.         TinyWindow$(OBJEXT)
  45.  
  46. all:    links $(LLIB)
  47.  
  48. {$(srcdir)/sun.awt.tiny}.c$(OBJEXT):
  49.         $(CC) $(CFLAGS) -c $(PIC) $<
  50.  
  51. {$(srcdir)/sun.awt.tiny.stubs}.c$(OBJEXT):
  52.         $(CC) $(CFLAGS) -c $(PIC) $<
  53.  
  54. {.}.c$(OBJEXT):
  55.         $(CC) $(CFLAGS) -c $(PIC) $<
  56.  
  57. LINK32_FLAGS=../../kaffevm/libkaffe_vm.lib kernel32.lib user32.lib gdi32.lib winspool.lib\
  58.  comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib\
  59.  odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /incremental:yes\
  60.  /pdb:$(LIBNAME).pdb /debug /machine:I386 /def:$(LIBNAME).def\
  61.  /out:$(LLIB) /implib:$(LIBNAME).lib 
  62. DEF_FILE= \
  63.     $(LIBNAME).def
  64.  
  65. $(LLIB) : $(DEF_FILE) $(OBJECT)
  66.     $(LINK32) @<<
  67.   $(LINK32_FLAGS) $(OBJECT)
  68. <<
  69.  
  70.  
  71. links:        ..\support\jtypes.h $(LIBNAME).def ..\..\config\config.h
  72.  
  73. ..\support\jtypes.h:    ..\..\..\config\i386\win32\msvc\jtypes.h
  74.         copy ..\..\..\config\i386\win32\msvc\jtypes.h ..\support\jtypes.h
  75.  
  76. $(LIBNAME).def: ..\..\..\config\i386\win32\msvc\$(LIBNAME).def
  77.         copy ..\..\..\config\i386\win32\msvc\$(LIBNAME).def $(LIBNAME).def
  78.  
  79. ..\..\config\config.h:    ..\..\..\config\i386\win32\msvc\config.h
  80.         copy ..\..\..\config\i386\win32\msvc\config.h ..\..\config\config.h
  81.  
  82.  
  83. clean:
  84.         del *.obj
  85.         del *.lib
  86.         del *.dll
  87.     -@erase $(LIBNAME).dll
  88.     -@erase $(LIBNAME).exp
  89.     -@erase $(LIBNAME).ilk
  90.     -@erase $(LIBNAME).lib
  91.     -@erase $(LIBNAME).pdb
  92.     -@erase vc40.idb
  93.     -@erase vc40.pdb
  94.     -@erase vc41.pch
  95.  
  96. distclean:    clean
  97.         del ..\support\jtypes.h
  98.         del $(LIBNAME).def
  99.         del ..\..\config\config.h
  100.         del Makefile
  101.  
  102. install:
  103.         if not exist "$(libdir)/$(NULL)" mkdir "$(libdir)"
  104.         $(INSTALL_DATA) $(LLIB) $(libdir)/$(LLIB)
  105.         del $(libdir)/$(LLIB)
  106.