home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v6.zip / MMPM2TK / TK / CAPDLL / MAKEFILE < prev   
Text File  |  1993-04-01  |  3KB  |  80 lines

  1. #**************************************************************************
  2. #
  3. # MAKE file for Caption DLL
  4. #
  5. # Assumes that the environment is set up for development.  Specifically,
  6. # the compiler, linker, rc and ipfc  should be in the path.  Also, the
  7. # environment variables for the tools must be properly set, e.g. LIB,
  8. # INCLUDE, IPFC. This should all be taken care of automatically by
  9. # installing the OS/2 Toolkit and the MMPM/2 Toolkit.
  10. #
  11. # Copyright (C) IBM 1993
  12. #**************************************************************************
  13.  
  14. CC     = icc
  15. LINK     = link386
  16.  
  17. DLLLIBS  = DDE4NBS + os2386 + MMPM2.LIB
  18.  
  19. #
  20. # Compilation Switches
  21. #
  22. #     /C+         : Compile only.
  23. #     /Ge-         : Build a .DLL file
  24. #     /W3         : Warning level.
  25. #     /Gd-         : Link to static C libraries.
  26. #     /Gm+         : Use multithreaded libraries.
  27. #     /DINCL_32      : Use IBM code.
  28. #     /Ti+         : Generate debugging code.
  29. #     /Sm         : Generate debugging code.
  30. #     /O-         : Turn optimization off.
  31. #
  32.  
  33. CFLAGS       = /C+ /Ge- /Gd- /Ss+ /Gm+ /W3 /DINCL_32
  34. DEBUG       = /Ti+ /Sm /O-
  35.  
  36. COMPILE    = $(CFLAGS)
  37.  
  38. #
  39. # Link Switches
  40. #
  41. #    /map     : Creates a listing file containing all pulbic symbols.
  42. #    /nod     : Causes all default libraries to be ignored.
  43. #    /noe     : The linker will not search the extended dictionary.
  44. #
  45.  
  46. LFLAGS       = /map /nod /noe
  47.  
  48. all: cap.dll
  49.  
  50. #-------------------------------------------------------------------
  51. #   This section lists all files to be built by the make.  The
  52. #   makefile builds the executible as well as its associated help
  53. #   file.
  54. #-------------------------------------------------------------------
  55. ccdll.obj : ccdll.c captions.h
  56.   $(CC) $(COMPILE) -Foccdll.obj ccdll.c
  57.  
  58. #-------------------------------------------------------------------
  59. #   This section creates the command file used by the linker.  This
  60. #   command file is recreated automatically every time you change
  61. #   the object file list, linker flags, or library list.
  62. #-------------------------------------------------------------------
  63. ccdll.lnk: makefile
  64.     echo ccdll.obj           > ccdll.lnk
  65.     echo cap.dll          >> ccdll.lnk
  66.     echo cap.map          >> ccdll.lnk
  67.     echo $(DLLLIBS)          >> ccdll.lnk
  68.     echo cap.def          >> ccdll.lnk
  69.  
  70. #-------------------------------------------------------------------
  71. #   Dependencies
  72. #     This section lists all object files needed to be built for the
  73. #     application, along with the files it is dependent upon (e.g.
  74. #     its source and any header files).
  75. #-------------------------------------------------------------------
  76. ccdll.obj : ccdll.c captions.h
  77.  
  78. cap.dll: ccdll.obj ccdll.lnk cap.def
  79.     $(LINK) $(LFLAGS) @ccdll.lnk
  80.