xref: /aosp_15_r20/external/libpng/scripts/smakefile.ppc (revision a67afe4df73cf47866eedc69947994b8ff839aba)
1# Amiga powerUP (TM) Makefile
2# makefile for libpng and SAS C V6.58/7.00 PPC compiler
3# Copyright (C) 1998 by Andreas R. Kleinert
4#
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
8
9CC       = scppc
10CFLAGS   = NOSTKCHK NOSINT OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL IDIR /zlib \
11           OPTLOOP OPTRDEP=8 OPTDEP=8 OPTCOMP=8
12LIBNAME  = libpng.a
13AR       = ppc-amigaos-ar
14ARFLAGS  = cr
15RANLIB   = ppc-amigaos-ranlib
16LDFLAGS  = -r -o
17LDLIBS   =  ../zlib/libzip.a LIB:scppc.a
18LN       = ppc-amigaos-ld
19RM       = delete quiet
20
21OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \
22       pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \
23       pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o
24
25all: $(LIBNAME) pngtest
26
27$(LIBNAME): $(OBJS)
28            $(AR) $(ARFLAGS) $@ $(OBJS)
29            $(RANLIB) $@
30
31pngtest: pngtest.o $(LIBNAME)
32        $(LN) $(LDFLAGS) pngtest LIB:c_ppc.o pngtest.o $(LIBNAME) $(LDLIBS) \
33LIB:end.o
34