home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pentlk11.zip / APPLIC.MAK < prev    next >
Makefile  |  1994-01-13  |  3KB  |  75 lines

  1. #===================================================================
  2. #
  3. # APPLIC Make File
  4. #
  5. #===================================================================
  6. #
  7. #===================================================================
  8. #
  9. .SUFFIXES:
  10. .SUFFIXES: .rc .res .obj .lst .c
  11.  
  12. #===================================================================
  13. #
  14. #  Symbol definitions
  15. #
  16. #===================================================================
  17.  
  18. #===================================================================
  19. #
  20. # Default compilation macros for sample programs
  21. #
  22. #===================================================================
  23. #
  24. # Compile switchs  that are enabled
  25. #
  26. # /c      compile don't link
  27. # /Fa+    Write ASM  file to DASD ( + = YES, - = NO
  28. # /Fd+    Write temp file to DASD ( /Fd- = Write temp files to virtual memory )
  29. # /Fl+    Write basic listing file  ( + = YES, - = NO )
  30. # /Gd     use runtime library that: ( + = Dynamic Link, - = Static Link )
  31. # /Ge     use runtime library that: ( + = EXE Built,    - = DLL Built )
  32. # /Gm     use the multi-threaded libraries ( + = YES, - = NO )
  33. # /Kb     Control basic diagnostic message (/Kb+ = ON, /Kb- = OFF )
  34. # /Kp     Unused Parameter Messages        (/Kp+ = ON, /Kp- = OFF )
  35. # /Fp2    Pack on two byte boundaries
  36. # /Lf+    Write full  listing file  ( + = YES, - = NO )
  37. # /Ms     use the system calling convention and not optilink as the default
  38. # /O      Optimization: ( + = ON, - = OFF )
  39. # /Rx     Subsystem Development (where x = e | n, e=runtime environ, n=none)
  40. # /Se     allow cset  extensions
  41. # /Ss     allow  "//" for comment lines
  42. # /SpX    Pack on "X" boundary, where "X" is 1, 2, 4
  43. # /Ti     Debug Information
  44. #
  45.  
  46. CCE = icc  /c /Kb+ /Kp+ /Sp2
  47.  
  48. LFLAGSD    = /ALIGN:4 /NOI
  49. LIBS       = OS2386+PENPM
  50. LINK       = LINK386 $(LFLAGSD)
  51. RC         = rc
  52.  
  53. #-------------------------------------------------------------------
  54. #   A list of all of the object files
  55. #-------------------------------------------------------------------
  56.  
  57. all: applic.exe
  58.  
  59. applic.obj:  applic.c applic.h
  60.   $(CCE) applic.c
  61.  
  62. applic.res: applic.rc applic.h applic.ico applic.dlg
  63.     $(RC) -r applic.rc
  64.  
  65. applic.lnk: applic.mak applic.def
  66.     echo applic.obj        > applic.lnk
  67.     echo applic.exe       >> applic.lnk
  68.     echo applic.map       >> applic.lnk
  69.     echo $(LIBS)          >> applic.lnk
  70.     echo applic.def       >> applic.lnk
  71.  
  72. applic.exe : applic.obj applic.def applic.lnk applic.mak applic.res
  73.     $(LINK) @applic.lnk
  74.     $(RC) applic.res applic.exe
  75.