home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 39 / IOPROG_39.ISO / SOFT / sdkjava40.exe / data1.cab / fg_Samples / Samples / Native / Invocation / makefile < prev    next >
Encoding:
Makefile  |  2000-05-04  |  1.1 KB  |  51 lines

  1. # ------------------------------------------------------------------------------
  2. #
  3. #       (C) Copyright 1995 - 1999 Microsoft Corporation.  All rights reserved.
  4. #
  5. # ------------------------------------------------------------------------------
  6.  
  7. SAMPROOT    = ..\..
  8.  
  9. SDKROOT         = ..\$(SAMPROOT)
  10.  
  11. TARGET          = invokevm
  12.  
  13. build        = retail
  14.  
  15. CC        = cl.exe
  16. LINK        = link.exe
  17. JVC        = jvc.exe
  18.  
  19. PACKROOT    = ..
  20.  
  21. JVCSW        = -nomessage -x- -nologo
  22.  
  23. CFLAGSALL       = -c -I $(SDKROOT)\include
  24. LFLAGSALL    = 
  25.  
  26. LIBS            = $(SDKROOT)\lib\i386\msjava.lib \
  27.                   ole32.lib
  28.  
  29. !IF "$(build)" == "debug"
  30.  
  31. CFLAGS        = $(CFLAGSALL) -MLd -Zi -Fd$(TARGET).pdb
  32. LINKFLAGS    = $(LFLAGSALL) -debug -pdb:$(TARGET).pdb
  33.  
  34. !ELSE
  35.  
  36. CFLAGS        = $(CFLAGSALL)
  37. LINKFLAGS    = $(LFLAGSALL)
  38.  
  39. !ENDIF
  40.  
  41. all :   $(TARGET).exe TestClass.class
  42.  
  43. $(TARGET).exe : $(TARGET).obj
  44.         $(LINK) $(LINKFLAGS) $(LIBS) $(TARGET).obj -implib:$(TARGET).lib -out:$(TARGET).exe
  45.  
  46. $(TARGET).obj : $(TARGET).c
  47.     $(CC) $(CFLAGS) $(TARGET).c
  48.  
  49. TestClass.class: TestClass.java
  50.         $(JVC) TestClass.java
  51.