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 | |
Glenn Randers-Pehrson | c4a2ae6 | 1998-01-16 22:06:18 -0600 | [diff] [blame] | 4 | # To use, do "make -fmakefile.tc3" |
Guy Schalnat | b2e01bd | 1996-01-26 01:38:47 -0600 | [diff] [blame] | 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 |
Glenn Randers-Pehrson | 08a3343 | 1998-03-07 06:06:55 -0600 | [diff] [blame] | 12 | LDFLAGS=$(MODEL) -L..\zlib |
Guy Schalnat | b2e01bd | 1996-01-26 01:38:47 -0600 | [diff] [blame] | 13 | O=.obj |
Glenn Randers-Pehrson | 08a3343 | 1998-03-07 06:06:55 -0600 | [diff] [blame] | 14 | E=.exe |
Guy Schalnat | b2e01bd | 1996-01-26 01:38:47 -0600 | [diff] [blame] | 15 | |
| 16 | # variables |
Glenn Randers-Pehrson | 0f7202f | 1998-03-08 18:52:15 -0600 | [diff] [blame^] | 17 | OBJS1 = png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) |
Andreas Dilger | 47a0c42 | 1997-05-16 02:46:07 -0500 | [diff] [blame] | 18 | OBJS2 = pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) |
| 19 | OBJS3 = pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O) |
| 20 | OBJSL1 = +png$(O) +pngset$(O) +pngget$(O) +pngrutil$(O) +pngtrans$(O) |
Glenn Randers-Pehrson | 0f7202f | 1998-03-08 18:52:15 -0600 | [diff] [blame^] | 21 | OBJSL2 = +pngwutil$(O) +pngmem$(O) +pngpread$(O) +pngread$(O) +pngerror$(O) |
| 22 | OBJSL3 = +pngwrite$(O) +pngrtran$(O) +pngwtran$(O) +pngrio$(O) +pngwio$(O) |
Guy Schalnat | b2e01bd | 1996-01-26 01:38:47 -0600 | [diff] [blame] | 23 | |
Glenn Randers-Pehrson | 08a3343 | 1998-03-07 06:06:55 -0600 | [diff] [blame] | 24 | all: libpng.lib pngtest.exe |
Guy Schalnat | b2e01bd | 1996-01-26 01:38:47 -0600 | [diff] [blame] | 25 | |
| 26 | png$(O): png.h pngconf.h |
| 27 | $(CC) -c $(CFLAGS) $*.c |
| 28 | |
Andreas Dilger | 47a0c42 | 1997-05-16 02:46:07 -0500 | [diff] [blame] | 29 | pngset$(O): png.h pngconf.h |
| 30 | $(CC) -c $(CFLAGS) $*.c |
| 31 | |
| 32 | pngget$(O): png.h pngconf.h |
Guy Schalnat | b2e01bd | 1996-01-26 01:38:47 -0600 | [diff] [blame] | 33 | $(CC) -c $(CFLAGS) $*.c |
| 34 | |
| 35 | pngread$(O): png.h pngconf.h |
| 36 | $(CC) -c $(CFLAGS) $*.c |
| 37 | |
| 38 | pngpread$(O): png.h pngconf.h |
| 39 | $(CC) -c $(CFLAGS) $*.c |
| 40 | |
| 41 | pngrtran$(O): png.h pngconf.h |
| 42 | $(CC) -c $(CFLAGS) $*.c |
| 43 | |
| 44 | pngrutil$(O): png.h pngconf.h |
| 45 | $(CC) -c $(CFLAGS) $*.c |
| 46 | |
| 47 | pngerror$(O): png.h pngconf.h |
| 48 | $(CC) -c $(CFLAGS) $*.c |
| 49 | |
| 50 | pngmem$(O): png.h pngconf.h |
| 51 | $(CC) -c $(CFLAGS) $*.c |
| 52 | |
Guy Schalnat | e5a3779 | 1996-06-05 15:50:50 -0500 | [diff] [blame] | 53 | pngrio$(O): png.h pngconf.h |
| 54 | $(CC) -c $(CFLAGS) $*.c |
| 55 | |
| 56 | pngwio$(O): png.h pngconf.h |
Guy Schalnat | b2e01bd | 1996-01-26 01:38:47 -0600 | [diff] [blame] | 57 | $(CC) -c $(CFLAGS) $*.c |
| 58 | |
| 59 | pngtest$(O): png.h pngconf.h |
| 60 | $(CC) -c $(CFLAGS) $*.c |
| 61 | |
| 62 | pngtrans$(O): png.h pngconf.h |
| 63 | $(CC) -c $(CFLAGS) $*.c |
| 64 | |
| 65 | pngwrite$(O): png.h pngconf.h |
| 66 | $(CC) -c $(CFLAGS) $*.c |
| 67 | |
| 68 | pngwtran$(O): png.h pngconf.h |
| 69 | $(CC) -c $(CFLAGS) $*.c |
| 70 | |
| 71 | pngwutil$(O): png.h pngconf.h |
| 72 | $(CC) -c $(CFLAGS) $*.c |
| 73 | |
Andreas Dilger | 47a0c42 | 1997-05-16 02:46:07 -0500 | [diff] [blame] | 74 | libpng.lib: $(OBJS1) $(OBJS2) $(OBJS3) |
Guy Schalnat | b2e01bd | 1996-01-26 01:38:47 -0600 | [diff] [blame] | 75 | $(LIB) libpng +$(OBJSL1) |
| 76 | $(LIB) libpng +$(OBJSL2) |
Andreas Dilger | 47a0c42 | 1997-05-16 02:46:07 -0500 | [diff] [blame] | 77 | $(LIB) libpng +$(OBJSL3) |
Guy Schalnat | b2e01bd | 1996-01-26 01:38:47 -0600 | [diff] [blame] | 78 | |
Glenn Randers-Pehrson | 08a3343 | 1998-03-07 06:06:55 -0600 | [diff] [blame] | 79 | pngtest$(E): pngtest$(O) libpng.lib |
| 80 | $(CC) $(LDFLAGS) pngtest.obj libpng.lib zlib.lib |
| 81 | |
Glenn Randers-Pehrson | 0f7202f | 1998-03-08 18:52:15 -0600 | [diff] [blame^] | 82 | # End of makefile for libpng |