home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / xwphescr.zip / XWPH0208.ZIP / src / helpers / makefile_dll < prev    next >
Makefile  |  2000-10-27  |  1KB  |  55 lines

  1.  
  2. #
  3. # makefile_dll:
  4. #       makefile for src/helpers directory.
  5. #
  6. #       See "makefile" for remarks.
  7. #
  8. #       This is used with WarpIN for preparing the runtime
  9. #       DLL which is shared between the WarpIN executables.
  10. #
  11. #       As opposed to "makefile", this does not create
  12. #       helpers.lib, but only the objects files, which are
  13. #       then linked with the other shared components into
  14. #       the runtime DLL.
  15. #
  16. #       Edit "setup.in" to set up the make process.
  17. #
  18.  
  19. # Say hello to yourself.
  20. !if [@echo +++++ Entering $(MAKEDIR)\makefile_dll]
  21. !endif
  22.  
  23. !include helpers_pre.in
  24.  
  25. # The main target:
  26. # If we're called from the main makefile, MAINMAKERUNNING is defined,
  27. # and we'll set $(OBJS) as our targets (which will go on).
  28. # Otherwise, we call the main makefile, which will again call ourselves later.
  29. all:   \
  30. !ifndef MAINMAKERUNNING
  31.     callmainmake
  32.     @echo ----- Leaving $(MAKEDIR)
  33. !else
  34.     makedll
  35. #$(OBJS)
  36.     @echo ----- Leaving $(MAKEDIR)
  37. !endif
  38.  
  39. callmainmake:
  40.     @echo $(MAKEDIR)\makefile: Recursing to main makefile.
  41.     @cd $(PROJECT_BASE_DIR)
  42.     @nmake
  43.     @echo $(MAKEDIR)\makefile: Returned from main makefile. Done.
  44.  
  45. #
  46. # new target "makedll":
  47. #       this simply produces all the object files.
  48. #
  49.  
  50. makedll: $(OBJS)
  51.     @echo ----- Leaving $(MAKEDIR)
  52.  
  53. !include helpers_post.in
  54.  
  55.