"Fossies" - the Fresh Open Source Software Archive 
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Make source code syntax highlighting (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 # Copyright (C) 2002-2005 Ghostgum Software Pty Ltd. All rights reserved.
2 #
3 # This software is provided AS-IS with no warranty, either express or
4 # implied.
5 #
6 # This software is distributed under licence and may not be copied,
7 # modified or distributed except as expressly authorised under the terms
8 # of the licence contained in the file LICENCE in this distribution.
9 #
10 # For more information about licensing, please refer to
11 # http://www.ghostgum.com.au/ or contact Ghostsgum Software Pty Ltd,
12 # 218 Gallaghers Rd, Glen Waverley VIC 3150, AUSTRALIA,
13 # Fax +61 3 9886 6616.
14 #
15
16 # $Id: epstool.mak,v 1.9 2005/03/25 03:37:59 ghostgum Exp $
17 # Make epstool for GNU/Linux
18
19 BINDIR=./bin
20 OBJDIR=./epsobj
21 SRCDIR=./src
22 SRCWINDIR=./srcwin
23
24 XINCLUDE=
25 PFLAGS=
26 PLINK=
27
28 GTKCFLAGS=
29 GTKLIBS=
30
31 LIBPNGINC=
32 LIBPNGCFLAGS=
33 LIBPNGLIBS=
34
35 LONGFILEDEF=
36 LONGFILEMOD=cfile
37
38 include $(SRCDIR)/unixcom.mak
39
40 EPSOBJPLAT=$(OD)xnodll$(OBJ) $(OD)$(LONGFILEMOD)$(OBJ)
41 EPSLIB=$(LIBPNGLIBS)
42
43 BEGIN=$(OD)lib.rsp
44 TARGET=epstool
45
46 include $(SRCDIR)/common.mak
47
48 EPSTOOL_ROOT=/usr/local
49 EPSTOOL_BASE=$(prefix)$(EPSTOOL_ROOT)
50 EPSTOOL_DOCDIR=$(EPSTOOL_BASE)/share/doc/epstool-$(EPSTOOL_VERSION)
51 EPSTOOL_MANDIR=$(EPSTOOL_BASE)/man
52 EPSTOOL_BINDIR=$(EPSTOOL_BASE)/bin
53
54 epstool: $(BD)epstool$(EXE)
55
56 epstest: epstool $(BD)epstest$(EXE)
57 $(BD)epstest$(EXE)
58
59 $(OD)lib.rsp: makefile
60 -mkdir $(BINDIR)
61 -mkdir $(OBJDIR)
62 echo "dummy" > $(OD)lib.rsp
63
64 install: $(TARGET)
65 -mkdir -p $(EPSTOOL_BASE)
66 chmod a+rx $(EPSTOOL_BASE)
67 -mkdir -p $(EPSTOOL_BINDIR)
68 chmod a+rx $(EPSTOOL_BINDIR)
69 $(INSTALL_EXE) $(BD)epstool$(EXE) $(EPSTOOL_BINDIR)$(DD)epstool$(EXE)
70 -strip $(EPSTOOL_BINDIR)$(DD)epstool$(EXE)
71 -mkdir -p $(EPSTOOL_MANDIR)
72 chmod a+rx $(EPSTOOL_MANDIR)
73 -mkdir -p $(EPSTOOL_MANDIR)$(DD)man1
74 chmod a+rx $(EPSTOOL_MANDIR)$(DD)man1
75 $(INSTALL) doc$(DD)epstool.1 $(EPSTOOL_MANDIR)$(DD)man1$(DD)epstool.1
76 -mkdir -p $(EPSTOOL_DOCDIR)
77 chmod a+rx $(EPSTOOL_DOCDIR)
78 $(INSTALL) doc$(DD)epstool.htm $(EPSTOOL_DOCDIR)$(DD)epstool.htm
79 $(INSTALL) doc$(DD)gsview.css $(EPSTOOL_DOCDIR)$(DD)gsview.css
80 $(INSTALL) LICENCE $(EPSTOOL_DOCDIR)$(DD)LICENCE
81
82
83 CYGWIN_DISTDIR=./dist
84 CYGWIN_PACKAGE=epstool-$(EPSTOOL_VERSION)-1
85 CYGWIN_DOCDIR=$(CYGWIN_DISTDIR)/usr/share/doc/Cygwin
86 cygwin:
87 rm -rf $(CYGWIN_DISTDIR)/*
88 $(MAKE) -f src/epstool.mak prefix=$(CYGWIN_DISTDIR) EXE=.exe EPSTOOL_ROOT=/usr EPSTOOL_MANDIR=$(CYGWIN_DISTDIR)/usr/share/man install
89 -mkdir -p $(CYGWIN_DOCDIR)
90 chmod a+rx $(CYGWIN_DOCDIR)
91 $(INSTALL) doc/cygwin.README $(CYGWIN_DOCDIR)$(DD)epstool-$(EPSTOOL_VERSION).README
92 (cd $(CYGWIN_DISTDIR); tar -cjf ../$(CYGWIN_PACKAGE).tar.bz2 *)
93 rm -rf $(CYGWIN_DISTDIR)/*
94 mv $(CYGWIN_PACKAGE).tar.bz2 $(CYGWIN_DISTDIR)
95 cp doc/cygwin.hint $(CYGWIN_DISTDIR)/setup.hint
96 make -f src/epstool.mak EXE=.exe EPSDIST=$(CYGWIN_PACKAGE) $(EPSTAR)
97 mv $(EPSTAR) $(CYGWIN_DISTDIR)/$(CYGWIN_PACKAGE)-src.tar
98 bzip2 $(CYGWIN_DISTDIR)/$(CYGWIN_PACKAGE)-src.tar
99
100 clean:
101 -$(RM) $(EPSOBJS)
102 -$(RM) $(EPSTESTOBJS)
103 -$(RM) $(OD)lib.rsp
104 -$(RM) $(BD)epstool$(EXE)
105 -$(RM) $(BD)epstest$(EXE)
106 -rmdir $(OBJDIR)
107