home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ucmenu.zip / UCMENUS.PAK / SAMPLES / SAMP1 / MAKEFILE next >
Text File  |  1995-09-28  |  3KB  |  66 lines

  1. # Make File
  2.  
  3. #-------------------------------------------------------------------------
  4. # Set UCMDEV to path of UCMenu toolkit
  5. #-------------------------------------------------------------------------
  6.  
  7. UCMDEV = ..\..
  8.  
  9. all: samp1.EXE
  10. samp1: samp1.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 samp1.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.  This sample uses static linking of the UCMENUS code.
  36. #-------------------------------------------------------------------------
  37.  
  38. samp1.exe:    samp1.obj  ucmutils.obj samp1.res samp1.def $(UCMDEV)\lib\ucmstat.obj
  39.   link386 samp1.obj ucmutils.obj $(UCMDEV)\lib\ucmstat.obj ,,,,samp1.def $(lflags)
  40.   rc samp1.res
  41.  
  42. samp1.obj:     samp1.c samp1.h
  43.   icc $(iccflags) samp1.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. samp1.res:    samp1.rc samp1.h
  52.   rc -r -i $(UCMDEV)\include samp1.rc samp1.res
  53.   copy samp1.res /b + $(UCMDEV)\lib\ucmenus.res /b samp1.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. #samp1.exe:    samp1.obj  ucmutils.obj samp1.res samp1.def $(UCMDEV)\LIB\UCMENUS.LIB
  63. #  link386 samp1.obj ucmutils.obj,,,$(UCMDEV)\LIB\UCMENUS.LIB,samp1.def $(lflags)
  64. #  rc samp1.res
  65.  
  66.