blob: 404f18d5b15656c948297fbbcb672027995c0869 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001# Makefile for PngMinus (png2pnm and pnm2png)
2# TurboC++ 3.0
3
4CC=tcc -Ic:\tc3\inc
5LD=tcc -Lc:\tc3\lib
6LB=tlib
7RM=del
8CP=copy
9MODEL=l
10CCFLAGS=-O -m$(MODEL) -I..\libpng -I..\zlib
11LDFLAGS=-m$(MODEL) -L..\libpng -L..\zlib
12C=.c
13O=.obj
14L=.lib
15E=.exe
16
17# dependencies
18
19all: png2pnm$(E) pnm2png$(E)
20
21png2pnm$(O): png2pnm$(C)
22 $(CC) -c $(CCFLAGS) png2pnm$(C)
23
24png2pnm$(E): png2pnm$(O)
25 $(LD) $(LDFLAGS) png2pnm$(O) libpng$(L) zlib$(L)
26
27pnm2png$(O): pnm2png$(C)
28 $(CC) -c $(CCFLAGS) pnm2png$(C)
29
30pnm2png$(E): pnm2png$(O)
31 $(LD) $(LDFLAGS) pnm2png$(O) libpng$(L) zlib$(L)
32
33clean:
34 $(RM) *$(O)
35 $(RM) *$(E)
36
37# End of makefile for png2pnm / pnm2png
38