home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / VCAFE.3.0A / Sample.bin / makefile < prev    next >
Makefile  |  1997-09-09  |  2KB  |  87 lines

  1. #
  2. # Makefile for building Win32 samples
  3. #
  4.  
  5. !if !defined( build )
  6. default :
  7.     @echo You must specify a debug or release build.  Do so with
  8.     @echo.
  9.     @echo    make build=debug 
  10.     @echo or
  11.     @echo    make build=release 
  12.     @echo.
  13.     @echo This will build all the samples except for the jni1 
  14.     @echo and jni2 directories which requires either a Microsoft VC 
  15.     @echo or a Symantec SC compiler to build.
  16.     @echo.
  17.     @echo If you have the proper C/C++ compiler and wanted to 
  18.     @echo build all samples including the jni samples, do so with
  19.     @echo.
  20.     @echo    make build=debug all
  21.     @echo or
  22.     @echo    make build=release all
  23.     @echo.
  24.     @echo Also, take note that if you are using Microsoft's VC compiler,
  25.     @echo you will need to use nmake instead of smake
  26.     @echo.
  27.     @echo You can delete compiler output with
  28.     @echo.
  29.     @echo    make build=debug clean 
  30.     @echo or
  31.     @echo    make build=release clean
  32.     @echo or
  33.     @echo    make build=debug cleanall
  34.     @echo or
  35.     @echo    make build=release cleanall
  36.     @echo.
  37.     @echo You can rebuild everything with
  38.     @echo.
  39.     @echo    make build=debug rebuild
  40.     @echo or
  41.     @echo    make build=release rebuild
  42.     @echo or
  43.     @echo    make build=debug rebuildall
  44.     @echo or
  45.     @echo    make build=release rebuildall
  46.     
  47. !else
  48.  
  49. SUBDIRS1 = simple staticDLL dynamicDLL resource rmi1 rmi2 
  50. SUBDIRS2 = conversion\step1 conversion\step2 conversion\step4 conversion\step5
  51. SUBDIRS3 = jni1 jni2
  52.         
  53. default : $(SUBDIRS1) $(SUBDIRS2) 
  54.  
  55. $(SUBDIRS1) : FORCE
  56.         cd $@
  57.         $(MAKE) -nologo build=$(build) $(action)
  58.         cd ..
  59.  
  60. $(SUBDIRS2) : FORCE
  61.         cd $@
  62.         $(MAKE) -nologo build=$(build) $(action)
  63.         cd ..\..
  64.         
  65. $(SUBDIRS3) : FORCE
  66.         cd $@
  67.         $(MAKE) -nologo build=$(build) $(action)
  68.         cd ..
  69.  
  70. all : default $(SUBDIRS3)
  71.  
  72. rebuild : clean default
  73.  
  74. rebuildall : cleanall all
  75.  
  76. clean :
  77.         $(MAKE) -nologo build=$(build) action=clean
  78.  
  79. cleanall :
  80.         $(MAKE) -nologo build=$(build) action=clean all
  81.  
  82. FORCE :
  83.  
  84. !endif
  85.  
  86.  
  87.