1999-10-23 09:39:18 -04:00
|
|
|
# Makefile for PngMinus (png2pnm and pnm2png)
|
|
|
|
# TurboC++ 3.0
|
|
|
|
|
|
|
|
CC=tcc -Ic:\tc3\inc
|
|
|
|
LD=tcc -Lc:\tc3\lib
|
|
|
|
LB=tlib
|
|
|
|
RM=del
|
|
|
|
CP=copy
|
|
|
|
MODEL=l
|
2014-01-12 11:44:01 -05:00
|
|
|
CPPFLAGS=-I..\libpng -I..\zlib
|
|
|
|
CFLAGS=-O -m$(MODEL)
|
1999-10-23 09:39:18 -04:00
|
|
|
LDFLAGS=-m$(MODEL) -L..\libpng -L..\zlib
|
|
|
|
C=.c
|
|
|
|
O=.obj
|
|
|
|
L=.lib
|
|
|
|
E=.exe
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
|
|
|
|
all: png2pnm$(E) pnm2png$(E)
|
|
|
|
|
|
|
|
png2pnm$(O): png2pnm$(C)
|
2014-01-12 11:44:01 -05:00
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) png2pnm$(C)
|
1999-10-23 09:39:18 -04:00
|
|
|
|
|
|
|
png2pnm$(E): png2pnm$(O)
|
|
|
|
$(LD) $(LDFLAGS) png2pnm$(O) libpng$(L) zlib$(L)
|
|
|
|
|
|
|
|
pnm2png$(O): pnm2png$(C)
|
2014-01-12 11:44:01 -05:00
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) pnm2png$(C)
|
1999-10-23 09:39:18 -04:00
|
|
|
|
|
|
|
pnm2png$(E): pnm2png$(O)
|
|
|
|
$(LD) $(LDFLAGS) pnm2png$(O) libpng$(L) zlib$(L)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) *$(O)
|
|
|
|
$(RM) *$(E)
|
|
|
|
|
|
|
|
# End of makefile for png2pnm / pnm2png
|