VirtualBox

source: vbox/trunk/src/libs/libpng-1.6.45/scripts/makefile.dj2@ 107813

Last change on this file since 107813 was 107813, checked in by vboxsync, 4 weeks ago

libpng-1.6.45: Applied and adjusted our libpng changes to 1.6.45. bugref:8515

File size: 2.6 KB
Line 
1# DJGPP (DOS gcc) makefile for libpng
2# Copyright (C) 2020-2024 Cosmin Truta
3# Copyright (C) 2002, 2006, 2009-2014 Glenn Randers-Pehrson
4# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
5#
6# This code is released under the libpng license.
7# For conditions of distribution and use, see the disclaimer
8# and license in png.h
9
10CC=gcc
11AR=ar
12RANLIB=ranlib
13CPPFLAGS=-I../zlib -DPNG_NO_SNPRINTF
14CFLAGS=-O
15ARFLAGS=rc
16LDFLAGS=-L. -L../zlib/ -lpng -lz -lm
17
18CP=cp
19RM_F=rm -f
20
21# Pre-built configuration
22# See scripts/pnglibconf.mak for more options
23PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt
24
25OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \
26 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \
27 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o
28
29.c.o:
30 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
31
32all: libpng.a pngtest
33
34pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
35 $(CP) $(PNGLIBCONF_H_PREBUILT) $@
36
37libpng.a: $(OBJS)
38 $(AR) $(ARFLAGS) $@ $(OBJS)
39 $(RANLIB) $@
40
41pngtest: pngtest.o libpng.a
42 $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
43 coff2exe pngtest
44
45test: pngtest
46 ./pngtest
47
48install:
49 @echo "The $@ target is no longer supported by this makefile."
50 @false
51
52clean:
53 $(RM_F) *.o libpng.a pngtest pngout.png pnglibconf.h
54
55# DO NOT DELETE THIS LINE -- make depend depends on it.
56
57png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
58pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
59pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
60pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
61pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
62pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
63pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
64pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
65pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
66pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
67pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
68pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
69pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
70pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
71pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
72
73pngtest.o: png.h pngconf.h pnglibconf.h
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette