# Makefile for pbm tools. # # Copyright (C) 1989 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. INSTALLBINARIES = PBMPLUS_INSTALL INSTALLMANUALS1 = /usr/man/mann INSTALLMANUALS3 = /usr/man/mann INSTALLMANUALS5 = /usr/man/mann LIBPBM = libpbm.olb LIBPBMUNRAW = libpbmunraw.olb OPT = opt/opt CCUNRAW = $(CC) $(CFLAGS) CFLAGS = $(CFLAGS)/DEFINE=PBMPLUS_RAWBITS BINARIES = brushtopbm.exe cmuwmtopbm.exe g3topbm.exe icontopbm.exe \ gemtopbm.exe macptopbm.exe mgrtopbm.exe pbmlife.exe \ pbmmake.exe pbmmask.exe pbmpaste.exe pbmreduce.exe \ pbmtoascii.exe pbmtobbnbg.exe pbmtocmuwm.exe pbmtog3.exe \ pbmtogo.exe pbmtoicon.exe pbmtolj.exe pbmtomacp.exe \ pbmtomgr.exe pbmtoptx.exe pbmtorast.exe pbmtox10bm.exe \ pbmtoxbm.exe pbmtoxwd.exe pbmupc.exe pcxtopbm.exe \ picttopbm.exe rasttopbm.exe xbmtopbm.exe xwdtopbm.exe MANUALS1 = brushtopbm.1 cmuwmtopbm.1 g3topbm.1 icontopbm.1 \ gemtopbm.1 macptopbm.1 mgrtopbm.1 \ pbmlife.1 pbmmake.1 pbmmask.1 pbmpaste.1 \ pbmreduce.1 pbmtoascii.1 pbmtobbnbg.1 pbmtocmuwm.1 pbmtog3.1 \ pbmtogo.1 pbmtoicon.1 pbmtolj.1 pbmtomacp.1 pbmtomgr.1 \ pbmtoptx.1 pbmtorast.1 pbmtox10bm.1 pbmtoxbm.1 \ pbmtoxwd.1 pbmupc.1 pcxtopbm.1 picttopbm.1 rasttopbm.1 \ xbmtopbm.1 xwdtopbm.1 MANUALS3 = libpbm.3 MANUALS5 = pbm.5 .first define sys sys$library define c$include [-] all : binaries $(LIBPBMUNRAW) @ continue install : installbinaries installmanuals @ continue # install : installbinaries binaries : $(BINARIES) @ continue installbinaries : binaries copy/log *.exe $(INSTALLBINARIES) installmanuals : @ !cp $(MANUALS1) $(INSTALLMANUALS1) @ !cp $(MANUALS3) $(INSTALLMANUALS3) @ !cp $(MANUALS5) $(INSTALLMANUALS5) .obj.exe : $(link) $(linkflags) $*.obj,$(LIBPBM)/lib,$(OPT) # And libraries. $(LIBPBM) : libpbm1.obj libpbm2.obj libpbm3.obj libpbm4.obj libpbm5.obj \ argproc.obj lib/create $(LIBPBM) libpbm%.obj,argproc.obj libpbm1.obj : libpbm1.c pbm.h [-]pbmplus.h libpbm.h libpbm2.obj : libpbm2.c pbm.h [-]pbmplus.h libpbm.h libpbm3.obj : libpbm3.c pbm.h [-]pbmplus.h libpbm.h libpbm4.obj : libpbm4.c pbm.h [-]pbmplus.h libpbm.h libpbm5.obj : libpbm5.c pbm.h [-]pbmplus.h rast.h argproc.obj : argproc.c includes.h $(LIBPBMUNRAW) : libpbmunraw1.obj libpbmunraw2.obj libpbmunraw3.obj \ libpbmunraw4.obj libpbmunraw5.obj argproc.obj lib/create $(LIBPBMUNRAW) libpbmunraw%.obj,argproc.obj libpbmunraw1.obj : libpbm1.c pbm.h [-]pbmplus.h libpbm.h $(CCUNRAW) $< libpbmunraw2.obj : libpbm2.c pbm.h [-]pbmplus.h libpbm.h $(CCUNRAW) $< libpbmunraw3.obj : libpbm3.c pbm.h [-]pbmplus.h libpbm.h $(CCUNRAW) $< libpbmunraw4.obj : libpbm4.c pbm.h [-]pbmplus.h libpbm.h $(CCUNRAW) $< libpbmunraw5.obj : libpbm5.c pbm.h [-]pbmplus.h rast.h $(CCUNRAW) $< # Other dependencies. brushtopbm.exe : brushtopbm.obj $(LIBPBM) brushtopbm.obj : brushtopbm.c pbm.h [-]pbmplus.h cmuwmtopbm.exe : cmuwmtopbm.obj $(LIBPBM) cmuwmtopbm.obj : cmuwmtopbm.c cmuwm.h pbm.h [-]pbmplus.h g3topbm.exe : g3topbm.obj $(LIBPBM) g3topbm.obj : g3topbm.c g3.h pbm.h [-]pbmplus.h icontopbm.exe : icontopbm.obj $(LIBPBM) icontopbm.obj : icontopbm.c pbm.h [-]pbmplus.h gemtopbm.exe : gemtopbm.obj $(LIBPBM) gemtopbm.obj : gemtopbm.c pbm.h [-]pbmplus.h macptopbm.exe : macptopbm.obj $(LIBPBM) macptopbm.obj : macptopbm.c macp.h pbm.h [-]pbmplus.h mgrtopbm.exe : mgrtopbm.obj $(LIBPBM) mgrtopbm.obj : mgrtopbm.c mgr.h pbm.h [-]pbmplus.h pbmlife.exe : pbmlife.obj $(LIBPBM) pbmlife.obj : pbmlife.c pbm.h [-]pbmplus.h pbmmake.exe : pbmmake.obj $(LIBPBM) pbmmake.obj : pbmmake.c pbm.h [-]pbmplus.h pbmmask.exe : pbmmask.obj $(LIBPBM) pbmmask.obj : pbmmask.c pbm.h [-]pbmplus.h pbmpaste.exe : pbmpaste.obj $(LIBPBM) pbmpaste.obj : pbmpaste.c pbm.h [-]pbmplus.h pbmreduce.exe : pbmreduce.obj $(LIBPBM) pbmreduce.obj : pbmreduce.c pbm.h [-]pbmplus.h pbmtoascii.exe : pbmtoascii.obj $(LIBPBM) pbmtoascii.obj : pbmtoascii.c pbm.h [-]pbmplus.h pbmtobbnbg.exe : pbmtobbnbg.obj $(LIBPBM) pbmtobbnbg.obj : pbmtobbnbg.c pbm.h [-]pbmplus.h pbmtocmuwm.exe : pbmtocmuwm.obj $(LIBPBM) pbmtocmuwm.obj : pbmtocmuwm.c cmuwm.h pbm.h [-]pbmplus.h pbmtog3.exe : pbmtog3.obj $(LIBPBM) pbmtog3.obj : pbmtog3.c g3.h pbm.h [-]pbmplus.h pbmtogo.exe : pbmtogo.obj $(LIBPBM) pbmtogo.obj : pbmtogo.c pbm.h [-]pbmplus.h pbmtoicon.exe : pbmtoicon.obj $(LIBPBM) pbmtoicon.obj : pbmtoicon.c pbm.h [-]pbmplus.h pbmtolj.exe : pbmtolj.obj $(LIBPBM) pbmtolj.obj : pbmtolj.c pbm.h [-]pbmplus.h pbmtomacp.exe : pbmtomacp.obj $(LIBPBM) pbmtomacp.obj : pbmtomacp.c macp.h pbm.h [-]pbmplus.h pbmtomgr.exe : pbmtomgr.obj $(LIBPBM) pbmtomgr.obj : pbmtomgr.c mgr.h pbm.h [-]pbmplus.h pbmtoptx.exe : pbmtoptx.obj $(LIBPBM) pbmtoptx.obj : pbmtoptx.c pbm.h [-]pbmplus.h pbmtorast.exe : pbmtorast.obj $(LIBPBM) pbmtorast.obj : pbmtorast.c rast.h pbm.h [-]pbmplus.h pbmtox10bm.exe : pbmtox10bm.obj $(LIBPBM) pbmtox10bm.obj : pbmtox10bm.c pbm.h [-]pbmplus.h pbmtoxbm.exe : pbmtoxbm.obj $(LIBPBM) pbmtoxbm.obj : pbmtoxbm.c pbm.h [-]pbmplus.h pbmtoxwd.exe : pbmtoxwd.obj $(LIBPBM) pbmtoxwd.obj : pbmtoxwd.c x11wd.h pbm.h [-]pbmplus.h pbmupc.exe : pbmupc.obj $(LIBPBM) pbmupc.obj : pbmupc.c pbm.h [-]pbmplus.h pcxtopbm.exe : pcxtopbm.obj $(LIBPBM) pcxtopbm.obj : pcxtopbm.c pbm.h [-]pbmplus.h picttopbm.exe : picttopbm.obj $(LIBPBM) picttopbm.obj : picttopbm.c pict.h pbm.h [-]pbmplus.h rasttopbm.exe : rasttopbm.obj $(LIBPBM) rasttopbm.obj : rasttopbm.c rast.h pbm.h [-]pbmplus.h xbmtopbm.exe : xbmtopbm.obj $(LIBPBM) xbmtopbm.obj : xbmtopbm.c pbm.h [-]pbmplus.h xwdtopbm.exe : xwdtopbm.obj $(LIBPBM) xwdtopbm.obj : xwdtopbm.c x11wd.h x10wd.h pbm.h [-]pbmplus.h clean : - delete/log *.obj;* - delete/log *.olb;* - delete/log *.exe;*