2000-06-04 22:36:27 +00:00
|
|
|
--- ppm/Makefile.orig Fri Jun 2 01:22:16 2000
|
|
|
|
+++ ppm/Makefile Sat Jun 3 00:00:00 2000
|
2000-05-21 08:41:19 +00:00
|
|
|
@@ -3,8 +3,7 @@
|
2000-05-19 08:34:13 +00:00
|
|
|
|
|
|
|
LIBROOT = ppm
|
|
|
|
LIBPPM = lib$(LIBROOT).$(NETPBMLIBSUFFIX)
|
|
|
|
-MAJ = 9
|
2000-06-04 22:36:27 +00:00
|
|
|
-MIN = 3
|
2000-05-21 08:41:19 +00:00
|
|
|
+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-06-04 22:36:27 +00:00
|
|
|
leaftoppm mtvtoppm pcxtoppm pgmtoppm pi1toppm picttoppm \
|
2000-04-08 06:12:34 +00:00
|
|
|
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-06-04 22:36:27 +00:00
|
|
|
@@ -35,12 +34,13 @@
|
|
|
|
ppmtotga ppmtouil ppmtowinicon 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 \
|
2000-06-04 22:36:27 +00:00
|
|
|
- sputoppm tgatoppm winicontoppm ximtoppm xpmtoppm xvminitoppm \
|
|
|
|
+ sputoppm winicontoppm xpmtoppm xvminitoppm \
|
2000-04-27 11:28:19 +00:00
|
|
|
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-06-04 22:36:27 +00:00
|
|
|
@@ -49,7 +49,7 @@
|
2000-05-21 08:41:19 +00:00
|
|
|
|
|
|
|
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-06-04 22:36:27 +00:00
|
|
|
@@ -58,6 +58,8 @@
|
2000-05-21 08:41:19 +00:00
|
|
|
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
|
2000-06-04 22:36:27 +00:00
|
|
|
+LIBSOBJECTS = $(patsubst %.o, %.so, $(LIBOBJECTS))
|
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-06-04 22:36:27 +00:00
|
|
|
@@ -65,18 +67,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-06-04 22:36:27 +00:00
|
|
|
@@ -89,19 +97,19 @@
|
2000-05-21 08:41:19 +00:00
|
|
|
|
|
|
|
.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:
|