|
fukasawa |
e60969 |
# DJGPP (DOS gcc) makefile for libpng
|
|
fukasawa |
e60969 |
# Copyright (C) 2002, 2006, 2009-2014 Glenn Randers-Pehrson
|
|
fukasawa |
e60969 |
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
|
fukasawa |
e60969 |
#
|
|
fukasawa |
e60969 |
# This code is released under the libpng license.
|
|
fukasawa |
e60969 |
# For conditions of distribution and use, see the disclaimer
|
|
fukasawa |
e60969 |
# and license in png.h
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
# where make install will put libpng.a and png.h
|
|
fukasawa |
e60969 |
#prefix=/usr/local
|
|
fukasawa |
e60969 |
prefix=.
|
|
fukasawa |
e60969 |
INCPATH=$(prefix)/include
|
|
fukasawa |
e60969 |
LIBPATH=$(prefix)/lib
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
CC=gcc
|
|
fukasawa |
e60969 |
CPPFLAGS=-I../zlib -DPNG_NO_SNPRINTF
|
|
fukasawa |
e60969 |
CFLAGS=-O
|
|
fukasawa |
e60969 |
LDFLAGS=-L. -L../zlib/ -lpng -lz -lm
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
RANLIB=ranlib
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
CP=cp
|
|
fukasawa |
e60969 |
RM_F=rm -f
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
# Pre-built configuration
|
|
fukasawa |
e60969 |
# See scripts/pnglibconf.mak for more options
|
|
fukasawa |
e60969 |
PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
|
|
fukasawa |
e60969 |
pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o pngwtran.o \
|
|
fukasawa |
e60969 |
pngmem.o pngerror.o pngpread.o
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
.c.o:
|
|
fukasawa |
e60969 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
all: libpng.a pngtest
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
|
|
fukasawa |
e60969 |
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
libpng.a: $(OBJS)
|
|
fukasawa |
e60969 |
ar rc $@ $(OBJS)
|
|
fukasawa |
e60969 |
$(RANLIB) $@
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngtest: pngtest.o libpng.a
|
|
fukasawa |
e60969 |
$(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
|
|
fukasawa |
e60969 |
coff2exe pngtest
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
test: pngtest
|
|
fukasawa |
e60969 |
./pngtest
|
|
fukasawa |
e60969 |
clean:
|
|
fukasawa |
e60969 |
$(RM_F) *.o libpng.a pngtest pngout.png pnglibconf.h
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
pngtest.o: png.h pngconf.h pnglibconf.h
|