|
fukasawa |
e60969 |
# Makefile for libpng
|
|
fukasawa |
e60969 |
# TurboC/C++ (Note: All modules are compiled in C mode)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
# To use, do "make -fmakefile.tc3"
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
# ----- Turbo C++ 3.0 -----
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
MODEL=l
|
|
fukasawa |
e60969 |
CPPFLAGS=-I..\zlib
|
|
fukasawa |
e60969 |
CFLAGS=-O2 -Z -m$(MODEL)
|
|
fukasawa |
e60969 |
CC=tcc
|
|
fukasawa |
e60969 |
LD=tcc
|
|
fukasawa |
e60969 |
LIB=tlib
|
|
fukasawa |
e60969 |
LDFLAGS=-m$(MODEL) -L..\zlib
|
|
fukasawa |
e60969 |
CP=copy
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
# Pre-built configuration
|
|
fukasawa |
e60969 |
# See scripts\pnglibconf.mak for more options
|
|
fukasawa |
e60969 |
!ifndef PNGLIBCONF_H_PREBUILT
|
|
fukasawa |
e60969 |
PNGLIBCONF_H_PREBUILT = scripts\pnglibconf.h.prebuilt
|
|
fukasawa |
e60969 |
!endif
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
O=.obj
|
|
fukasawa |
e60969 |
E=.exe
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
# variables
|
|
fukasawa |
e60969 |
OBJS1 = png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O)
|
|
fukasawa |
e60969 |
OBJS2 = pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O)
|
|
fukasawa |
e60969 |
OBJS3 = pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
|
|
fukasawa |
e60969 |
OBJSL1 = +png$(O) +pngset$(O) +pngget$(O) +pngrutil$(O) +pngtrans$(O)
|
|
fukasawa |
e60969 |
OBJSL2 = +pngwutil$(O) +pngmem$(O) +pngpread$(O) +pngread$(O) +pngerror$(O)
|
|
fukasawa |
e60969 |
OBJSL3 = +pngwrite$(O) +pngrtran$(O) +pngwtran$(O) +pngrio$(O) +pngwio$(O)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
all: libpng$(MODEL).lib pngtest$(E)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
|
|
fukasawa |
e60969 |
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngtest: pngtest$(E)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
test: pngtest$(E)
|
|
fukasawa |
e60969 |
pngtest$(E)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
png$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngset$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngget$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngpread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngrtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngrutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngerror$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngmem$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngrio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngwio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngtest$(O): png.h pngconf.h pnglibconf.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngtrans$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngwrite$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngwtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngwutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
libpng$(MODEL).lib: $(OBJS1) $(OBJS2) $(OBJS3)
|
|
fukasawa |
e60969 |
$(LIB) libpng$(MODEL) +$(OBJSL1)
|
|
fukasawa |
e60969 |
$(LIB) libpng$(MODEL) +$(OBJSL2)
|
|
fukasawa |
e60969 |
$(LIB) libpng$(MODEL) +$(OBJSL3)
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngtest$(E): pngtest$(O) libpng$(MODEL).lib
|
|
fukasawa |
e60969 |
$(LD) $(LDFLAGS) pngtest.obj libpng$(MODEL).lib zlib_$(MODEL).lib
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
# End of makefile for libpng
|