Guy Schalnat | b2e01bd | 1996-01-26 01:38:47 -0600 | [diff] [blame] | 1 | # Makefile for libpng |
| 2 | # TurboC++ 3.0 (Note: All modules are compiled in C mode) |
| 3 | |
| 4 | # To use, do "make -fmakefile.tc" |
| 5 | |
| 6 | # ------------- Turbo C++ 3.0 ------------- |
| 7 | MODEL=-ml |
| 8 | CFLAGS=-O2 -Z $(MODEL) -I..\zlib |
| 9 | CC=tcc |
| 10 | LD=tcc |
| 11 | LIB=tlib |
| 12 | LDFLAGS=$(MODEL) |
| 13 | O=.obj |
| 14 | |
| 15 | # variables |
| 16 | OBJS1 = png$(O) pngrcb$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) pngmem$(O) pngpread$(O) |
Guy Schalnat | e5a3779 | 1996-06-05 15:50:50 -0500 | [diff] [blame^] | 17 | OBJS2 = pngread$(O) pngerror$(O) pngwrite$(O) pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O) |
Guy Schalnat | b2e01bd | 1996-01-26 01:38:47 -0600 | [diff] [blame] | 18 | OBJSL1 = +png$(O) +pngrcb$(O) +pngrutil$(O) +pngtrans$(O) +pngwutil$(O) +pngmem$(O) +pngpread$(O) |
Guy Schalnat | e5a3779 | 1996-06-05 15:50:50 -0500 | [diff] [blame^] | 19 | OBJSL2 = +pngread$(O) +pngerror$(O) +pngwrite$(O) +pngrtran$(O) +pngwtran$(O) +pngrio$(O) +pngwio$(O) |
Guy Schalnat | b2e01bd | 1996-01-26 01:38:47 -0600 | [diff] [blame] | 20 | |
| 21 | all: libpng.lib |
| 22 | |
| 23 | png$(O): png.h pngconf.h |
| 24 | $(CC) -c $(CFLAGS) $*.c |
| 25 | |
| 26 | pngrcb$(O): png.h pngconf.h |
| 27 | $(CC) -c $(CFLAGS) $*.c |
| 28 | |
| 29 | pngread$(O): png.h pngconf.h |
| 30 | $(CC) -c $(CFLAGS) $*.c |
| 31 | |
| 32 | pngpread$(O): png.h pngconf.h |
| 33 | $(CC) -c $(CFLAGS) $*.c |
| 34 | |
| 35 | pngrtran$(O): png.h pngconf.h |
| 36 | $(CC) -c $(CFLAGS) $*.c |
| 37 | |
| 38 | pngrutil$(O): png.h pngconf.h |
| 39 | $(CC) -c $(CFLAGS) $*.c |
| 40 | |
| 41 | pngerror$(O): png.h pngconf.h |
| 42 | $(CC) -c $(CFLAGS) $*.c |
| 43 | |
| 44 | pngmem$(O): png.h pngconf.h |
| 45 | $(CC) -c $(CFLAGS) $*.c |
| 46 | |
Guy Schalnat | e5a3779 | 1996-06-05 15:50:50 -0500 | [diff] [blame^] | 47 | pngrio$(O): png.h pngconf.h |
| 48 | $(CC) -c $(CFLAGS) $*.c |
| 49 | |
| 50 | pngwio$(O): png.h pngconf.h |
Guy Schalnat | b2e01bd | 1996-01-26 01:38:47 -0600 | [diff] [blame] | 51 | $(CC) -c $(CFLAGS) $*.c |
| 52 | |
| 53 | pngtest$(O): png.h pngconf.h |
| 54 | $(CC) -c $(CFLAGS) $*.c |
| 55 | |
| 56 | pngtrans$(O): png.h pngconf.h |
| 57 | $(CC) -c $(CFLAGS) $*.c |
| 58 | |
| 59 | pngwrite$(O): png.h pngconf.h |
| 60 | $(CC) -c $(CFLAGS) $*.c |
| 61 | |
| 62 | pngwtran$(O): png.h pngconf.h |
| 63 | $(CC) -c $(CFLAGS) $*.c |
| 64 | |
| 65 | pngwutil$(O): png.h pngconf.h |
| 66 | $(CC) -c $(CFLAGS) $*.c |
| 67 | |
| 68 | libpng.lib: $(OBJS1) $(OBJS2) |
| 69 | $(LIB) libpng +$(OBJSL1) |
| 70 | $(LIB) libpng +$(OBJSL2) |
| 71 | |
| 72 | # End of makefile for libpng |