home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
APPS
/
macutils.lzh
/
MACUTILS
/
UTIL
/
makefile.2
< prev
next >
Wrap
Makefile
|
1996-01-13
|
5KB
|
150 lines
# Makefile for ppm tools.
#
# Copyright (C) 1989, 1991 by Jef Poskanzer.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose and without fee is hereby granted, provided
# that the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation. This software is provided "as is" without express or
# implied warranty.
# Default values, usually overridden by top-level Makefile.
CC = cc
RDIR = ./RELS
CFLAGS = -r=$(RDIR) -dOSK
INCLUDETOP = -V=..
BLARSDIR = /dd/blarsdefs
INCLUDEBLARS = -V=$(BLARSDIR)
PGMDIR = ../PGM
INCLUDEPGM = -V=$(PGMDIR)
LIBPGM = -L=$(PGMDIR)/libpgm.l
DEFPGM = $(PGMDIR)/pgm.h
DEFLIBPGM = $(PGMDIR)/libpgm.h
PBMDIR = ../PBM
INCLUDEPBM = -V=$(PBMDIR)
LIBPBM = -L=$(PBMDIR)/libpbm.l
DEFPBM = $(PBMDIR)/pbm.h
DEFLIBPBM = $(PBMDIR)/libpbm.h
INCLUDE = $(INCLUDEPGM) $(INCLUDEPBM) $(INCLUDETOP) $(INCLUDEBLARS)
ALLCFLAGS = $(CFLAGS) $(INCLUDE)
LIBPPM = -L=libppm.l
PORTBINARIES = giftoppm
# ppmtogif
# gouldtoppm ilbmtoppm imgtoppm mtvtoppm \
# pcxtoppm pgmtoppm pi1toppm picttoppm \
# pjtoppm ppmdither ppmhist ppmmake \
# ppmquant ppmrelief ppmtoacad ppmtogif ppmtoicr \
# ppmtoilbm ppmtopcx ppmtopgm ppmtopi1 ppmtopict \
# ppmtopj ppmtopuzz ppmtorgb3 ppmtosixel \
# ppmtotga ppmtouil ppmtoxpm ppmtoyuv qrttoppm \
# rawtoppm rgb3toppm sldtoppm spctoppm sputoppm \
# tgatoppm ximtoppm xpmtoppm yuvtoppm
#MATHBINARIES = ppmforge ppmpat
#BINARIES = $(PORTBINARIES) $(MATHBINARIES)
#SCRIPTS = ppmquantall
#OBJECTS = giftoppm.r ppmtogif.r
# gouldtoppm.r ilbmtoppm.r imgtoppm.r mtvtoppm.r \
# pcxtoppm.r pgmtoppm.r pi1toppm.r picttoppm.r \
# pjtoppm.r ppmdither.r ppmhist.r ppmmake.r \
# ppmquant.r ppmrelief.r ppmtoacad.r ppmtogif.r ppmtoicr.r \
# ppmtoilbm.r ppmtopcx.r ppmtopgm.r ppmtopi1.r ppmtopict.r \
# ppmtopj.r ppmtopuzz.r ppmtorgb3.r ppmtosixel.r \
# ppmtotga.r ppmtouil.r ppmtoxpm.r ppmtoyuv.r qrttoppm.r \
# rawtoppm.r rgb3toppm.r sldtoppm.r spctoppm.r sputoppm.r \
# tgatoppm.r ximtoppm.r xpmtoppm.r yuvtoppm.r \
# ppmforge.r ppmpat.r
#
_GIFTOPPM = giftoppm.r ppm.h $(DEFPGM) $(DEFPBM) $(LIBPPM) $(LIBPGM)\ $(LIBPBM)
giftoppm: $(CC) -fd=/r0/giftoppm -dOSK $(INCLUDE) $(_GIFTOPPM)
# Rule for plain programs.
#$(PORTBINARIES): ppm.h $(DEFPGM) $(DEFPBM) $(LIBPPM) $(LIBPGM) $(LIBPBM)
# $(CC) $(ALLCFLAGS) $(LIBPPM) $(LIBPGM) $(LIBPBM)
# Rule for math-dependent programs.
#$(MATHBINARIES): ppm.h $(DEFPGM) $(DEFPBM) $(LIBPPM) $(LIBPGM) $(LIBPBM)
# $(CC) $(ALLCFLAGS) $(LDFLAGS) -o $@ $@.c -lm $(LIBPPM) $(LIBPGM) $(LIBPBM)
# Rule for objects.
#$(OBJECTS): ppm.h $(DEFPGM) $(DEFPBM)
# $(CC) $(ALLCFLAGS)
# "-Dmain=$*_main" -c $*.c
# And libraries.
#$(LIBPBM):
# cd $(PBMDIR) ; make lib
#$(LIBPGM):
# cd $(PGMDIR) ; make lib
lib: libppm1.r libppm2.r libppm3.r libppm4.r libppm5.r
merge $(RDIR)/libppm1.r $(RDIR)/libppm2.r $(RDIR)/libppm3.r \
$(RDIR)/libppm4.r $(RDIR)/libppm5.r >libppm.l
libppm1.r: ppm.h $(DEFPGM) $(DEFPBM) libppm.h libppm1.c
$(CC) $(ALLCFLAGS) libppm1.c
libppm2.r: ppm.h $(DEFPGM) $(DEFPBM) libppm.h libppm2.c $(DEFLIBPGM) \
$(DEFLIBPBM)
$(CC) $(ALLCFLAGS) libppm2.c
libppm3.r: ppm.h $(DEFPGM) $(DEFPBM) ppmcmap.h libppm.h libppm3.c
$(CC) $(ALLCFLAGS) libppm3.c
libppm4.r: ppm.h $(DEFPGM) $(DEFPBM) libppm4.c
$(CC) $(ALLCFLAGS) libppm4.c
libppm5.r: ppm.h $(DEFPGM) $(DEFPBM) ppmdraw.h libppm5.c
$(CC) $(ALLCFLAGS) libppm5.c
# Other dependencies.
giftoppm.r :giftoppm.c
#gouldtoppm gouldtoppm.r: gouldtoppm.c
#ilbmtoppm ilbmtoppm.r: ilbmtoppm.c ilbm.h
#imgtoppm imgtoppm.r: imgtoppm.c
#mtvtoppm mtvtoppm.r: mtvtoppm.c
#pcxtoppm pcxtoppm.r: pcxtoppm.c
#pgmtoppm pgmtoppm.r: pgmtoppm.c
#pi1toppm pi1toppm.r: pi1toppm.c
#picttoppm picttoppm.r: picttoppm.c
#pjtoppm pjtoppm.r: pjtoppm.c
#ppmdither ppmdither.r: ppmdither.c
#ppmforge ppmforge.r: ppmforge.c
#ppmhist ppmhist.r: ppmhist.c ppmcmap.h
#ppmmake ppmmake.r: ppmmake.c
#ppmpat ppmpat.r: ppmpat.c ppmdraw.h
#ppmquant ppmquant.r: ppmquant.c $(PGMDIR)/dithers.h ppmcmap.h
#ppmrelief ppmrelief.r: ppmrelief.c
#ppmtoacad ppmtoacad.r: ppmtoacad.c ppmcmap.h autocad.h
ppmtogif.r: ppmtogif.c ppmcmap.h
#ppmtoicr ppmtoicr.r: ppmtoicr.c ppmcmap.h
#ppmtoilbm ppmtoilbm.r: ppmtoilbm.c ilbm.h ppmcmap.h
#ppmtopcx ppmtopcx.r: ppmtopcx.c ppmcmap.h
#ppmtopgm ppmtopgm.r: ppmtopgm.c
#ppmtopi1 ppmtopi1.r: ppmtopi1.c ppmcmap.h
#ppmtopict ppmtopict.r: ppmtopict.c ppmcmap.h
#ppmtopj ppmtopj.r: ppmtopj.c
#ppmtopuzz ppmtopuzz.r: ppmtopuzz.c ppmcmap.h
#ppmtorgb3 ppmtorgb3.r: ppmtorgb3.c
#ppmtosixel ppmtosixel.r: ppmtosixel.c ppmcmap.h
#ppmtotga ppmtotga.r: ppmtotga.c ppmcmap.h
#ppmtouil ppmtouil.r: ppmtouil.c ppmcmap.h
#ppmtoxpm ppmtoxpm.r: ppmtoxpm.c ppmcmap.h
#ppmtoyuv ppmtoyuv.r: ppmtoyuv.c
#qrttoppm qrttoppm.r: qrttoppm.c
#rawtoppm rawtoppm.r: rawtoppm.c
#rgb3toppm rgb3toppm.r: rgb3toppm.c
#sldtoppm sldtoppm.r: sldtoppm.c ppmdraw.h autocad.h
#spctoppm spctoppm.r: spctoppm.c
#sputoppm sputoppm.r: sputoppm.c
#tgatoppm tgatoppm.r: tgatoppm.c tga.h
#ximtoppm ximtoppm.r: ximtoppm.c xim.h
#xpmtoppm xpmtoppm.r: xpmtoppm.c
#yuvtoppm yuvtoppm.r: yuvtoppm.c
#clean:
# -rm -f *.r *.a *.cat core $(BINARIES) ppmmerge