home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ucmen212.zip / SAMPLES / SAMP3 / MAKEFILE < prev    next >
Text File  |  1996-05-31  |  3KB  |  65 lines

  1. # Make File
  2.  
  3. #-------------------------------------------------------------------------
  4. # Set UCMDEV to path of UCMenu toolkit
  5. #-------------------------------------------------------------------------
  6.  
  7. UCMDEV = ..\..
  8.  
  9. all: samp3.EXE
  10. samp3: samp3.EXE
  11.  
  12. #-------------------------------------------------------------------------
  13. # Flags used for C compiler.
  14. #-------------------------------------------------------------------------
  15. # /c      compile don't link
  16. # /Gd-    Statically link C runtime library
  17. # /Sm     Allow migration extensions
  18. # /Re     Non-subsytem environment
  19. # /ss     allow  // for comment lines
  20. # /Gm+    use the multi-threaded libraries
  21. # /Q      No compiler logo
  22. # /Ti+    Generate C Set/2 Debugger information
  23. # /O+     Optimize generated code
  24.  
  25. #For debugging:
  26. #iccflags    = /c /Gd- /Sm /Re /ss /Gm+ /Q  /I$(UCMDEV)\include /O- /Ti+
  27. #lflags = /NOPACKCODE /DEBUG /NOE /ALIGN:16 /EXEPACK /M /BASE:0x10000
  28.  
  29. iccflags   = /c /Gd- /Sm /Re /ss /Gm+ /Q  /I$(UCMDEV)\include /O+ /Ti-
  30. lflags = /NOE /ALIGN:16 /EXEPACK /M /BASE:0x10000
  31.  
  32. #-------------------------------------------------------------------------
  33. # Make samp3.EXE.  Note that we also compile UCMUTILS.C so that it is
  34. # compiled with the same compiler options as the application to which
  35. # it will be linked.
  36. #-------------------------------------------------------------------------
  37.  
  38. samp3.exe:    samp3.obj  ucmutils.obj samp3.res samp3.def $(UCMDEV)\lib\ucmstat.obj
  39.   ilink /NOFREEFORMAT samp3.obj ucmutils.obj $(UCMDEV)\lib\ucmstat.obj ,,,,samp3.def $(lflags)
  40.   rc samp3.res
  41.  
  42. samp3.obj:     samp3.c samp3.h
  43.   icc $(iccflags) samp3.c
  44.  
  45. ucmutils.obj:  $(UCMDEV)\source\ucmutils.c $(UCMDEV)\include\ucmutils.h
  46.   icc $(iccflags) $(UCMDEV)\source\ucmutils.c
  47.  
  48. # Note: If application uses context menus/dialogs of UCMenu control, then
  49. #       the UCMENUS.RES resources must be appended to the applications resources.
  50.  
  51. samp3.res:    samp3.rc samp3.h dialog.dlg dialog.h
  52.   rc -r -i $(UCMDEV)\include samp3.rc samp3.res
  53.   copy samp3.res /b + $(UCMDEV)\lib\ucmenus.res /b samp3.res
  54.  
  55. #-------------------------------------------------------------------------
  56. # To dynamically link the UCMENUS code, replace the first section above
  57. # with the following.  Note that this will result in a smaller .EXE but
  58. # requires that the UCMENUS.DLL file be in the LIBPATH or current directory
  59. # at run time.
  60. #-------------------------------------------------------------------------
  61.  
  62. #samp3.exe:    samp3.obj  ucmutils.obj samp3.res samp3.def $(UCMDEV)\LIB\UCMENUS.LIB
  63. #  ilink /NOFREEFORMAT samp3.obj ucmutils.obj,,,$(UCMDEV)\LIB\UCMENUS.LIB,samp3.def $(lflags)
  64. #  rc samp3.res
  65.