home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
NETWORK
/
netpbm_src.lzh
/
NETPBM
/
PBM
/
Makefile
< prev
next >
Wrap
Makefile
|
1998-03-24
|
4KB
|
119 lines
# Makefile for pbm 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= gcc2
CFLAGS= -ansi -O -m68000 -ucc -T/r0 -D_OSK -mremote -I..
RGBDEF = -DRGB_DB="""/dd/sys/rgb.txt"""
TIFFDEF = -DLIBTIFF
ODIR = .
LDFLAGS= -L/dd/lib -nocol -m68000 -los9lib.l -ctrap
SHELL = ksh
INCLUDE = -I..
ALLCFLAGS = $(CFLAGS) $(RGBDEF) $(TIFFDEF) $(INCLUDE)
LIBPBM = libpbm.l
DEFPBM = pbm.h ../pbmplus.h
BINARIES = atktopbm brushtopbm cmuwmtopbm g3topbm \
icontopbm gemtopbm macptopbm mgrtopbm \
pbmclean pbmlife pbmmake pbmmask pbmpscale pbmreduce \
pbmtext pbmto10x pbmto4425 pbmtoascii pbmtoatk \
pbmtobbnbg pbmtocmuwm pbmtoepsi pbmtoepson pbmtog3 \
pbmtogem pbmtogo pbmtoicon pbmtolj pbmtoln03 pbmtolps pbmtomacp \
pbmtomgr pbmtopi3 pbmtopk pbmtoplot pbmtoptx \
pbmtox10bm pbmtoxbm pbmtoybm pbmtozinc \
pbmupc pi3topbm pktopbm xbmtopbm ybmtopbm
OBJECTS = atktopbm.r brushtopbm.r cmuwmtopbm.r g3topbm.r \
icontopbm.r gemtopbm.r macptopbm.r mgrtopbm.r \
pbmclean.r pbmlife.r pbmmake.r pbmmask.r pbmpscale.r pbmreduce.r \
pbmtext.r pbmto10x.r pbmto4425.r ppbmtoascii.r pbmtoatk.r \
pbmtobbnbg.r pbmtocmuwm.r pbmtoepsi.r pbmtoepson.r pbmtog3.r \
pbmtogem.r pbmtogo.r pbmtoicon.r pbmtolj.r pbmtoln03.r pbmtolps.r pbmtomacp.r \
pbmtomgr.r pbmtopi3.r pbmtopk.r pbmtoplot.r pbmtoptx.r \
pbmtox10bm.r pbmtoxbm.r pbmtoybm.r pbmtozinc.r \
pbmupc.r pi3topbm.r pktopbm.r xbmtopbm.r ybmtopbm.r
.c.r:
$(CC) $(CFLAGS) -c -o $*.r $*.c
all.done: $(BINARIES)
echo all done
merge: pbmmerge
pbmmerge: pbmmerge.c $(OBJECTS) $(LIBPBM)
$(CC) $(ALLCFLAGS) $(LDFLAGS) -o ../cmds/$@ $@.c $(OBJECTS) $(LIBPBM)
# Rules for plain programs.
$(BINARIES): $(DEFPBM) $(LIBPBM)
$(CC) $(ALLCFLAGS) $(LDFLAGS) -o ../cmds/$@ $@.c -l$(LIBPBM)
$(OBJECTS): $(DEFPBM)
$(CC) $(ALLCFLAGS) "-Dmain=$*_main" -c $*.c
# And library.
lib: $(LIBPBM)
$(LIBPBM): libpbm1.r libpbm2.r libpbm3.r libpbm4.r libpbm5.r
merge libpbm5.r libpbm2.r libpbm3.r libpbm4.r libpbm1.r >-$(LIBPBM)
libpbm1.r: $(DEFPBM) ../version.h libpbm.h libpbm1.c
$(CC) $(ALLCFLAGS) -c libpbm1.c
libpbm2.r: $(DEFPBM) libpbm.h libpbm2.c
$(CC) $(ALLCFLAGS) -c libpbm2.c
libpbm3.r: $(DEFPBM) libpbm.h libpbm3.c
$(CC) $(ALLCFLAGS) -c libpbm3.c
libpbm4.r: $(DEFPBM) libpbm.h libpbm4.c
$(CC) $(ALLCFLAGS) -c libpbm4.c
libpbm5.r: $(DEFPBM) pbmfont.h libpbm5.c
$(CC) $(ALLCFLAGS) -c libpbm5.c
# Other dependencies.
atktopbm atktopbm.r: atktopbm.c
brushtopbm brushtopbm.r: brushtopbm.c
cmuwmtopbm cmuwmtopbm.r: cmuwmtopbm.c cmuwm.h
g3topbm g3topbm.r: g3topbm.c g3.h
icontopbm icontopbm.r: icontopbm.c
gemtopbm gemtopbm.r: gemtopbm.c
macptopbm macptopbm.r: macptopbm.c macp.h
mgrtopbm mgrtopbm.r: mgrtopbm.c mgr.h
pbmlife pbmlife.r: pbmlife.c
pbmmake pbmmake.r: pbmmake.c
pbmmask pbmmask.r: pbmmask.c
pbmreduce pbmreduce.r: pbmreduce.c
pbmtext pbmtext.r: pbmtext.c pbmfont.h
pbmto10x pbmto10x.r: pbmto10x.c
pbmtoascii pbmtoascii.r: pbmtoascii.c
pbmtoatk pbmtoatk.r: pbmtoatk.c
pbmtobbnbg pbmtobbnbg.r: pbmtobbnbg.c
pbmtocmuwm pbmtocmuwm.r: pbmtocmuwm.c cmuwm.h
pbmtoepson pbmtoepson.r: pbmtoepson.c
pbmtog3 pbmtog3.r: pbmtog3.c g3.h
pbmtogem pbmtogem.r: pbmtogem.c
pbmtogo pbmtogo.r: pbmtogo.c
pbmtoicon pbmtoicon.r: pbmtoicon.c
pbmtolj pbmtolj.r: pbmtolj.c
pbmtomacp pbmtomacp.r: pbmtomacp.c macp.h
pbmtomgr pbmtomgr.r: pbmtomgr.c mgr.h
pbmtopi3 pbmtopi3.r: pbmtopi3.c
pbmtoplot pbmtoplot.r: pbmtoplot.c
pbmtoptx pbmtoptx.r: pbmtoptx.c
pbmtox10bm pbmtox10bm.r: pbmtox10bm.c
pbmtoxbm pbmtoxbm.r: pbmtoxbm.c
pbmtoybm pbmtoybm.r: pbmtoybm.c
pbmtozinc pbmtozinc.r: pbmtozinc.c
pbmupc pbmupc.r: pbmupc.c
pi3topbm pi3topbm.r: pi3topbm.c
xbmtopbm xbmtopbm.r: xbmtopbm.c
ybmtopbm ybmtopbm.r: ybmtopbm.c