lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 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 | CCFLAGS=-O -m$(MODEL) -I..\libpng -I..\zlib |
| 11 | LDFLAGS=-m$(MODEL) -L..\libpng -L..\zlib |
| 12 | C=.c |
| 13 | O=.obj |
| 14 | L=.lib |
| 15 | E=.exe |
| 16 | |
| 17 | # dependencies |
| 18 | |
| 19 | all: png2pnm$(E) pnm2png$(E) |
| 20 | |
| 21 | png2pnm$(O): png2pnm$(C) |
| 22 | $(CC) -c $(CCFLAGS) png2pnm$(C) |
| 23 | |
| 24 | png2pnm$(E): png2pnm$(O) |
| 25 | $(LD) $(LDFLAGS) png2pnm$(O) libpng$(L) zlib$(L) |
| 26 | |
| 27 | pnm2png$(O): pnm2png$(C) |
| 28 | $(CC) -c $(CCFLAGS) pnm2png$(C) |
| 29 | |
| 30 | pnm2png$(E): pnm2png$(O) |
| 31 | $(LD) $(LDFLAGS) pnm2png$(O) libpng$(L) zlib$(L) |
| 32 | |
| 33 | clean: |
| 34 | $(RM) *$(O) |
| 35 | $(RM) *$(E) |
| 36 | |
| 37 | # End of makefile for png2pnm / pnm2png |
| 38 | |