home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: WPS_PM / WPS_PM.zip / xfld085s.zip / treesize / treesize.mak < prev    next >
Makefile  |  1998-12-28  |  2KB  |  58 lines

  1. #
  2. # Makefile for TREESIZE.EXE.
  3. #
  4. # For use with IBM NMAKE, which is part of IBM C-Set/2 and VisualAge C++.
  5. # This file will probably not work with other MAKE utilities, such as
  6. # GNU make or DMAKE.
  7. #
  8. #       Copyright (C) 1997-98 Ulrich Möller.
  9. #       This file is part of the XFolder source package.
  10. #       XFolder is free software; you can redistribute it and/or modify
  11. #       it under the terms of the GNU General Public License as published
  12. #       by the Free Software Foundation, in version 2 as it comes in the
  13. #       "COPYING" file of the XFolder main distribution.
  14. #       This program is distributed in the hope that it will be useful,
  15. #       but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. #       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17. #       GNU General Public License for more details.
  18. #
  19.  
  20. # HELPERS must be the path to the XFolder /helpers directory.
  21. # WarpIn does not require XFolder to run, but needs a bit of
  22. # source code from XFolder so that I don't have to rewrite
  23. # everything. The .OBJ files from these sources are created
  24. # in our own directory, because we are using different compiler
  25. # options than XFolder does.
  26. HELPERS = G:\develop\C\XFolder\source\helpers
  27.  
  28. INCLUDE = $(INCLUDE);$(HELPERS)
  29.  
  30. CC      = icc /c /Ge /Gd- /Se /Re /ss /Gm+ /O- /Oi- /q+ /w2
  31. HEADERS = treesize.h ..\helpers\eas.h ..\helpers\eas.h ..\helpers\dosh.h
  32.  
  33. ALL_OBJ1 = treesize.obj eas.obj dosh.obj stringh.obj
  34.  
  35. all: treesize.exe
  36.  
  37. treesize.res: treesize.rc treesize.h treesize.dlg treesize.ico
  38.  
  39. treesize.obj: treesize.c $(HEADERS)
  40.           $(CC) treesize.c
  41.  
  42. eas.obj: ..\helpers\$*.c $(HEADERS)
  43.           $(CC) ..\helpers\$*.c
  44.  
  45. dosh.obj: ..\helpers\$*.c $(HEADERS)
  46.           $(CC) ..\helpers\$*.c
  47.  
  48. stringh.obj: ..\helpers\$*.c $(HEADERS)
  49.           $(CC) ..\helpers\$*.c
  50.  
  51. treesize.exe: $(ALL_OBJ1) treesize.def treesize.res
  52.           ilink /exepack:2 $(ALL_OBJ1) ..\helpers\pmprintf.lib treesize.def
  53.           rc -p -x2 treesize.res treesize.exe
  54.  
  55.  
  56.  
  57.  
  58.