1*a67afe4dSAndroid Build Coastguard Worker# makefile for libpng 2*a67afe4dSAndroid Build Coastguard Worker# Copyright (C) 2022 Cosmin Truta 3*a67afe4dSAndroid Build Coastguard Worker# Copyright (C) 2002, 2014 Glenn Randers-Pehrson 4*a67afe4dSAndroid Build Coastguard Worker# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. 5*a67afe4dSAndroid Build Coastguard Worker# 6*a67afe4dSAndroid Build Coastguard Worker# This code is released under the libpng license. 7*a67afe4dSAndroid Build Coastguard Worker# For conditions of distribution and use, see the disclaimer 8*a67afe4dSAndroid Build Coastguard Worker# and license in png.h 9*a67afe4dSAndroid Build Coastguard Worker# 10*a67afe4dSAndroid Build Coastguard Worker# Modified for LC56/ATARI assumes libz.lib is in same dir and uses default 11*a67afe4dSAndroid Build Coastguard Worker# rules for library management 12*a67afe4dSAndroid Build Coastguard Worker# 13*a67afe4dSAndroid Build Coastguard WorkerCPPFLAGS = -I../zlib 14*a67afe4dSAndroid Build Coastguard WorkerCFLAGS = -O 15*a67afe4dSAndroid Build Coastguard WorkerLBR = png.lib 16*a67afe4dSAndroid Build Coastguard WorkerLDFLAGS = -L. -L../zlib -lpng -lz -lm 17*a67afe4dSAndroid Build Coastguard Worker 18*a67afe4dSAndroid Build Coastguard Worker# Pre-built configuration 19*a67afe4dSAndroid Build Coastguard Worker# See scripts/pnglibconf.mak for more options 20*a67afe4dSAndroid Build Coastguard WorkerPNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt 21*a67afe4dSAndroid Build Coastguard Worker 22*a67afe4dSAndroid Build Coastguard WorkerOBJS = $(LBR)(png.o) $(LBR)(pngerror.o) $(LBR)(pngget.o) $(LBR)(pngmem.o) \ 23*a67afe4dSAndroid Build Coastguard Worker $(LBR)(pngpread.o) $(LBR)(pngread.o) $(LBR)(pngrio.o) \ 24*a67afe4dSAndroid Build Coastguard Worker $(LBR)(pngrtran.o) $(LBR)(pngrutil.o) $(LBR)(pngset.o) \ 25*a67afe4dSAndroid Build Coastguard Worker $(LBR)(pngtrans.o) $(LBR)(pngwio.o) $(LBR)(pngwrite.o) \ 26*a67afe4dSAndroid Build Coastguard Worker $(LBR)(pngwtran.o) $(LBR)(pngwutil.o) 27*a67afe4dSAndroid Build Coastguard Worker 28*a67afe4dSAndroid Build Coastguard Workerall: $(LBR) pngtest.ttp 29*a67afe4dSAndroid Build Coastguard Worker 30*a67afe4dSAndroid Build Coastguard Worker.c.o: 31*a67afe4dSAndroid Build Coastguard Worker $(CC) -c $(CPPFLAGS) $(CFLAGS) $< 32*a67afe4dSAndroid Build Coastguard Worker 33*a67afe4dSAndroid Build Coastguard Worker$(LBR): $(OBJS) 34*a67afe4dSAndroid Build Coastguard Worker 35*a67afe4dSAndroid Build Coastguard Worker$(OBJS): pngpriv.h png.h pngconf.h pnglibconf.h pnginfo.h pngstruct.h pngdebug.h 36*a67afe4dSAndroid Build Coastguard Worker 37*a67afe4dSAndroid Build Coastguard Workerpnglibconf.h: $(PNGLIBCONF_H_PREBUILT) 38*a67afe4dSAndroid Build Coastguard Worker cp $(PNGLIBCONF_H_PREBUILT) $@ 39*a67afe4dSAndroid Build Coastguard Worker 40*a67afe4dSAndroid Build Coastguard Workerpngtest.ttp: pngtest.o $(LBR) 41*a67afe4dSAndroid Build Coastguard Worker $(CC) $(CFLAGS) $(LDFLAGS) -o$@ pngtest.o 42*a67afe4dSAndroid Build Coastguard Worker 43*a67afe4dSAndroid Build Coastguard Workerinstall: 44*a67afe4dSAndroid Build Coastguard Worker @echo "The $@ target is no longer supported by this makefile." 45*a67afe4dSAndroid Build Coastguard Worker @false 46