home *** CD-ROM | disk | FTP | other *** search
/ swCHIP 1991 January / swCHIP_95-1.bin / utility / gsview13 / epstool / makefile.os2 < prev    next >
Makefile  |  1995-12-09  |  3KB  |  108 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.os2
  18. # EPSTOOL
  19. # requires emx 0.8h
  20. #
  21. # edit COMPBASE and EMXPATH as required.
  22.  
  23. # set USE_EMX=0 for BCC
  24. # set USE_EMX=1 for EMX/GCC
  25. USE_EMX=1
  26. # USE_OMF=1 for EMX/GCC with LINK386
  27. USE_OMF=0
  28.  
  29. !if $(USE_EMX)
  30. # EMX
  31. DRIVE=d:
  32. COMP=gcc
  33. COMPBASE=$(DRIVE)\emx
  34. EMXPATH=$(DRIVE)/emx
  35. !if $(USE_OMF)
  36. FLAGS=-Zomf -g -I. -I../src
  37. OBJ=obj
  38. !else
  39. FLAGS=-g -I. -I../src
  40. OBJ=o
  41. !endif
  42. !else
  43. # BCC flags
  44. COMP=bcc
  45. COMPBASE=d:\bcos2
  46. EMXPATH=d:/bcos2
  47. FLAGS=-v -I$(INCDIR) -I../src -sm
  48. OBJ=obj
  49. !endif
  50.  
  51. # ICC flags
  52. #COMP=icc
  53. #COMPBASE=c:\ibmc
  54. #EMXPATH=c:/ibmc
  55. #FLAGS=/Gm /Ti /Sm /Ic:\toolkt20\c\os2h;c:\ibmc\include -DNO_MMOS2
  56. #OBJ=obj
  57.  
  58. COMPDIR=$(COMPBASE)\bin
  59. INCDIR=$(EMXPATH)/include
  60. LIBDIR=$(EMXPATH)/lib
  61.  
  62.  
  63. OBJS=epstool.$(OBJ) gvceps.$(OBJ) ps.$(OBJ)
  64.  
  65. all: epstool.exe
  66.  
  67. .c.$(OBJ):
  68.     $(COMP) $(FLAGS) -DOS2 -DEPSTOOL -c $*.c
  69.  
  70.  
  71. epstool.$(OBJ): epstool.c epstool.h ../src/ps.h
  72.  
  73. ps.$(OBJ): ../src/ps.c epstool.h ../src/ps.h
  74.     $(COMP) $(FLAGS) -DOS2 -DEPSTOOL -c -o $*.$(OBJ) ../src/$*.c
  75.  
  76. gvceps.$(OBJ): ../src/gvceps.c epstool.h ../src/ps.h
  77.     $(COMP) $(FLAGS) -DOS2 -DEPSTOOL -c -o $*.$(OBJ) ../src/$*.c
  78.  
  79. epstool.exe: $(OBJS) epstool.def
  80. !if $(USE_EMX)
  81. !if $(USE_OMF)
  82.     $(COMP) $(FLAGS) -o epstool $(OBJS) epstool.def
  83. !else
  84.     $(COMP) $(FLAGS) -o epstool $(OBJS)
  85.     emxbind $(COMPDIR)\emxl.exe epstool epstool.exe
  86.     del $*
  87. !endif
  88. !else
  89.     $(COMP) $(FLAGS) -eepstool.exe $(OBJS)
  90. !endif
  91.  
  92. clean:
  93.     -del epstool.$(OBJ)
  94.     -del gvceps.$(OBJ)
  95.     -del ps.$(OBJ)
  96.  
  97. veryclean: clean
  98.     -del epstool.exe
  99.  
  100. ZIPFILES = epstool.c epstool.h epstool.def epstool.doc epstool.exe\
  101.  makefile.os2 makefile.tc makefile.unx
  102.  
  103. zip:
  104.     zip ..\epstool $(ZIPFILES)
  105.  
  106.  
  107.  
  108.