beta-0.89.2
[luatex.git] / source / libs / libpng / libpng-src / scripts / makefile.dj2
blobe59c432b44b4b64a5c924e9f359d14a7f5ce8424
1 # DJGPP (DOS gcc) makefile for libpng
2 # Copyright (C) 2002, 2006, 2009-2014 Glenn Randers-Pehrson
3 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
5 # This code is released under the libpng license.
6 # For conditions of distribution and use, see the disclaimer
7 # and license in png.h
9 # where make install will put libpng.a and png.h
10 #prefix=/usr/local
11 prefix=.
12 INCPATH=$(prefix)/include
13 LIBPATH=$(prefix)/lib
15 CC=gcc
16 CPPFLAGS=-I../zlib -DPNG_NO_SNPRINTF
17 CFLAGS=-O
18 LDFLAGS=-L. -L../zlib/ -lpng -lz -lm
20 RANLIB=ranlib
22 CP=cp
23 RM_F=rm -f
25 # Pre-built configuration
26 # See scripts/pnglibconf.mak for more options
27 PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt
29 OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
30         pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o pngwtran.o \
31         pngmem.o pngerror.o pngpread.o
33 .c.o:
34         $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
36 all: libpng.a pngtest
38 pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
39         $(CP) $(PNGLIBCONF_H_PREBUILT) $@
41 libpng.a: $(OBJS)
42         ar rc $@  $(OBJS)
43         $(RANLIB) $@
45 pngtest: pngtest.o libpng.a
46         $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
47         coff2exe pngtest
49 test: pngtest
50         ./pngtest
51 clean:
52         $(RM_F) *.o libpng.a pngtest pngout.png pnglibconf.h
54 # DO NOT DELETE THIS LINE -- make depend depends on it.
56 png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
57 pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
58 pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
59 pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
60 pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
61 pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
62 pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
63 pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
64 pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
65 pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
66 pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
67 pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
68 pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
69 pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
70 pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
72 pngtest.o: png.h pngconf.h pnglibconf.h