home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / bc45 / colordlg.pak / MAKEFILE < prev    next >
Text File  |  1997-07-23  |  2KB  |  47 lines

  1. #----------------------------------------------------------------------------
  2. # ObjectWindows - (C) Copyright 1991, 1993 by Borland International
  3. #
  4. # Use: MODEL=m or MODEL=l or MODEL=f  to build static library OWL example
  5. # Default is MODEL=d, which builds DLL example with additional C calling EXE
  6. #
  7. #----------------------------------------------------------------------------
  8.  
  9. # This makefile can be used to build three different exes
  10. # MAKE MODEL=m or l or f will build an cctltest.exe with the dialog 
  11. # static linked
  12. #
  13. # MAKE MODEL=d will build the color dialog in colordlg.dll and will build
  14. # cctltest.exe and usecdll.exe.
  15. # cctltest.exe is an owl program that calls the dll to display the dialog.
  16. # usecdll2.exe is a C program that calls the dll to display the dialog
  17.  
  18. !if !$d(MODEL)
  19. MODEL=d
  20. !endif
  21.  
  22. !if $(MODEL)!=d
  23. #This builds the static example
  24. EXE    = cctltest
  25. OBJEXE = cctltest.obj colordlg.obj
  26. RESEXE = cctltest.res colordlg.res
  27. !else
  28. #This builds the dll examples
  29.  
  30. EXEALL = cctltest.exe usecdll2.exe
  31.  
  32. EXERES = usecdll2  # pick this target to generate sample rule, then substitute
  33.  
  34. #These declarations are required in order to build 32bit versions of the example
  35. #This define is used when using the DLL to generate _import declarations
  36. CCFEXE = -DUSEEXAMPLEDLL
  37. #This define is used when building the DLL to generate _export declarations
  38. CCFDLL = -DBUILDEXAMPLEDLL
  39.  
  40. LIBEXE = colordlg.lib
  41. DLLRES = colordlg
  42. EXEMAKE= $(CCTLTEST) $(USECDLL2)
  43. CCTLTEST = $(EXERULE:usecdll2=cctltest)
  44. USECDLL2 = $(EXERULE:usecdll2.res=cctltest.res)
  45. !endif
  46. !include $(BCEXAMPLEDIR)\owlmake.gen
  47.