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 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303
|
# Generated automatically from Makefile.in by configure.
# Makefile for pstoedit. Modified for OS/2 DLL based version.
# Install pstoedit in $prefix/bin and
# fontmap files in $prefix/lib
#
SHELL=g:/bin/sh.exe
prefix=g:
exec_prefix=${prefix}
bindir=${exec_prefix}/bin
libdir=${exec_prefix}/lib
mandir=${prefix}/man
MANEXT=1
MANDIR=$(mandir)/man$(MANEXT)
#check this out ...
#LOCALDEFINES=-DHAVE_LIBMING
#LOCALLIBS=-lming
AWK=gawk
INSTALL=g:/bin/install.exe -c
#do NOT use this! GS by definition points to the executable gs.exe
#GS=gsdll2.dll
PDLL=pstoedit.dll
PDEF=pstoedit.def
PLIB=pstoedit.a
DEFFILE=pstoeditexe.def
# Choose a compiler + linker
CCC=gcc.exe -DBUGGYGPP -ansi -pedantic -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith -Wstrict-prototypes
LDLIBS=$(LOCALLIBS) -lm -ldl -lstdcpp
#LDLIBS=-lcext -lstdcpp
MAINLIBS=-lstdcpp
#release
CCFLAGS=-DDEFAULTGS=$(GS) -O2 -m486 -Zmt -DINTERNALBOOL -D__OS2__='' -I. -I../othersrc/gsdllinc
#LINKDLL=gcc.exe -s -Zmtd -Zomf -Zdll -Zlinker "/noi"
LINKDLL=gcc.exe -s -Zmts -Zsys -Zso -Zomf -Zdll -Zlinker "/noi"
LINK=gcc.exe -Zmts -Zomf -Zexe -s
#debug
#CCFLAGS=-DDEFAULTGS=$(GS) -g -m486 -Zmt -DINTERNALBOOL -D__OS2__='' -I. -I../othersrc/gsdllinc
#LINKDLL=gcc.exe -Zmts -Zsys -Zso -Zomf -Zdll -Zlinker "/noi"
#LINK=gcc.exe -Zmts -Zomf -Zexe
IMPLIB=implib
INSTALL_PROGRAM=$(INSTALL)
INSTALL_DATA=$(INSTALL) -m 644
INSTALL_DIR=$(INSTALL) -d -m755 # or: mkdir -p
OBJEXT=obj
EXEEXT=.exe
OUTPUT=-o pstoedit
SPECIFICDRIVERS= drvtgif.$(OBJEXT) drvfig.$(OBJEXT) drvidraw.$(OBJEXT) drvgnplt.$(OBJEXT) drvmet.$(OBJEXT)
MAIN=cmdmain
target=pstoedit.exe
# For developers only:
# Uncomment the following lines (LEXSOURCE= and PSHEADER=) if you have
# pstoedit.pro and makeedit.l and need to make some changes in these files.
#LEXSOURCE=lexyy.cpp
# This is some sort ot hack. If LEXSOURCE is not defined, the make rule below
# only relates to dummy.cpp, which is not used by the main target.
#PSHEADER=pstoedit.ph
# same comment applies to PSHEADER variable
#############################################################
default : $(target)
# No changes should be necessary below this line
.SUFFIXES: .cpp .obj .o .chk
.cpp.o:
$(CCC) -c $(LOCALDEFINES) $(CCFLAGS) $(FORCECPPFLAGS) $<
.cpp.obj:
$(CCC) -c -Zomf $(LOCALDEFINES) $(CCFLAGS) $(FORCECPPFLAGS) $<
# $(CCC) /c $(LOCALDEFINES) $(CCFLAGS) $&.cpp
.c.o:
$(CCC) -c -Zomf $(LOCALDEFINES) $(CCFLAGS) -Zc++-comments $<
$(DEFFILE):
@echo NAME pstoedit WINDOWCOMPAT > $@
@echo DESCRIPTION '"cmd line tool pstoedit.exe, THff 2002, (c) W. Glunz"' >> $@
@echo STACKSIZE 512000 >> $@
@echo >> $@
$(PDEF):
@echo LIBRARY pstoedit INITINSTANCE TERMINSTANCE > $@
@echo DESCRIPTION '"pstoedit.dll, THff 2002, (c) W. Glunz"' >> $@
@echo >> $@
@echo DATA >> $@
@echo MULTIPLE NONSHARED >> $@
@echo >> $@
@echo EXPORTS >> $@
@echo '"pstoedit" @1' >> $@
@echo '"pstoedit_checkversion" @2' >> $@
@echo '"pstoeditwithghostscript" @3' >> $@
@echo '"pstoedit_plainC" @4' >> $@
@echo '"getPstoeditDriverInfo_plainC" @5' >> $@
@echo '"clearPstoeditDriverInfo_plainC" @6' >> $@
@echo '"setPstoeditOutputFunction" @7' >> $@
@echo >> $@
# Standard Drivers (for all systems)
STANDARDDRIVERS=\
drvlwo.$(OBJEXT) \
drvrib.$(OBJEXT) \
drvrpl.$(OBJEXT) \
drvdxf.$(OBJEXT) \
drvjava.$(OBJEXT) \
drvjava2.$(OBJEXT) \
drvlplot.$(OBJEXT) \
drvpdf.$(OBJEXT) \
drvkillu.$(OBJEXT) \
drvsk.$(OBJEXT) \
drvmpost.$(OBJEXT) \
drvmma.$(OBJEXT) \
drvswf.$(OBJEXT) \
drvlatex2e.$(OBJEXT) \
drvpic.$(OBJEXT) \
drvhpgl.$(OBJEXT) \
drvtk.$(OBJEXT)
HELPERS=
# Comment out the next line if you don't want the sample driver to be included
SAMPLEDRIVER=drvsampl.$(OBJEXT)
DRIVERS=$(STANDARDDRIVERS) $(LOCALDRIVERS) $(SAMPLEDRIVER) $(SPECIFICDRIVERS)
OBJECTS=dynload.$(OBJEXT) callgs.$(OBJEXT) $(MAIN).$(OBJEXT) pstoedit.$(OBJEXT) lexyy.$(OBJEXT) miscutil.$(OBJEXT) cbstream.$(OBJEXT) image.$(OBJEXT) drvbase.$(OBJEXT) subpath.$(OBJEXT) $(DRIVERS) $(HELPERS)
TESTDRIVER=drvpdf
libdemo : libusagedemo.$(OBJEXT) drvbase.$(OBJEXT) $(TESTDRIVER).$(OBJEXT)
$(LINK) -o libusagedemo libusagedemo.$(OBJEXT) drvbase.$(OBJEXT) $(TESTDRIVER).$(OBJEXT)
$(target) : $(PLIB) $(MAIN).$(OBJEXT) $(DEFFILE)
$(LINK) $(OUTPUT) $(MAIN).$(OBJEXT) $(PLIB) $(MAINLIBS) $(DEFFILE)
$(PLIB) : $(PDLL)
$(IMPLIB) /noignorecase $@ $<
# $(IMPLIB) -o $(PLIB) $(PDEF)
$(PDLL) : $(OBJECTS) $(PDEF)
$(LINKDLL) -o $(PDLL) $(OBJECTS) $(LDLIBS) $(PDEF)
dummy.cpp $(LEXSOURCE) : makeedit.l
flex -L -8 makeedit.l
-mv lex.yy.c lexyy.cpp
-mv lexyy.c lexyy.cpp
clean:
rm -f core pstoedit.pure pstoedit.proof pstoedit$(EXEEXT) *.$(OBJEXT) *.chk *.obj pstoedit.dll pstoedit.lib pstoedit.def pstoedit *~
test: pstoedit$(EXEEXT)
-cd ../examples;\
../src/pstoedit -f tgif illusion.ps illusion.ps.obj;\
tgif illusion.ps.obj;\
../src/pstoedit -scale 2 -f tgif illusion.ps illusion.ps.obj;\
tgif illusion.ps.obj;\
../src/pstoedit -dt -f tgif illusion.ps illusion.ps.obj;\
tgif illusion.ps.obj;\
../src/pstoedit -f tgif eschertr.ps eschertr.ps.obj;\
tgif eschertr.ps.obj;\
../src/pstoedit -f fig illusion.ps illusion.ps.fig;\
xfig illusion.ps.fig;\
../src/pstoedit -f fig eschertr.ps eschertr.ps.fig;\
xfig eschertr.ps.fig;\
../src/pstoedit -f fig spiral.ps spiral.ps.fig;\
xfig spiral.ps.fig;\
echo "now trying RIB for RenderMan ";\
../src/pstoedit -dt -f rib illusion.ps illusion.ps.rib ;\
../src/pstoedit -dt -f rib eschertr.ps eschertr.ps.rib ;\
echo "now trying LWO for LightWave 3D ";\
../src/pstoedit -dt -f lwo illusion.ps illusion.ps.lwo ;\
../src/pstoedit -dt -f lwo eschertr.ps eschertr.ps.lwo ;\
echo "now trying RPL for Real3D ";\
../src/pstoedit -dt -f rpl illusion.ps illusion.ps.rpl ;\
../src/pstoedit -dt -f rpl eschertr.ps eschertr.ps.rpl ;\
echo "tests done";
# groff -man ../doc/pstoedit.1 > pstoedit.man.ps
# if you don't have groff, try the following instead
# troff -man -Tpsc ../doc/pstoedit.1 | psdit > pstoedit.man.ps
# for a really large test use the following
TESTOPTIONS=-dt -nc -sclip -ssp "-flat 10" -merge "-page 1" -split
TESTFILES=*.ps
# for a small test use the following
TESTOPTIONS=-v -dt "-flat 10" -merge
TESTFILES=eschertr.ps
bigtest: pstoedit$(EXEEXT)
-cd ../examples;\
echo "set -x " > runalltests; \
for format in `../src/pstoedit -help 2>&1 | awk 'BEGIN {p=0;} /^Available/ { p=1; next; } (p==1) { print $$1; }' | grep ":" | sed -e 's/://g' ` ; \
do \
for infile in $(TESTFILES) ; \
do \
for option in $(TESTOPTIONS) ; \
do \
echo ../src/pstoedit $${option} -f $${format} $${infile} $${infile}.out.$${format} >> runalltests; \
done; \
done; \
done; \
sh runalltests; \
echo "big tests done";
drvmdraw.ph : drvmdraw.pro
$(AWK) -f mkmdraw.awk < drvmdraw.pro > drvmdraw.ph
dummy.ph $(PSHEADER) : pstoedit.pro
$(AWK) -f mkpspro.awk < pstoedit.pro > pstoedit.ph
install: pstoedit$(EXEEXT) ../doc/pstoedit.1
if [ ! -d $(bindir) ] ; then \
$(INSTALL_DIR) $(bindir); \
fi
$(INSTALL_PROGRAM) pstoedit$(EXEEXT) $(bindir)
if [ ! -d $(libdir) ] ; then \
$(INSTALL_DIR) $(libdir); \
fi
$(INSTALL_DATA) ../misc/mpost.fmp $(libdir)
$(INSTALL_DATA) ../misc/latex2e.fmp $(libdir)
if [ ! -d $(MANDIR) ] ; then \
$(INSTALL_DIR) $(MANDIR); \
fi
$(INSTALL_DATA) ../doc/pstoedit.1 $(MANDIR)/pstoedit.$(MANEXT);
echo "please copy ../doc/pstoedit.htm to a suitable place"
# Just for running static check tools
LINTLIKECHECKER=cppchecker
LINTLIKECHECKER=flintchecker
ALLCHKS=\
drvbase.chk\
drvwmf.chk\
drvdxf.chk\
drvfig.chk\
drvgnplt.chk\
drvmet.chk\
drvpdf.chk\
drvjava.chk\
drvsampl.chk\
drvtgif.chk\
drvidraw.chk\
drvlwo.chk\
drvrib.chk\
drvrpl.chk\
drvavf.chk\
lexyy.chk\
cmdmain.chk\
pstoedit.chk\
cdlib.chk
.cpp.chk:
$(LINTLIKECHECKER) $< $@ -c $(LOCALDEFINES) $(CCFLAGS) $(FORCECPPFLAGS)
checknamed: $(ALLCHKS)
echo checks done
checkall:
for f in *.cpp; do \
$(LINTLIKECHECKER) $$f `basename $$f .cpp`.log $(LOCALDEFINES) $(CCFLAGS) $(FORCECPPFLAGS) ;\
done
#depend:
# makedepend *.cpp
# DO NOT DELETE
lexyy.$(OBJEXT): lexyy.cpp drvbase.h drvfuncs.h image.h
drvbase.$(OBJEXT): drvbase.cpp drvbase.h drvfuncs.h image.h
pstoedit.$(OBJEXT): pstoedit.cpp drvbase.h drvfuncs.h psfront.h pstoedit.h pstoedit.ph version.h
$(MAIN).$(OBJEXT): $(MAIN).cpp pstoedit.h
drvtgif.$(OBJEXT): drvtgif.cpp drvtgif.h drvbase.h drvfuncs.h image.h
drvtk.$(OBJEXT): drvtk.cpp drvtk.h drvbase.h drvfuncs.h image.h
drvlwo.$(OBJEXT): drvlwo.cpp drvlwo.h drvbase.h drvfuncs.h image.h
drvrib.$(OBJEXT): drvrib.cpp drvrib.h drvbase.h drvfuncs.h image.h
drvrpl.$(OBJEXT): drvrpl.cpp drvrpl.h drvbase.h drvfuncs.h image.h
drvidraw.$(OBJEXT): drvidraw.cpp drvidraw.h drvbase.h drvfuncs.h image.h
drvfig.$(OBJEXT): drvfig.cpp drvfig.h drvbase.h drvfuncs.h image.h
drvgnplt.$(OBJEXT): drvgnplt.cpp drvgnplt.h drvbase.h drvfuncs.h image.h
drvdxf.$(OBJEXT): drvdxf.cpp drvdxf.h drvbase.h drvfuncs.h image.h
drvmet.$(OBJEXT): drvmet.cpp drvmet.h drvbase.h drvfuncs.h image.h
drvpdf.$(OBJEXT): drvpdf.cpp drvpdf.h drvbase.h drvfuncs.h image.h
drvtext.$(OBJEXT): drvtext.cpp drvtext.h drvbase.h drvfuncs.h image.h
cdlib.$(OBJEXT): cdlib.cpp
drvmdraw.$(OBJEXT): drvmdraw.cpp drvbase.h drvmdraw.h drvfuncs.h image.h drvmdraw.ph
drvsampl.$(OBJEXT): drvsampl.cpp drvbase.h drvsampl.h drvfuncs.h image.h
drvjava.$(OBJEXT): drvjava.cpp drvbase.h drvjava.h drvfuncs.h image.h
drvjava2.$(OBJEXT): drvjava2.cpp drvbase.h drvjava2.h drvfuncs.h image.h
drvwmf.$(OBJEXT): drvwmf.cpp drvbase.h drvwmf.h drvfuncs.h image.h
callgs.$(OBJEXT): callgs.cpp ../othersrc/gsdllinc/dwmainc.c ../othersrc/gsdllinc/getini.c
pstoedit.ph: # dummy for RiscOS GNU make's screwed dependencies
|