mirror of
				https://git.code.sf.net/p/libpng/code.git
				synced 2025-07-10 18:04:09 +02:00 
			
		
		
		
	 1cdde11877
			
		
	
	
		1cdde11877
		
	
	
	
	
		
			
			Split AR_RC into AR and ARFLAGS. The variables AR and ARFLAGS are de-facto standards (like CC and CFLAGS, LD and LDFLAGS, etc.) that may be overridden when running make. Moreover, configuring CC, LD, AR, etc., to point to a cross-platform compiler, linker, librarian, etc., is a de-facto standard practice as well. Also remove the MKDIR_P variable definitions from all makefiles. They've been leftovers from the removal of the "install*" targets.
		
			
				
	
	
		
			34 lines
		
	
	
		
			1016 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			1016 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Amiga powerUP (TM) Makefile
 | |
| # makefile for libpng and SAS C V6.58/7.00 PPC compiler
 | |
| # Copyright (C) 1998 by Andreas R. Kleinert
 | |
| #
 | |
| # This code is released under the libpng license.
 | |
| # For conditions of distribution and use, see the disclaimer
 | |
| # and license in png.h
 | |
| 
 | |
| CC       = scppc
 | |
| CFLAGS   = NOSTKCHK NOSINT OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL IDIR /zlib \
 | |
|            OPTLOOP OPTRDEP=8 OPTDEP=8 OPTCOMP=8
 | |
| LIBNAME  = libpng.a
 | |
| AR       = ppc-amigaos-ar
 | |
| ARFLAGS  = cr
 | |
| RANLIB   = ppc-amigaos-ranlib
 | |
| LDFLAGS  = -r -o
 | |
| LDLIBS   =  ../zlib/libzip.a LIB:scppc.a
 | |
| LN       = ppc-amigaos-ld
 | |
| RM       = delete quiet
 | |
| 
 | |
| OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \
 | |
|        pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \
 | |
|        pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o
 | |
| 
 | |
| all: $(LIBNAME) pngtest
 | |
| 
 | |
| $(LIBNAME): $(OBJS)
 | |
|             $(AR) $(ARFLAGS) $@ $(OBJS)
 | |
|             $(RANLIB) $@
 | |
| 
 | |
| pngtest: pngtest.o $(LIBNAME)
 | |
|         $(LN) $(LDFLAGS) pngtest LIB:c_ppc.o pngtest.o $(LIBNAME) $(LDLIBS) \
 | |
| LIB:end.o
 |