"Fossies" - the Fresh Open Source Software Archive

Member "epstool-3.08/src/unix.mak" (10 Jun 2005, 3981 Bytes) of package /linux/misc/old/ghost/ghostgum/epstool-3.08-os2.zip:


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: unix.mak,v 1.24 2005/06/10 09:39:24 ghostgum Exp $
   17 # Unix makefile for GSview
   18 
   19 BINDIR=./bin
   20 OBJDIR=./obj
   21 SRCDIR=./src
   22 SRCWINDIR=./srcwin
   23 
   24 XINCLUDE=
   25 PFLAGS=-DMULTITHREAD
   26 PLINK=-lpthread -lrt
   27 
   28 GTKCFLAGS=-DGTK `pkg-config --cflags gtk+-2.0` -DGTK_DISABLE_DEPRECATED -DDEBUG_MALLOC
   29 GTKLIBS=`pkg-config --libs gtk+-2.0`
   30 
   31 LIBPNGINC=-Ilibpng -Izlib
   32 LIBPNGCFLAGS=-DHAVE_LIBPNG
   33 LIBPNGLIBS=-lpng
   34 
   35 #LONGFILEDEF=-DLARGEFILES -DFILE_OFFSET="long long" -DDSC_OFFSET="unsigned long long" -DDSC_OFFSET_FORMAT=\"llu\" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
   36 #LONGFILEMOD=clfile
   37 LONGFILEDEF=
   38 LONGFILEMOD=cfile
   39 
   40 include $(SRCDIR)/unixcom.mak
   41 
   42 OBJPLAT=$(OD)xapp$(OBJ) $(OD)xdll$(OBJ) $(OD)xdlg$(OBJ) \
   43  $(OD)xdoc$(OBJ) \
   44  $(OD)xgsimg$(OBJ) $(OD)xgssrv$(OBJ) $(OD)ximg$(OBJ) \
   45  $(OD)xmain$(OBJ) $(OD)xmenu$(OBJ) $(OD)xopt$(OBJ) \
   46  $(OD)xview$(OBJ) $(OD)$(LONGFILEMOD)$(OBJ)
   47 
   48 xview_h=$(SRC)xview.h
   49 
   50 XPM=$(SRCDIR)/xpm/$(NUL)
   51 XPMBUTTONS=$(XPM)xback.xpm $(XPM)xfwd.xpm $(XPM)xgoto.xpm $(XPM)xhelp.xpm \
   52  $(XPM)xinfo.xpm $(XPM)xmagm.xpm $(XPM)xmagp.xpm $(XPM)xnext.xpm \
   53  $(XPM)xnexts.xpm $(XPM)xopen.xpm $(XPM)xprev.xpm $(XPM)xprevs.xpm \
   54  $(XPM)xprint.xpm
   55 
   56 BEGIN=$(OD)lib.rsp
   57 TARGET=$(BD)gsview$(EXE)
   58 
   59 include $(SRCDIR)/common.mak
   60 
   61 $(TARGET): $(OBJS)
   62     $(LINK) $(FE)$(TARGET) $(OBJS) $(LFLAGS)
   63 
   64 $(OD)lib.rsp: makefile
   65     -mkdir $(BINDIR)
   66     -mkdir $(OBJDIR)
   67     echo "dummy" > $(OD)lib.rsp
   68 
   69 # X11/gtk+ specific
   70 
   71 $(OD)xapp$(OBJ): $(SRC)xapp.c $(common_h) $(dscparse_h) \
   72  $(copt_h) $(capp_h) $(cres_h) $(cver_h) $(cview_h) \
   73  en/clang.h en/clang.rc $(SRC)xlang.rc
   74     $(COMP) -Ien -I. $(FOO)xapp$(OBJ) $(CO) $(SRC)xapp.c
   75 
   76 $(OD)xdlg$(OBJ): $(SRC)xdlg.c $(common_h) $(dscparse_h) \
   77  $(capp_h) $(cres_h) $(cview_h)
   78     $(COMP) $(FOO)xdlg$(OBJ) $(CO) $(SRC)xdlg.c
   79 
   80 $(OD)xdoc$(OBJ): $(SRC)xdoc.c $(common_h) $(dscparse_h) $(capp_h) $(cdoc_h)
   81     $(COMP) $(FOO)xdoc$(OBJ) $(CO) $(SRC)xdoc.c
   82 
   83 $(OD)xgsimg$(OBJ): $(SRC)xgsimg.c $(common_h) $(gdevdsp_h) $(errors_h) \
   84  $(capp_h) $(cimg_h) $(cdisplay_h)
   85     $(COMP) $(FOO)xgsimg$(OBJ) $(CO) $(SRC)xgsimg.c
   86 
   87 $(OD)xgssrv$(OBJ): $(SRC)xgssrv.c $(common_h) $(gdevdsp_h) $(dscparse_h) \
   88  $(capp_h) $(cimg_h) $(cdisplay_h) $(copt_h) $(cpdf_h) $(cgssrv_h)
   89     $(COMP) $(FOO)xgssrv$(OBJ) $(CO) $(SRC)xgssrv.c
   90 
   91 $(OD)ximg$(OBJ): $(SRC)ximg.c $(common_h) $(gdevdsp_h) $(errors_h) $(cimg_h)
   92     $(COMP) $(FOO)ximg$(OBJ) $(CO) $(SRC)ximg.c
   93 
   94 $(OD)xmain$(OBJ): $(SRC)xmain.c $(common_h) $(errors_h) $(iapi_h) \
   95  $(dscparse_h) $(copt_h) $(capp_h) $(cargs_h) $(cdoc_h) \
   96  $(cdll_h) $(cgsdll_h) $(cmsg_h) $(cview_h) $(cvcmd_h)
   97     $(COMP) $(FOO)xmain$(OBJ) $(CO) $(SRC)xmain.c
   98 
   99 $(OD)xmenu$(OBJ): $(SRC)xmenu.c $(common_h) $(copt_h) $(cres_h) \
  100  $(cvcmd_h) $(cview_h) $(xview_h) $(XPMBUTTONS)
  101     $(COMP) $(FOO)xmenu$(OBJ) $(CO) $(SRC)xmenu.c
  102 
  103 $(OD)xopt$(OBJ): $(SRC)xopt.c $(common_h) $(dscparse_h) \
  104  $(capp_h) $(cres_h) $(cview_h)
  105     $(COMP) $(FOO)xopt$(OBJ) $(CO) $(SRC)xopt.c
  106 
  107 $(OD)xview$(OBJ): $(SRC)xview.c $(common_h) \
  108  $(errors_h) $(iapi_h) $(gdevdsp_h) \
  109  $(dscparse_h) $(copt_h) $(capp_h) $(cimg_h) $(cdisplay_h) $(cmsg_h) \
  110  $(dpagec_h) $(cgssrv_h) $(cvcmd_h) $(cview_h) $(xview_h)
  111     $(COMP) $(FOO)xview$(OBJ) $(CO) $(SRC)xview.c
  112 
  113 # Languages
  114 $(BD)en.txt: $(SRC)xlang.c $(cver_h) $(cres_h) $(SRC)xlang.rc \
  115  en/clang.h en/clang.rc
  116     $(COMP) -Ien $(FEO)xlangen$(EXE) $(SRC)xlang.c
  117     $(BD)xlangen$(EXE) > $(BD)en.txt
  118 
  119 
  120 clean:
  121     -$(RM) $(OBJS)
  122     -$(RM) $(TARGET)
  123     -$(RM) $(OD)lib.rsp
  124     -rmdir $(BINDIR) $(OBJDIR) 
  125