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 |
Andreas Dilger | 47a0c42 | 1997-05-16 02:46:07 -0500 | [diff] [blame^] | 16 | OBJS1 = png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) |
| 17 | OBJS2 = pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) |
| 18 | OBJS3 = pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O) |
| 19 | OBJSL1 = +png$(O) +pngset$(O) +pngget$(O) +pngrutil$(O) +pngtrans$(O) |
| 20 | OBJSL2 = +pngwutil$(O) +pngmem$(O) +pngpread$(O) +pngread$(O) +pngerror$(O) |
| 21 | OBJSL3 = +pngwrite$(O) +pngrtran$(O) +pngwtran$(O) +pngrio$(O) +pngwio$(O) |
Guy Schalnat | b2e01bd | 1996-01-26 01:38:47 -0600 | [diff] [blame] | 22 | |
| 23 | all: libpng.lib |
| 24 | |
| 25 | png$(O): png.h pngconf.h |
| 26 | $(CC) -c $(CFLAGS) $*.c |
| 27 | |
Andreas Dilger | 47a0c42 | 1997-05-16 02:46:07 -0500 | [diff] [blame^] | 28 | pngset$(O): png.h pngconf.h |
| 29 | $(CC) -c $(CFLAGS) $*.c |
| 30 | |
| 31 | pngget$(O): png.h pngconf.h |
Guy Schalnat | b2e01bd | 1996-01-26 01:38:47 -0600 | [diff] [blame] | 32 | $(CC) -c $(CFLAGS) $*.c |
| 33 | |
| 34 | pngread$(O): png.h pngconf.h |
| 35 | $(CC) -c $(CFLAGS) $*.c |
| 36 | |
| 37 | pngpread$(O): png.h pngconf.h |
| 38 | $(CC) -c $(CFLAGS) $*.c |
| 39 | |
| 40 | pngrtran$(O): png.h pngconf.h |
| 41 | $(CC) -c $(CFLAGS) $*.c |
| 42 | |
| 43 | pngrutil$(O): png.h pngconf.h |
| 44 | $(CC) -c $(CFLAGS) $*.c |
| 45 | |
| 46 | pngerror$(O): png.h pngconf.h |
| 47 | $(CC) -c $(CFLAGS) $*.c |
| 48 | |
| 49 | pngmem$(O): png.h pngconf.h |
| 50 | $(CC) -c $(CFLAGS) $*.c |
| 51 | |
Guy Schalnat | e5a3779 | 1996-06-05 15:50:50 -0500 | [diff] [blame] | 52 | pngrio$(O): png.h pngconf.h |
| 53 | $(CC) -c $(CFLAGS) $*.c |
| 54 | |
| 55 | pngwio$(O): png.h pngconf.h |
Guy Schalnat | b2e01bd | 1996-01-26 01:38:47 -0600 | [diff] [blame] | 56 | $(CC) -c $(CFLAGS) $*.c |
| 57 | |
| 58 | pngtest$(O): png.h pngconf.h |
| 59 | $(CC) -c $(CFLAGS) $*.c |
| 60 | |
| 61 | pngtrans$(O): png.h pngconf.h |
| 62 | $(CC) -c $(CFLAGS) $*.c |
| 63 | |
| 64 | pngwrite$(O): png.h pngconf.h |
| 65 | $(CC) -c $(CFLAGS) $*.c |
| 66 | |
| 67 | pngwtran$(O): png.h pngconf.h |
| 68 | $(CC) -c $(CFLAGS) $*.c |
| 69 | |
| 70 | pngwutil$(O): png.h pngconf.h |
| 71 | $(CC) -c $(CFLAGS) $*.c |
| 72 | |
Andreas Dilger | 47a0c42 | 1997-05-16 02:46:07 -0500 | [diff] [blame^] | 73 | libpng.lib: $(OBJS1) $(OBJS2) $(OBJS3) |
Guy Schalnat | b2e01bd | 1996-01-26 01:38:47 -0600 | [diff] [blame] | 74 | $(LIB) libpng +$(OBJSL1) |
| 75 | $(LIB) libpng +$(OBJSL2) |
Andreas Dilger | 47a0c42 | 1997-05-16 02:46:07 -0500 | [diff] [blame^] | 76 | $(LIB) libpng +$(OBJSL3) |
Guy Schalnat | b2e01bd | 1996-01-26 01:38:47 -0600 | [diff] [blame] | 77 | |
| 78 | # End of makefile for libpng |