home *** CD-ROM | disk | FTP | other *** search
/ The Best of Select: Games 3 / cd.iso / os2 / rollball / makefile < prev    next >
Makefile  |  1992-07-12  |  2KB  |  75 lines

  1. #===================================================================
  2. #
  3. #   RollBall 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. #    /Re    Produce Code in IBM C Set/2 Run Time environment
  13. #    /ss    Allow // as comments
  14. #    /Gm+    Link with multitasking libraries, because we're multithreaded    
  15. CFLAGS    = /Ti /Kb+ /c /Se /Re /ss /Gm+
  16.  
  17. # LINK386 Flags
  18. #    /DEBUG    Include debug information for IPMD
  19. #    /NOE    NO Extented dictionary, don't assume any library dependencies
  20. #    /NOD    NO Default library, ignore the library names in object files
  21. #    /A:16    Align on paragraph for PM programs
  22. #    /M    Produce map
  23. #    /BASE    Base over 1Meg ?
  24. LFLAGS    = /DEBUG /NOE /NOD /ALIGN:16 /M /BASE:0x10000
  25.  
  26. # Libraries
  27. #    DD4MBS    Multitasking standard library
  28. #    OS2386    OS/2 2.0 Link library
  29. LIBS    = DDE4MBS + OS2386
  30. CC    = icc $(CFLAGS)
  31. LINK    = LINK386 $(LFLAGS)
  32.  
  33. HEADERS = RollBall.h Error.h
  34.  
  35. ALL_OBJ1 = RollBall.obj Error.obj Thread.obj
  36. # RollSub1.obj 
  37.  
  38. all: RollBall.exe
  39.  
  40. clean:
  41.     del *.exe
  42.     del *.obj
  43.     del *.res
  44.  
  45. save:
  46.     pkzip RollBall *
  47.     pkzip -d RollBall *.zip
  48.     copy RollBall.zip RollSave.zip /v
  49.  
  50. Error.obj: Error.c Error.h
  51.     $(CC) Error.c
  52.  
  53. Thread.obj: Thread.c Error.h
  54.     $(CC) Thread.c
  55.  
  56. RollBall.l: Makefile
  57.     echo $(ALL_OBJ1)  > RollBall.l
  58.     echo RollBall.exe >> RollBall.l
  59.     echo RollBall.map >> RollBall.l
  60.     echo $(LIBS)      >> RollBall.l
  61.     echo RollBall.def >> RollBall.l
  62.  
  63. RollBall.res: RollBall.rc RollBall.ico RollBall.h
  64.     rc -r RollBall.rc
  65.  
  66. RollBall.obj: RollBall.c $(HEADERS)
  67.     $(CC) RollBall.c
  68.  
  69. #RollSub1.obj: RollSub1.c $(HEADERS)
  70. #    $(CC) RollSub1.c
  71.  
  72. RollBall.exe: $(ALL_OBJ1) RollBall.def RollBall.l RollBall.res
  73.     $(LINK) @RollBall.l
  74.     rc RollBall.res RollBall.exe
  75.