home *** CD-ROM | disk | FTP | other *** search
/ swCHIP 1991 January / swCHIP_95-1.bin / utility / gsview13 / gsgrab / gsgrab.mak < prev    next >
Makefile  |  1995-12-09  |  2KB  |  80 lines

  1. #  Copyright (C) 1993, 1994, Russell Lang.  All rights reserved.
  2. #  
  3. # This file is part of GSview.
  4. #  
  5. # This program is distributed with NO WARRANTY OF ANY KIND.  No author
  6. # or distributor accepts any responsibility for the consequences of using it,
  7. # or for whether it serves any particular purpose or works at all, unless he
  8. # or she says so in writing.  Refer to the GSview Free Public Licence 
  9. # (the "Licence") for full details.
  10. #  
  11. # Every copy of GSview must include a copy of the Licence, normally in a 
  12. # plain ASCII text file named LICENCE.  The Licence grants you the right 
  13. # to copy, modify and redistribute GSview, but only under certain conditions 
  14. # described in the Licence.  Among other things, the Licence requires that 
  15. # the copyright notice and this notice be preserved on all copies.
  16.  
  17. # Makefile for GSgrab
  18. # Russell Lang 1994-04-10
  19. # using Borland C++ 3.1 or Borland C++ 4.5
  20. # 'make -fgsgrab.mak'
  21. #
  22. COMPBASE = f:\bc45
  23. #COMPBASE = d:\borlandc
  24. #
  25. COMPDIR = $(COMPBASE)\bin
  26. INCDIR = $(COMPBASE)\include
  27. LIBDIR = $(COMPBASE)\lib
  28. MODEL=m
  29. CFLAGS=-v -m$(MODEL) -W -2 -h -w -I$(INCDIR)
  30. OBJS=gsgrab.obj gsginit.obj gsgdlg.obj
  31.  
  32. all: gsgrab.exe gsgrab.hlp
  33.  
  34. .c.obj:
  35.     $(COMPDIR)\bcc -c $(CFLAGS) {$< }
  36.     
  37. gsgrab.exe: $(OBJS) gsgrab.res gsgrab.def
  38.     $(COMPDIR)\tlink /Twe /c /m /s /v /l @&&!
  39. $(LIBDIR)\c0w$(MODEL) +
  40. $(OBJS) +
  41. ,gsgrab.exe,gsgrab, +
  42. $(LIBDIR)\import +
  43. $(LIBDIR)\mathw$(MODEL) +
  44. $(LIBDIR)\cw$(MODEL), +
  45. gsgrab.def
  46. !
  47.     $(COMPDIR)\rlink -30 -t gsgrab.res gsgrab.exe
  48.  
  49. gsgrab.res: gsgrab.rc gsgrab.h
  50.     $(COMPDIR)\brcc -i$(INCDIR) -r gsgrab
  51.  
  52. gsgrab.obj: gsgrab.c gsgrab.h
  53.  
  54. doc2rtf.exe: ..\src\doc2rtf.c
  55.     $(COMPDIR)\bcc -w-pro -I$(INCDIR) -L$(LIBDIR) ..\src\doc2rtf.c
  56.  
  57. gsgrab.hlp: doc2rtf.exe gsgrab.doc gsgrab.hpj
  58.     doc2rtf gsgrab.doc gsgrab.rtf
  59.     $(COMPDIR)\hc31 gsgrab.hpj
  60.  
  61. clean:
  62.     del gsgrab.obj
  63.     del gsginit.obj
  64.     del gsgdlg.obj
  65.     del gsgrab.map
  66.     del gsgrab.sym
  67.     del gsgrab.res
  68.     del gsgrab.rws
  69.     del gsgrab.rtf
  70.     del gsgrab.rws
  71.     del gsgrab.trw
  72.     del doc2rtf.obj
  73.     del doc2rtf.exe
  74.     tdstrip gsgrab.exe
  75.  
  76. veryclean: clean
  77.     del gsgrab.map
  78.     del gsgrab.exe
  79.     del gsgrab.hlp
  80.