home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v6.zip / MMPM2TK / TK / SMVSAMP / MAKEFILE next >
Text File  |  1993-03-10  |  2KB  |  63 lines

  1. # SCCSID = @(#)makefile    13.7 92/04/22
  2. #**************************************************************************
  3. #
  4. # MAKE file for Movie Sample Application
  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. #**************************************************************************
  13.  
  14. CC        = icc
  15. LINK        = link386
  16.  
  17. BASELIBS    = DDE4MBS.LIB OS2386.LIB MMPM2.LIB
  18.  
  19. DEBUG       = /Ti+ /O-
  20.  
  21. #
  22. # Compilation Switches
  23. #
  24. #     /G3s         : Generate 386 code with no stack checking.
  25. #     /C+         : Compile only one module.
  26. #     /W3         : Warning level.
  27. #     /Gd-         : Link to static C libraries.
  28. #     /Gm+         : Use multithreaded libraries.
  29. #     /DINCL_32      : Use IBM code.
  30. #     /Ti+         : Generate debugging code.
  31. #     /Sm         : Generate debugging code.
  32. #     /O-         : Turn optimization off.
  33. #
  34.  
  35. COMPILE = /G3s /C+ /W3 /Ki- /Kb- /Ss+ /Gd- /Ms /Gm+ /DINCL_32
  36.  
  37. CFLAGS = $(COMPILE)
  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: movie.exe movie.hlp
  50.  
  51. movie.exe: movie.obj movie.res movie.def
  52.   $(LINK) movie.obj, movie.exe, $(LFLAGS) /ST:20000, $(BASELIBS), movie.def
  53.   $(RC) movie.res
  54.  
  55. movie.obj: movie.c movie.h
  56.   $(CC) $(CFLAGS) $(DEBUG) movie.c
  57.  
  58. movie.res: movie.rc movie.dlg movie.h movie.ico
  59.   rc -r movie.rc
  60.  
  61. movie.hlp: movie.ipf
  62.   ipfc movie.ipf
  63.