1996-01-26 02:38:47 -05:00
|
|
|
# Makefile for libpng
|
2000-03-21 06:13:06 -05:00
|
|
|
# TurboC/C++ (Note: All modules are compiled in C mode)
|
1996-01-26 02:38:47 -05:00
|
|
|
|
2000-03-21 06:13:06 -05:00
|
|
|
# To use, do "make -fmakefile.tc3"
|
1996-01-26 02:38:47 -05:00
|
|
|
|
2014-01-12 11:44:01 -05:00
|
|
|
# ----- Turbo C++ 3.0 -----
|
2000-03-21 06:13:06 -05:00
|
|
|
|
|
|
|
MODEL=l
|
2014-01-12 11:44:01 -05:00
|
|
|
CPPFLAGS=-I..\zlib
|
|
|
|
CFLAGS=-O2 -Z -m$(MODEL)
|
1996-01-26 02:38:47 -05:00
|
|
|
CC=tcc
|
|
|
|
LD=tcc
|
|
|
|
LIB=tlib
|
2000-03-21 06:13:06 -05:00
|
|
|
LDFLAGS=-m$(MODEL) -L..\zlib
|
2014-03-22 10:29:59 -04:00
|
|
|
CP=copy
|
|
|
|
|
2014-03-22 14:13:11 -04:00
|
|
|
# Pre-built configuration
|
|
|
|
# See scripts/pnglibconf.mak for more options
|
|
|
|
PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt
|
|
|
|
|
1996-01-26 02:38:47 -05:00
|
|
|
O=.obj
|
1998-03-07 07:06:55 -05:00
|
|
|
E=.exe
|
1996-01-26 02:38:47 -05:00
|
|
|
|
|
|
|
# variables
|
1998-03-08 19:52:15 -05:00
|
|
|
OBJS1 = png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O)
|
1997-05-16 03:46:07 -04:00
|
|
|
OBJS2 = pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O)
|
|
|
|
OBJS3 = pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
|
|
|
|
OBJSL1 = +png$(O) +pngset$(O) +pngget$(O) +pngrutil$(O) +pngtrans$(O)
|
1998-03-08 19:52:15 -05:00
|
|
|
OBJSL2 = +pngwutil$(O) +pngmem$(O) +pngpread$(O) +pngread$(O) +pngerror$(O)
|
|
|
|
OBJSL3 = +pngwrite$(O) +pngrtran$(O) +pngwtran$(O) +pngrio$(O) +pngwio$(O)
|
1996-01-26 02:38:47 -05:00
|
|
|
|
2000-03-21 06:13:06 -05:00
|
|
|
all: libpng$(MODEL).lib pngtest$(E)
|
|
|
|
|
2014-03-22 14:13:11 -04:00
|
|
|
pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
|
2014-03-22 10:29:59 -04:00
|
|
|
$(CP) $< $@
|
2010-04-17 09:17:51 -04:00
|
|
|
|
2000-03-21 06:13:06 -05:00
|
|
|
pngtest: pngtest$(E)
|
|
|
|
|
|
|
|
test: pngtest$(E)
|
|
|
|
pngtest$(E)
|
1996-01-26 02:38:47 -05:00
|
|
|
|
2014-01-12 11:44:01 -05:00
|
|
|
png$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
1996-01-26 02:38:47 -05:00
|
|
|
|
2014-01-12 11:44:01 -05:00
|
|
|
pngset$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
1997-05-16 03:46:07 -04:00
|
|
|
|
2014-01-12 11:44:01 -05:00
|
|
|
pngget$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
1996-01-26 02:38:47 -05:00
|
|
|
|
2014-01-12 11:44:01 -05:00
|
|
|
pngread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
1996-01-26 02:38:47 -05:00
|
|
|
|
2014-01-12 11:44:01 -05:00
|
|
|
pngpread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
1996-01-26 02:38:47 -05:00
|
|
|
|
2014-01-12 11:44:01 -05:00
|
|
|
pngrtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
1996-01-26 02:38:47 -05:00
|
|
|
|
2014-01-12 11:44:01 -05:00
|
|
|
pngrutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
1996-01-26 02:38:47 -05:00
|
|
|
|
2014-01-12 11:44:01 -05:00
|
|
|
pngerror$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
1996-01-26 02:38:47 -05:00
|
|
|
|
2014-01-12 11:44:01 -05:00
|
|
|
pngmem$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
1996-01-26 02:38:47 -05:00
|
|
|
|
2014-01-12 11:44:01 -05:00
|
|
|
pngrio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
1996-06-05 16:50:50 -04:00
|
|
|
|
2014-01-12 11:44:01 -05:00
|
|
|
pngwio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
1996-01-26 02:38:47 -05:00
|
|
|
|
2011-12-17 10:57:00 -05:00
|
|
|
pngtest$(O): png.h pngconf.h pnglibconf.h
|
2014-01-12 11:44:01 -05:00
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
1996-01-26 02:38:47 -05:00
|
|
|
|
2014-01-12 11:44:01 -05:00
|
|
|
pngtrans$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
1996-01-26 02:38:47 -05:00
|
|
|
|
2014-01-12 11:44:01 -05:00
|
|
|
pngwrite$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
1996-01-26 02:38:47 -05:00
|
|
|
|
2014-01-12 11:44:01 -05:00
|
|
|
pngwtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
1996-01-26 02:38:47 -05:00
|
|
|
|
2014-01-12 11:44:01 -05:00
|
|
|
pngwutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
1996-01-26 02:38:47 -05:00
|
|
|
|
2000-03-21 06:13:06 -05:00
|
|
|
libpng$(MODEL).lib: $(OBJS1) $(OBJS2) $(OBJS3)
|
|
|
|
$(LIB) libpng$(MODEL) +$(OBJSL1)
|
|
|
|
$(LIB) libpng$(MODEL) +$(OBJSL2)
|
|
|
|
$(LIB) libpng$(MODEL) +$(OBJSL3)
|
1996-01-26 02:38:47 -05:00
|
|
|
|
2000-03-21 06:13:06 -05:00
|
|
|
pngtest$(E): pngtest$(O) libpng$(MODEL).lib
|
|
|
|
$(LD) $(LDFLAGS) pngtest.obj libpng$(MODEL).lib zlib_$(MODEL).lib
|
1998-03-07 07:06:55 -05:00
|
|
|
|
1998-03-08 19:52:15 -05:00
|
|
|
# End of makefile for libpng
|