home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / source / mmpm2src / riffsamp / makefile next >
Encoding:
Makefile  |  1993-10-18  |  1.9 KB  |  67 lines

  1. # SCCSID = @(#)makefile 13.7 93/07/26
  2. #**************************************************************************
  3. #
  4. # MAKE file for RIFF compound file sample program
  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. DEBUG      = /Ti+ /O-
  21. COMPILE = /G3s /C+ /W3 /Ss+ /Gd- /Ms /Gm+ /DINCL_32
  22.  
  23. #
  24. # Compilation Switches
  25. #
  26. #     /G3s           : Generate 386 code with no stack checking.
  27. #     /C+            : Compile only one module.
  28. #     /W3            : Warning level.
  29. #     /Ss+           : Allow Double Slash comments
  30. #     /Gd-           : Link to static C libraries.
  31. #     /Gm+           : Use multithreaded libraries.
  32. #     /DINCL_32      : Use IBM code.
  33. #     /Ti+           : Generate debugging code.
  34. #     /O-            : Turn optimization off.
  35. #
  36.  
  37. CFLAGS = $(COMPILE)
  38.  
  39. LFLAGS  = /map /nod /noe
  40. DBLFLAG = /CO
  41.  
  42. #
  43. # Link Switches
  44. #
  45. #    /map     : Creates a listing file containing all pulbic symbols.
  46. #    /nod     : Causes all default libraries to be ignored.
  47. #    /noe     : The linker will not search the extended dictionary.
  48. #    /CO      : Debug
  49. #
  50.  
  51. all: riffsamp.exe riffsamp.hlp
  52.  
  53. riffsamp.exe : riffsamp.obj riffsamp.def riffsamp.res
  54.  $(LINK) riffsamp.obj, riffsamp, $(LFLAGS) /ST:36000, $(BASELIBS), riffsamp.def
  55.   rc riffsamp.res
  56.  
  57.  
  58. riffsamp.obj : riffsamp.c riffsamp.h
  59.   $(CC) $(CFLAGS) $(DEBUG) riffsamp.c
  60.  
  61.  
  62. riffsamp.res : riffsamp.rc riffsamp.dlg riffsamp.h riffsamp.ico
  63.   rc -r riffsamp.rc
  64.  
  65. riffsamp.hlp: $*.ipf
  66.   ipfc $*.ipf
  67.