Home | History | Annotate | Download | only in pngminus
      1 # Makefile for PngMinus (png2pnm and pnm2png)
      2 # TurboC++ 3.0
      3 
      4 CC=tcc -Ic:\tc3\inc
      5 LD=tcc -Lc:\tc3\lib
      6 LB=tlib
      7 RM=del
      8 CP=copy
      9 MODEL=l
     10 CPPFLAGS=-I..\libpng -I..\zlib
     11 CFLAGS=-O -m$(MODEL)
     12 LDFLAGS=-m$(MODEL) -L..\libpng -L..\zlib
     13 C=.c
     14 O=.obj
     15 L=.lib
     16 E=.exe
     17 
     18 # dependencies
     19 
     20 all: png2pnm$(E) pnm2png$(E)
     21 
     22 png2pnm$(O): png2pnm$(C)
     23         $(CC) -c $(CPPFLAGS) $(CFLAGS) png2pnm$(C)
     24 
     25 png2pnm$(E): png2pnm$(O)
     26         $(LD) $(LDFLAGS) png2pnm$(O) libpng$(L) zlib$(L)
     27 
     28 pnm2png$(O): pnm2png$(C)
     29         $(CC) -c $(CPPFLAGS) $(CFLAGS) pnm2png$(C)
     30 
     31 pnm2png$(E): pnm2png$(O)
     32         $(LD) $(LDFLAGS) pnm2png$(O) libpng$(L) zlib$(L)
     33 
     34 clean:
     35         $(RM) *$(O)
     36         $(RM) *$(E)
     37 
     38 # End of makefile for png2pnm / pnm2png
     39