2000-07-01 19:26:13 +00:00
|
|
|
--- ppm/Makefile.orig Sat Jul 1 03:26:39 2000
|
2000-07-15 17:04:36 +00:00
|
|
|
+++ ppm/Makefile Sat Jul 15 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-07-01 19:26:13 +00:00
|
|
|
-MIN = 5
|
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)
|
2000-07-01 19:26:13 +00:00
|
|
|
@@ -24,23 +23,25 @@
|
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-07-01 19:26:13 +00:00
|
|
|
- ppmtobmp ppmtoeyuv ppmtogif ppmtoleaf \
|
|
|
|
+ ppmtoeyuv ppmtogif ppmtoleaf \
|
|
|
|
ppmtoicr ppmtoilbm ppmtomitsu \
|
|
|
|
ppmtopcx ppmtopgm ppmtopi1 ppmtopict ppmtopj \
|
|
|
|
ppmtopjxl ppmtopuzz ppmtorgb3 ppmtosixel \
|
2000-06-04 22:36:27 +00:00
|
|
|
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-07-01 19:26:13 +00:00
|
|
|
+SHHOPTBINARIES = ppmcolormask ppmtobmp tgatoppm ximtoppm
|
2000-04-27 11:28:19 +00:00
|
|
|
|
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-07-01 19:26:13 +00:00
|
|
|
+NOMERGEBINARIES = $(SHHOPTBINARIES) ppmntsc
|
2000-04-01 23:57:38 +00:00
|
|
|
ifneq ($(JPEGLIB_DIR), NONE)
|
|
|
|
ifneq ($(JPEGHDR_DIR), NONE)
|
|
|
|
NOMERGEBINARIES += ppmtojpeg
|
2000-07-01 19:26:13 +00:00
|
|
|
@@ -49,7 +50,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-07-01 19:26:13 +00:00
|
|
|
@@ -58,6 +59,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-07-15 17:04:36 +00:00
|
|
|
+SHLIBOBJECTS = $(patsubst %.o, %.lo, $(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-07-01 19:26:13 +00:00
|
|
|
@@ -65,18 +68,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)
|
2000-07-01 19:26:13 +00:00
|
|
|
+$(SHHOPTBINARIES): %: %.o $(NETPBMLIBS) $(LIBOPT) $(LIBSHHOPT)
|
2000-05-21 08:41:19 +00:00
|
|
|
$(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-07-01 19:26:13 +00:00
|
|
|
@@ -89,19 +98,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:
|