home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / xwphescr.zip / XWPH0208.ZIP / src / helpers / helpers_post.in < prev    next >
Text File  |  2002-08-08  |  1KB  |  47 lines

  1. #
  2. #   Post-Include file for the main helpers makefile.
  3. #   This contains inference rules for the files.
  4. #
  5.  
  6. # Now define inference rules for what to do with certain file
  7. # types, based on their file extension.
  8. # The syntax we need here is ".fromext.toext".
  9. # So whenever NMAKE encounters a .toext file, it
  10. # executes what we specify here.
  11. # The ugly {} brackets are some awkward syntax for specifying
  12. # files in other directories.
  13.  
  14. # Special macros used here: $(@B) is the current target w/out ext.
  15.  
  16. # -- compile C files to .OBJ files, using the CC_HELPPERS macro
  17. #    given to us.
  18. #    The output will be placed in the directory specified by
  19. #    the OUTPUTDIR variable (set above).
  20.  
  21. .c.{$(OUTPUTDIR)}.obj:
  22.     @echo $(MAKEDIR)\makefile: Compiling $(@B).c
  23. !ifdef EMX
  24.     $(CC_HELPERS) -o $(OUTPUTDIR)\$(@B).obj $(@B).c
  25. !else
  26. !ifndef PRECH
  27.     $(CC_HELPERS) /Fo$(OUTPUTDIR)\$(@B).obj $(@B).c
  28. !else
  29.     $(CC_HELPERS) /fi"$(PRECH)\$(@B).pch" /si"$(PRECH)\$(@B).pch" /Fo$(OUTPUTDIR)\$(@B).obj $(@B).c
  30. !endif
  31. !endif
  32.  
  33. $(OUTPUTDIR)\interlock.obj: $(@B).asm
  34.     @echo $(MAKEDIR)\makefile: Assembling $(@B).asm
  35.     alp -Sv:ALP -Fdo:$(OUTPUTDIR) $(@B).asm
  36.  
  37. # The .OBJ-from-sources dependencies are now automatically
  38. # created by "nmake dep" into the .depend include file.
  39. # V0.9.12 (2001-05-22) [umoeller]
  40.  
  41. !ifndef NOINCLUDEDEPEND
  42. !include .depend
  43. !endif
  44.  
  45.  
  46.  
  47.