home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: SysTools / SysTools.zip / sd2.zip / Makefile < prev    next >
Makefile  |  1998-05-17  |  3KB  |  89 lines

  1. #===================================================================
  2. #
  3. #   ShutDown/2 Makefile
  4. #
  5. #===================================================================
  6.  
  7. # ICC Flags
  8. #   /Ti     Include debug information for IPMD
  9. #   /Kb+    Warning, if no prototypes found (prevents from incorrect params)
  10. #   /c      Compile only, we link more than one ressource
  11. #   /Se     Allow IBM C language extentions and migration
  12. #   /Ms     Set the default linkage to _System
  13. #   /Re     Produce Code in IBM C Set/2 Run Time environment
  14. #   /ss     Allow // as comments
  15. #   /Gm+    Link with multitasking libraries, because we're multithreaded
  16. #   /Ge-    Link with libraries that assume a DLL
  17. CFLAGS = /Ti /Kb+ /c /Se /Ms /Re /ss /Gm+
  18.  
  19. # LINK386 Flags
  20. #   /DEBUG  Include debug information for IPMD
  21. #   /NOE    NO Extented dictionary, don't assume any library dependencies
  22. #   /NOD    NO Default library, ignore the library names in object files
  23. #   /A:16   Align on paragraph for PM programs
  24. #   /M      Produce map
  25. #   /BASE   Base over 1Meg ?
  26. LFLAGS = /NOFREE /DEBUG /NOE /NOD /ALIGN:16 /MAP /NOI
  27.  
  28. # MicroSoft MASM 6.0 Flags
  29. #   /c      Compile only, we link more than one ressource
  30. #   /Cx     Preserve case in publics, externs
  31. #   /Cp     Preserve case of user identifiers
  32. #   /Fl     Generate listings
  33. MFLAGS = /c /Cx /Cp /Fl
  34.  
  35. # Libraries
  36. #   DD4MBS  Multitasking standard library
  37. #   OS2386  OS/2 2.0 Link library
  38. LIBS = DDE4MBS + OS2386
  39.  
  40. CC = icc $(CFLAGS)
  41. ASM = ML $(MFLAGS)
  42. LINK = LINK386 $(LFLAGS)
  43.  
  44. HEADERS = 
  45.  
  46. ALL_OBJ = ShutDown.obj Utility.obj Io.obj
  47.  
  48. all: ShutDown.exe ShutDown.hlp
  49.  
  50. clean:
  51.     -!del *.map
  52.     -!del *.lst
  53.     -!del *.exe
  54.     -!del *.obj
  55.     -!del *.res
  56.  
  57. save:
  58.     -!del *.map
  59.     zip -9 ShutDown *
  60.     unzip -t ShutDown
  61.  
  62. ShutDown.obj: ShutDown.c $(HEADERS)
  63.     $(CC) ShutDown.c
  64.  
  65. Utility.obj: Utility.c $(HEADERS)
  66.     $(CC) Utility.c
  67.  
  68. Io.obj: Io.asm
  69.     $(ASM) Io.asm
  70.  
  71. ShutDown.hlp: ShutDown.ipp
  72.     ipfcprep ShutDown.ipp ShutDown.ipf /D IPFC
  73.     ipfc ShutDown.ipf
  74.  
  75. ShutDown.l: Makefile
  76.     echo $(ALL_OBJ)                 >  ShutDown.l
  77.     echo ShutDown.exe               >> ShutDown.l
  78.     echo ShutDown.map               >> ShutDown.l
  79.     echo $(LIBS)                    >> ShutDown.l
  80.     echo ShutDown.def               >> ShutDown.l
  81.  
  82. ShutDown.res: ShutDown.rc ShutDown.h ShutDown.dlg
  83.     rc -r ShutDown.rc
  84.  
  85. ShutDown.exe: $(ALL_OBJ) ShutDown.def ShutDown.l ShutDown.res
  86.     $(LINK) @ShutDown.l
  87.     rc ShutDown.res ShutDown.exe
  88.  
  89.