home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mmpm21tk.zip / TK / CAPSAMP / MAKEFILE < prev    next >
Text File  |  1993-03-04  |  2KB  |  64 lines

  1. # SCCSID = @(#)makefile 13.7 92/04/22
  2. #**************************************************************************
  3. #
  4. # MAKE file for Closed-captioning Utility
  5. #
  6. # Assumes that the environment is set up for development.  Specifically,
  7. # the compiler, linker, rc and ipfc  should be in the path.  Also, the
  8. # environment variables for the tools must be properly set, e.g. LIB,
  9. # INCLUDE, IPFC. This should all be taken care of automatically by
  10. # installing the OS/2 Toolkit and the MMPM/2 Toolkit.
  11. #
  12. # Copyright (C) IBM 1993
  13. #**************************************************************************
  14.  
  15. CC      = icc
  16. LINK      = link386
  17.  
  18. BASELIBS  = DDE4MBS.LIB OS2386.LIB MMPM2.LIB
  19.  
  20. #
  21. # Compilation Switches
  22. #
  23. #     /G3s         : Generate 386 code with no stack checking.
  24. #     /C+         : Compile only one module.
  25. #     /W3         : Warning level.
  26. #     /Gd-         : Link to static C libraries.
  27. #     /Gm+         : Use multithreaded libraries.
  28. #     /DINCL_32      : Use IBM code.
  29. #     /Ti+         : Generate debugging code.
  30. #     /Sm         : Generate debugging code.
  31. #     /O-         : Turn optimization off.
  32. #
  33.  
  34. CFLAGS      = /G3s /C+ /W3 /Gd- /Ss+ /Gm+ /DINCL_32
  35. DEBUG      = /Ti+ /Sm /O-
  36.  
  37. COMPILE    = $(CFLAGS)
  38.  
  39. #
  40. # Link Switches
  41. #
  42. #    /map     : Creates a listing file containing all pulbic symbols.
  43. #    /nod     : Causes all default libraries to be ignored.
  44. #    /noe     : The linker will not search the extended dictionary.
  45. #
  46.  
  47. LFLAGS      = /map /nod /noe
  48.  
  49. all: capsamp.exe capsamp.hlp
  50.  
  51. capsamp.exe: capsamp.obj capsamp.res capsamp.def
  52.   $(LINK) capsamp.obj, capsamp.exe, capsamp.map $(LFLAGS) /ST:20000, $(BASELIBS), capsamp.def
  53.   $(RC) capsamp.res
  54.   mapsym capsamp
  55.  
  56. capsamp.obj: capsamp.c capsamp.h captions.h
  57.   $(CC) $(COMPILE) capsamp.c
  58.  
  59. capsamp.res: capsamp.rc capsamp.dlg capsamp.h
  60.   rc -r capsamp.rc
  61.  
  62. capsamp.hlp: capsamp.ipf
  63.   ipfc capsamp.ipf
  64.