Category : OS/2 Files
Archive   : PBMPLUS3.ZIP
Filename : MAKEFILE

 
Output of file : MAKEFILE contained in archive : PBMPLUS3.ZIP
# Makefile for pnm 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 = gcc
CFLAGS = -O
RGBDEF =
TIFFDEF = -DLIBTIFF
LDFLAGS =
OBJ = .obj
EXE = .exe
LIBEXT = .dll

TIFFINC = -I../libtiff
TIFFBINARIES = tifftopnm$(EXE) pnmtotiff$(EXE)
TIFFOBJECTS = tifftopnm$(OBJ) pnmtotiff$(OBJ)

PBMDIR = ../pbm
INCLUDEPBM = -I$(PBMDIR)
DEFPBM = $(PBMDIR)/pbm.h ../pbmplus.h
DEFLIBPBM = $(PBMDIR)/libpbm.h

PGMDIR = ../pgm
INCLUDEPGM = -I$(PGMDIR)
DEFPGM = $(PGMDIR)/pgm.h
DEFLIBPGM = $(PGMDIR)/libpgm.h

PPMDIR = ../ppm
INCLUDEPPM = -I$(PPMDIR)
DEFPPM = $(PPMDIR)/ppm.h
DEFLIBPPM = $(PPMDIR)/libppm.h

DEFPNM = pnm.h $(DEFPBM) $(DEFPGM) $(DEFPPM)
INCLUDE = -I.. $(INCLUDEPBM) $(INCLUDEPGM) $(INCLUDEPPM) $(TIFFINC)
ALLCFLAGS = $(CFLAGS) $(INCLUDE) $(TIFFDEF)
LIBPNM = libpnm$(LIBEXT)
LIBPNMOBJS = libpnm1$(OBJ) libpnm2$(OBJ) libpnm3$(OBJ) libpnm4$(OBJ)

.c.obj:
$(CC) $(ALLCFLAGS) -c $*.c

.obj.exe:
link386 $(LDFLAGS) $*,,,, pnm

PORTBINARIES = pnmarith$(EXE) pnmcat$(EXE) pnmconvol$(EXE) pnmcrop$(EXE) \
pnmcut$(EXE) pnmdepth$(EXE) pnmenlarge$(EXE) pnmfile$(EXE) \
pnmflip$(EXE) pnminvert$(EXE) pnmnoraw$(EXE) pnmpaste$(EXE) \
pnmscale$(EXE) pnmtile$(EXE) pnmtops$(EXE) pnmtorast$(EXE) \
pnmtoxwd$(EXE) rasttopnm$(EXE) xwdtopnm$(EXE)

MATHBINARIES = pnmgamma$(EXE) pnmrotate$(EXE) pnmshear$(EXE)

BINARIES = $(PORTBINARIES) $(MATHBINARIES) $(TIFFBINARIES)

PORTOBJECTS = pnmarith$(OBJ) pnmcat$(OBJ) pnmconvol$(OBJ) pnmcrop$(OBJ) \
pnmcut$(OBJ) pnmdepth$(OBJ) pnmenlarge$(OBJ) pnmfile$(OBJ) \
pnmflip$(OBJ) pnminvert$(OBJ) pnmnoraw$(OBJ) pnmpaste$(OBJ) \
pnmscale$(OBJ) pnmtile$(OBJ) pnmtops$(OBJ) pnmtorast$(OBJ) \
pnmtoxwd$(OBJ) rasttopnm$(OBJ) xwdtopnm$(OBJ) pnmgamma$(OBJ) \
pnmrotate$(OBJ) pnmshear$(OBJ)

OBJECTS = $(PORTOBJECTS) $(TIFFOBJECTS)

all: lib binaries

binaries: $(BINARIES)

$(BINARIES): pnm.def

$(OBJECTS): $(DEFPNM)

tifftopnm$(EXE): tifftopnm$(OBJ)
link386 $(LDFLAGS) $*,,,, pnmtiff

pnmtotiff$(EXE): pnmtotiff$(OBJ)
link386 $(LDFLAGS) $*,,,, pnmtiff

lib: $(LIBPNM)

$(LIBPNM): $(LIBPNMOBJS) libpnm.def
link386 $(LDFLAGS) $(LIBPNMOBJS), $@,, os2, libpnm

$(LIBPNMOBJS): $(DEFPNM)

libpnm2$(OBJ): $(DEFLIBPBM) $(DEFLIBPGM) $(DEFLIBPPM)

libpnm3$(OBJ): $(DEFLIBPBM) $(DEFLIBPGM) $(DEFLIBPPM)

libpnm4$(OBJ): rast.h

pnmtorast$(OBJ): rast.h
pnmtoxwd$(OBJ): x11wd.h
rasttopnm$(OBJ): rast.h
xwdtopnm$(OBJ): x10wd.h x11wd.h
pnmtotiff$(OBJ): $(PPMDIR)/ppmcmap.h


  3 Responses to “Category : OS/2 Files
Archive   : PBMPLUS3.ZIP
Filename : MAKEFILE

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/