1 # DJGPP (DOS gcc) makefile for libpng
2 # Copyright (C) 2020-2022 Cosmin Truta
3 # Copyright (C) 2002, 2006, 2009-2014 Glenn Randers-Pehrson
4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
6 # This code is released under the libpng license.
7 # For conditions of distribution and use, see the disclaimer
11 CPPFLAGS=-I../zlib -DPNG_NO_SNPRINTF
13 LDFLAGS=-L. -L../zlib/ -lpng -lz -lm
18 # Pre-built configuration
19 # See scripts/pnglibconf.mak for more options
20 PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt
22 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \
23 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \
24 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o
27 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
31 pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
32 $(CP) $(PNGLIBCONF_H_PREBUILT) $@
38 pngtest: pngtest.o libpng.a
39 $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
46 @echo "The $@ target is no longer supported by this makefile."
50 $(RM_F) *.o libpng.a pngtest pngout.png pnglibconf.h
52 # DO NOT DELETE THIS LINE -- make depend depends on it.
54 png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
55 pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
56 pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
57 pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
58 pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
59 pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
60 pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
61 pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
62 pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
63 pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
64 pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
65 pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
66 pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
67 pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
68 pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
70 pngtest.o: png.h pngconf.h pnglibconf.h