2000-05-21 08:41:19 +00:00
|
|
|
--- ppm/Makefile.orig Tue May 16 10:30:30 2000
|
|
|
|
+++ ppm/Makefile Sat May 20 00:00:00 2000
|
|
|
|
@@ -3,8 +3,7 @@
|
2000-05-19 08:34:13 +00:00
|
|
|
|
|
|
|
LIBROOT = ppm
|
|
|
|
LIBPPM = lib$(LIBROOT).$(NETPBMLIBSUFFIX)
|
|
|
|
-MAJ = 9
|
2000-05-21 08:41:19 +00:00
|
|
|
-MIN = 1
|
|
|
|
+SOVER = 1
|
2000-05-19 08:34:13 +00:00
|
|
|
|
|
|
|
PGMDIR = $(SRCDIR)/pgm
|
2000-05-21 08:41:19 +00:00
|
|
|
LIBPGM = libpgm.$(NETPBMLIBSUFFIX)
|
|
|
|
@@ -24,7 +23,7 @@
|
2000-04-07 21:54:04 +00:00
|
|
|
PORTBINARIES = bmptoppm eyuvtoppm gouldtoppm hpcdtoppm ilbmtoppm imgtoppm \
|
2000-04-08 06:12:34 +00:00
|
|
|
mtvtoppm pcxtoppm pgmtoppm pi1toppm picttoppm \
|
|
|
|
pjtoppm \
|
2000-05-19 08:34:13 +00:00
|
|
|
- ppm3d ppmbrighten ppmchange ppmcolormask \
|
|
|
|
+ ppm3d ppmbrighten ppmchange \
|
|
|
|
ppmdim ppmdist ppmdither \
|
|
|
|
ppmflash ppmhist ppmmake ppmmix ppmnorm \
|
|
|
|
ppmquant ppmrelief ppmshift ppmspread ppmtoacad \
|
2000-05-21 08:41:19 +00:00
|
|
|
@@ -34,12 +33,13 @@
|
2000-04-27 11:28:19 +00:00
|
|
|
ppmtotga ppmtouil ppmtoxpm ppmtoyuv \
|
2000-05-19 08:34:13 +00:00
|
|
|
ppmtoyuvsplit ppmtv \
|
2000-04-27 11:28:19 +00:00
|
|
|
qrttoppm rawtoppm rgb3toppm sldtoppm spctoppm \
|
|
|
|
- sputoppm tgatoppm ximtoppm xpmtoppm xvminitoppm \
|
|
|
|
+ sputoppm xpmtoppm xvminitoppm \
|
|
|
|
yuvtoppm yuvsplittoppm
|
|
|
|
|
2000-04-07 21:54:04 +00:00
|
|
|
# We don't build vidtoppm by default, because it requires special libraries
|
|
|
|
# and there is no known requirement for vidtoppm.
|
2000-04-01 23:57:38 +00:00
|
|
|
|
2000-05-19 08:34:13 +00:00
|
|
|
+NOMERGEBINARIES = ppmcolormask ppmntsc tgatoppm ximtoppm
|
2000-04-01 23:57:38 +00:00
|
|
|
ifneq ($(JPEGLIB_DIR), NONE)
|
|
|
|
ifneq ($(JPEGHDR_DIR), NONE)
|
|
|
|
NOMERGEBINARIES += ppmtojpeg
|
2000-05-21 08:41:19 +00:00
|
|
|
@@ -48,7 +48,7 @@
|
|
|
|
|
|
|
|
MERGEBINARIES = $(PORTBINARIES) $(MATHBINARIES)
|
2000-05-19 08:34:13 +00:00
|
|
|
|
|
|
|
-MATHBINARIES = ppmcie ppmforge ppmlabel ppmntsc ppmpat ppmqvga ppmtomap
|
|
|
|
+MATHBINARIES = ppmcie ppmforge ppmlabel ppmpat ppmqvga ppmtomap
|
2000-05-21 08:41:19 +00:00
|
|
|
BINARIES = $(MERGEBINARIES) $(NOMERGEBINARIES)
|
2000-05-19 08:34:13 +00:00
|
|
|
SCRIPTS = ppmquantall ppmshadow ppmfade
|
|
|
|
|
2000-05-21 08:41:19 +00:00
|
|
|
@@ -57,6 +57,8 @@
|
|
|
|
MERGE_OBJECTS = $(patsubst %,%.o2, $(MERGEBINARIES))
|
2000-04-01 23:57:38 +00:00
|
|
|
|
|
|
|
LIBOBJECTS = libppm1.o libppm2.o libppm3.o libppm4.o libppm5.o bitio.o
|
|
|
|
+LIBSOBJECTS = libppm1.so libppm2.so libppm3.so libppm4.so libppm5.so bitio.so
|
2000-05-21 08:41:19 +00:00
|
|
|
+LIBSHHOPT = $(SRCDIR)/shhopt/libshhopt.a
|
2000-04-01 23:57:38 +00:00
|
|
|
|
|
|
|
MANUALS1 = $(BINARIES) $(SCRIPTS)
|
|
|
|
MANUALS3 = libppm
|
2000-05-21 08:41:19 +00:00
|
|
|
@@ -64,18 +66,24 @@
|
2000-04-01 23:57:38 +00:00
|
|
|
|
|
|
|
MERGENAME= ppmmerge
|
|
|
|
|
2000-05-21 08:41:19 +00:00
|
|
|
-INTERFACE_HEADERS = ppm.h ppmcmap.h
|
2000-04-01 23:57:38 +00:00
|
|
|
+INTERFACE_HEADERS = ppm.h ppmcmap.h ppmdraw.h
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: $(BINARIES)
|
2000-05-21 08:41:19 +00:00
|
|
|
- $(MAKE) -C ppmtompeg all
|
|
|
|
.PHONY: merge
|
|
|
|
merge: $(MERGENAME) $(NOMERGEBINARIES)
|
|
|
|
- $(MAKE) -C ppmtompeg all
|
|
|
|
|
|
|
|
-ppmtojpeg: %: %.o $(NETPBMLIBS) $(LIBOPT)
|
|
|
|
+ppmcolormask tgatoppm ximtoppm: %: %.o $(NETPBMLIBS) $(LIBOPT) $(LIBSHHOPT)
|
|
|
|
$(LD) $(LDFLAGS) -o $@ $@.o `$(LIBOPT) $(NETPBMLIBS)` \
|
|
|
|
- -L$(JPEGLIB_DIR) -ljpeg $(CDEBUG)
|
|
|
|
+ $(LIBSHHOPT) $(CDEBUG)
|
2000-05-19 08:34:13 +00:00
|
|
|
+
|
2000-05-21 08:41:19 +00:00
|
|
|
+ppmntsc: %: %.o $(NETPBMLIBS) $(LIBOPT) $(LIBSHHOPT)
|
|
|
|
+ $(LD) $(LDFLAGS) -o $@ $@.o `$(LIBOPT) $(NETPBMLIBS)` \
|
|
|
|
+ -lm $(LIBSHHOPT) $(CDEBUG)
|
2000-05-19 08:34:13 +00:00
|
|
|
+
|
2000-05-21 08:41:19 +00:00
|
|
|
+ppmtojpeg: %: %.o $(NETPBMLIBS) $(LIBOPT) $(LIBSHHOPT)
|
|
|
|
+ $(LD) $(LDFLAGS) -o $@ $@.o `$(LIBOPT) $(NETPBMLIBS)` \
|
|
|
|
+ -L$(JPEGLIB_DIR) -ljpeg $(LIBSHHOPT) $(CDEBUG)
|
2000-04-01 23:57:38 +00:00
|
|
|
|
2000-05-19 08:34:13 +00:00
|
|
|
# And libraries.
|
|
|
|
$(PBMDIR)/$(LIBPBM): FORCE
|
2000-05-21 08:41:19 +00:00
|
|
|
@@ -88,19 +96,19 @@
|
|
|
|
|
|
|
|
.PHONY: install.merge
|
|
|
|
install.merge: install.merge.common
|
|
|
|
- $(MAKE) -C ppmtompeg install.bin
|
|
|
|
|
|
|
|
.PHONY: install.lib
|
2000-05-19 08:34:13 +00:00
|
|
|
install.lib: install.lib.common
|
2000-04-01 23:57:38 +00:00
|
|
|
|
2000-05-21 08:41:19 +00:00
|
|
|
.PHONY: install.man
|
|
|
|
install.man: install.man.common
|
|
|
|
- $(MAKE) -C ppmtompeg install.man
|
|
|
|
|
2000-05-19 08:34:13 +00:00
|
|
|
include $(SRCDIR)/Makefile.common
|
2000-05-21 08:41:19 +00:00
|
|
|
|
2000-05-19 08:34:13 +00:00
|
|
|
+$(SRCDIR)/shhopt/libshhopt.a:
|
|
|
|
+ cd ../shhopt; $(MAKE) libshhopt.a
|
2000-05-21 08:41:19 +00:00
|
|
|
+
|
2000-05-19 08:34:13 +00:00
|
|
|
.PHONY: clean
|
2000-05-21 08:41:19 +00:00
|
|
|
clean: clean.common
|
|
|
|
- $(MAKE) -C ppmtompeg clean
|
|
|
|
|
|
|
|
FORCE:
|