1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257
|
#ifndef XCOMM
#define XCOMM #
#endif
XCOMM Fig2dev : General Fig code translation program
XCOMM Copyright (c) 1991 Micah Beck
XCOMM Parts Copyright (c) 1995-2002 by Brian V. Smith
XCOMM Parts Copyright (c) 1999 by T. Sato
XCOMM Any party obtaining a copy of these files is granted, free of charge, a
XCOMM full and unrestricted irrevocable, world-wide, paid up, royalty-free,
XCOMM nonexclusive right and license to deal in this software and
XCOMM documentation files (the "Software"), including without limitation the
XCOMM rights to use, copy, modify, merge, publish and/or distribute copies of
XCOMM the Software, and to permit persons who receive copies from any such
XCOMM party to do so, with the only requirement being that this copyright
XCOMM notice remain intact.
XCOMM ******
XCOMM If you want to install fig2dev in a directory other than the default X11 binary
XCOMM directory, uncomment the following "BINDIR" line and change the path
XCOMM to the full path of the directory where you want fig2dev to be installed.
XCOMM Also, you may have to uncomment and redefine MKDIRHIER because "make" looks
XCOMM for it relative to the BINDIR variable.
XCOMM
XCOMM BINDIR = /usr/bin/X11
XCOMM MKDIRHIER = /bin/sh /usr/bin/X11/mkdirhier -p
XCOMM MANDIR tells where the standard man pages should go (no need to change it
XCOMM if you want the man pages installed in the standard place on your system
XCOMM MANDIR = $(MANSOURCEPATH)$(MANSUFFIX)
XCOMM ******
XCOMM You should point XFIGLIBDIR to the same directory you did when you compiled
XCOMM and installed xfig.
XFIGLIBDIR = /usr/share/xfig
XCOMM ******
XCOMM If your system doesn't have the strerror() function (has sys_errlist) then
XCOMM uncomment NEED_STRERROR.
XCOMM NEED_STRERROR = -DNEED_STRERROR
XCOMM The following probably only applies to Windows 9x/NT:
XCOMM If your system can open files in text and binary modes and has the
XCOMM setmode() function, uncomment HAVE_SETMODE
XCOMM HAVE_SETMODE = -DHAVE_SETMODE
XCOMM ****************
XCOMM Uncomment the following line if your compiler supports
XCOMM inline functions. With the "INLINE" keyword, you should notice that
XCOMM the display will be a bit faster in complex figures
USEINLINE = -DUSE_INLINE
XCOMM ****************
XCOMM Change RGB if necessary, to point to your rgb.txt color database
XCOMM file (for X11). This is needed for the -g (background color) option.
XCOMM Note that this changed slightly from the previous versions - you need
XCOMM the full name (rgb.txt) now.
XCOMM
RGB = /etc/X11/rgb.txt
XCOMM Comment out the following #define USEPNG if you don't want PNG support
XCOMM Uncomment the #define for USEPNG if you want to be able to import
XCOMM PNG (Portable Network Graphics) files.
#define USEPNG
XCOMM Redefine the following if your PNG library, zlib library and/or include
XCOMM file are in different places
#ifdef USEPNG
PNGLIBDIR = $(USRLIBDIR)
ZLIBDIR = $(USRLIBDIR)
PNGINC = -I/usr/include/X11
#endif
XCOMM ****************
XCOMM Uncomment the #define for USEXPM if you want to use the XPM
XCOMM (color pixmap) package.
XCOMM You need version 3.4c or newer of the XPM package.
XCOMM
XCOMM Change XPMLIBDIR if necessary to point to the xpm library (libXpm)
XCOMM Change XPMINC if necessary to point to the include file for xpm (xpm.h)
XCOMM
#define USEXPM
#ifdef USEXPM
XPMLIBDIR = $(USRLIBDIR)
XPMINC = -I/usr/include/X11
#endif
XCOMM ****************
XCOMM Uncomment the following to set default paper size to A4
DDA4 = -DA4
XCOMM ****************
XCOMM Uncomment the following to set IBM Graphics Enhancement Cartridge
XCOMM DDIBMGEC = -DIBMGEC
XCOMM ****************
XCOMM Comment out the DDNFSS = ... line if you don't want NFSS2 font selection
XCOMM for LaTeX texts
XCOMM Comment out the DDLATEX2E_GRAPHICS = ... line if you don't want to use the
XCOMM standard graphics package distributed w/ LaTeX2e
XCOMM UNcomment the DDEPSFIG = ... line if you want to use the deprecated epsfig macros
XCOMM distributed w/ LaTeX2e (DDLATEX2E_GRAPHICS must also be defined)
XCOMM
XCOMM Hint: Users of LaTeX2e will probably want to include both DDNFSS
XCOMM and DDLATEX2E_GRAPHICS options; users of LaTeX 2.09 will
XCOMM probably want to include neither.
DDNFSS = -DNFSS
DDLATEX2E_GRAPHICS = -DLATEX2E_GRAPHICS
XCOMM DDEPSFIG = -DEPSFIG
XCOMM ****************
XCOMM Comment out the DDDVIPS to NOT use dvips for the DVI-to-PostScript driver
DDDVIPS = -DDVIPS
XCOMM ****************
XCOMM If your system doesn't have strcasecmp and/or strncasecmp
XCOMM uncomment the following two definitions
XCOMM HAVE_NO_STRCASECMP = -DHAVE_NO_STRCASECMP
XCOMM HAVE_NO_STRNCASECMP = -DHAVE_NO_STRNCASECMP
XCOMM ****************
XCOMM If your system doesn't have strstr() then uncomment the following line
XCOMM #define NOSTRSTR
XCOMM ****************
XCOMM Comment out the next line if you have any problems with locale not being found
#define I18N
#ifdef I18N
I18N_DEFS = -DI18N
FIG2DEV_LIBDIR = /usr/share/xfig/fig2dev
I18N_DEV_DEFS = $(I18N_DEFS) -DFIG2DEV_LIBDIR=$(FIG2DEV_LIBDIR) -DFIG2DEV_LIBDIR_STR=\\\"$(FIG2DEV_LIBDIR)\\\"
#endif /* I18N */
XCOMM **************************************************************
XCOMM *** You shouldn't have to change anything below this point ***
XCOMM **************************************************************
DIR_DEFS= -DBITMAPDIR=\\\"$(DESTDIR)$(XFIGLIBDIR)/bitmaps\\\"
#ifdef USEPNG
DUSEPNG = -DUSE_PNG
PNGLIBS = -L$(PNGLIBDIR) -lpng
#endif /* USEPNG */
#ifdef USEXPM
DUSEXPM = -DUSE_XPM
XPMLIBS = -L$(XPMLIBDIR) -lXpm
#endif /* USEXPM */
#if defined(NOSTRSTR)
STRSTRC= strstr.c
STRSTRO= strstr.o
#endif /* defined(NOSTRSTR) */
DEFINES = $(NEED_STRERROR) $(HAVE_NO_STRCASECMP) $(HAVE_NO_STRNCASECMP) $(DDNFSS) $(USEINLINE) \
$(I18N_DEFS) $(HAVE_SETMODE) $(DUSEPNG) $(DUSEXPM) $(PNGINC) $(XPMINC)
IMAKE_DEFINES = $(DUSEPNG) $(DUSEXPM) $(I18N_DEV_DEFS)
DEVDEFINES = $(DUSEPNG) $(DUSEXPM) $(PNGINC) $(XPMINC) $(DDNFSS) $(DDA4) \
$(DDLATEX2E_GRAPHICS) $(DDEPSFIG) $(DDIBMGEC) $(DDDVIPS) $(I18N_DEV_DEFS)
#define IHaveSubdirs
#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
DEVDIR = dev
SUBDIRS = $(DEVDIR)
LIBTRANSFIG = $(DEVDIR)/libtransfig.a
INCLUDES = -I..
LOCAL_LIBRARIES = $(LIBTRANSFIG)
#if defined(NetBSDArchitecture) || defined(FreeBSDArchitecture)
SYS_LIBRARIES = $(PNGLIBS) $(XPMLIBS) -lm -lcompat
#else
SYS_LIBRARIES = $(PNGLIBS) $(XPMLIBS) -lm
#endif
DEPLIBS = $(LIBTRANSFIG)
#if !(defined(SunOSPlatform) && (OSMajorVersion>=5))
GETOPTC= getopt.c
GETOPTO= getopt.o
#endif
SRCS = fig2dev.c psfonts.c iso2tex.c arrow.c bound.c colors.c trans_spline.c \
free.c read.c read1_3.c latex_line.c localmath.c $(STRSTRC) $(GETOPTC)
OBJS = fig2dev.o psfonts.o iso2tex.o arrow.o bound.o colors.o trans_spline.o \
free.o read.o read1_3.o latex_line.o localmath.o $(STRSTRO) $(GETOPTO)
fig2dev: $(DEPLIBS)
RGBFILE = -DRGB_FILE=\"$(RGB)\"
SpecialObjectRule(colors.o, Imakefile , $(RGBFILE))
SpecialObjectRule(fig2dev.o, fig2dev.c drivers.h ../patchlevel.h, )
XCOMM only compile our jpeg if the use doesn't have one installed
$(LIBTRANSFIG)::
cd $(DEVDIR); $(MAKE) DEFINES="$(DEVDEFINES) $(DIR_DEFS)" libtransfig.a
DependSubdirs($(SUBDIRS))
ComplexProgramTarget(fig2dev)
all:: fig2dev.man fig2ps2tex.man pic2tpic.man
XCOMM Install the tk bitmaps here
install::
@(cd bitmaps ; \
if [ -d $(DESTDIR)$(XFIGLIBDIR)/bitmaps ]; then set +x; \
else (set -x; $(MKDIRHIER) $(DESTDIR)$(XFIGLIBDIR)/bitmaps ); fi ; \
echo Copying bitmap files for tk to $(DESTDIR)$(XFIGLIBDIR)/bitmaps ; \
for f in * ; do \
$(INSTALL) -m644 $$f $(DESTDIR)$(XFIGLIBDIR)/bitmaps ; \
done) ;
install.all::
$(MAKE) install
$(MAKE) install.man
InstallScript(fig2ps2tex,$(BINDIR))
InstallScript(fig2ps2tex.sh,$(BINDIR))
InstallScript(pic2tpic,$(BINDIR))
InstallManPage(fig2ps2tex,$(MANDIR))
InstallManPage(pic2tpic,$(MANDIR))
fig2dev.man:: ../doc/fig2dev.1
$(RM) fig2dev.man
-$(LN) ../doc/fig2dev.1 fig2dev.man
fig2ps2tex.man:: ../doc/fig2ps2tex.1
$(RM) fig2ps2tex.man
-$(LN) ../doc/fig2ps2tex.1 fig2ps2tex.man
pic2tpic.man:: ../doc/pic2tpic.1
$(RM) pic2tpic.man
-$(LN) ../doc/pic2tpic.1 pic2tpic.man
|