summaryrefslogtreecommitdiff
path: root/Build/source/utils/jpeg2ps/Makefile
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-17 21:16:42 +0000
committerKarl Berry <karl@freefriends.org>2006-01-17 21:16:42 +0000
commita3d3111bfe26b8e5f5bc6049dfb2a4ca2edc7881 (patch)
treef4a8a34f904c1bb86adcc3ae0e14434badc6dbe4 /Build/source/utils/jpeg2ps/Makefile
parent6c0eafbb1395d426a72a74538e0b2a95e8344ca6 (diff)
utils 1
git-svn-id: svn://tug.org/texlive/trunk@1484 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/jpeg2ps/Makefile')
-rw-r--r--Build/source/utils/jpeg2ps/Makefile68
1 files changed, 68 insertions, 0 deletions
diff --git a/Build/source/utils/jpeg2ps/Makefile b/Build/source/utils/jpeg2ps/Makefile
new file mode 100644
index 00000000000..a1b5aa98706
--- /dev/null
+++ b/Build/source/utils/jpeg2ps/Makefile
@@ -0,0 +1,68 @@
+# Makefile for jpeg2ps
+# (C) Thomas Merz 1994-1999
+
+VERSION=1.8
+DIRNAME = jpeg2ps-$(VERSION)
+TARFILE = jpeg2ps-$(VERSION).tar
+ZIPFILE = jpeg2ps-$(VERSION).zip
+
+# ----------------------------------------------------------------------------
+# Available compile time options:
+# -DKNR for Kernighan/Ritchie compilers
+# -DA4 gives A4 as default page size, omitting -DA4 gives U.S. letter format
+# -DDOS adds DOS and OS/2 support
+
+# The following was reported to work for emx/gcc 0.9c fix04 under OS/2:
+# make -f Makefile "CCFLAGS=-c -DA4 -DDOS -O2" "LDFLAGS=-Zexe -s"
+
+CC=gcc
+CCFLAGS= -c -DA4
+LD=gcc
+LDFLAGS=
+OBJ=o
+EXE=
+RM=rm -f
+
+.c.$(OBJ) :
+ $(CC) $(CCFLAGS) $*.c
+
+all: jpeg2ps$(EXE)
+
+# If your system doesn't have getopt(), add the supplied getopt.c
+# module below in the jpeg2ps line.
+
+jpeg2ps$(EXE): jpeg2ps.$(OBJ) readjpeg.$(OBJ) asc85ec.$(OBJ)
+ $(LD) $(LDFLAGS) -o jpeg2ps$(EXE) jpeg2ps.$(OBJ) readjpeg.$(OBJ) asc85ec.$(OBJ)
+
+DISTFILES = jpeg2ps.c psimage.h readjpeg.c asc85ec.c getopt.c Makefile jpeg2ps.dsp jpeg2ps.txt descrip.mms
+
+DOSDISTFILES = $(DISTFILES) jpeg2ps.exe
+
+CONVFILES = jpeg2ps.c psimage.h readjpeg.c asc85ec.c getopt.c Makefile jpeg2ps.txt
+
+dist: $(DOSDISTFILES)
+ $(RM) $(ZIPFILE) $(TARFILE).gz; \
+ ln -s . $(DIRNAME); \
+ lineend -d $(CONVFILES); \
+ (for i in $(DOSDISTFILES); do \
+ echo $$i; \
+ done) | sed "s;.*;$(DIRNAME)/&;" >distfiles; \
+ zip -9 $(ZIPFILE) `cat distfiles`; \
+ (for i in $(DISTFILES); do \
+ echo $$i; \
+ done) | sed "s;.*;$(DIRNAME)/&;" >distfiles; \
+ lineend -u $(CONVFILES); \
+ tar cvf $(TARFILE) `cat distfiles`; \
+ gzip -9 $(TARFILE); \
+ $(RM) $(DIRNAME) distfiles;
+
+clean:
+ $(RM) *.$(OBJ) jpeg2ps$(EXE) $(TARFILE) $(ZIPFILE)
+
+jpeg2ps.$(OBJ): jpeg2ps.c psimage.h
+
+readjpeg.$(OBJ): readjpeg.c psimage.h
+
+asc85ec.$(OBJ): asc85ec.c psimage.h
+
+getopt.$(OBJ): getopt.c