The Android Open Source Project | 893912b | 2009-03-03 19:30:05 -0800 | [diff] [blame] | 1 | # Commodore Amiga Makefile |
| 2 | # makefile for libpng and SAS C V6.5x compiler |
| 3 | # Copyright (C) 1995-2000 Wolf Faust |
Patrick Scott | 5f6bd84 | 2010-06-28 16:55:16 -0400 | [diff] [blame] | 4 | # |
Patrick Scott | a0bb96c | 2009-07-22 11:50:02 -0400 | [diff] [blame] | 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 |
The Android Open Source Project | 893912b | 2009-03-03 19:30:05 -0800 | [diff] [blame] | 8 | # |
The Android Open Source Project | 893912b | 2009-03-03 19:30:05 -0800 | [diff] [blame] | 9 | # Location/path of zlib include files |
| 10 | ZLIB=/zlib |
| 11 | #compiler |
| 12 | CC=sc |
| 13 | #compiler flags |
| 14 | # WARNING: a bug in V6.51 causes bad code with OPTGO |
| 15 | # So use V6.55 or set NOOPTGO!!!!!!!!! |
| 16 | CFLAGS= NOSTKCHK PARMS=REG OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL\ |
| 17 | OPTLOOP OPTRDEP=4 OPTDEP=4 OPTCOMP=4 INCLUDEDIR=$(ZLIB) \ |
| 18 | DEFINE=PNG_INTERNAL |
| 19 | #linker flags |
| 20 | LDFLAGS= SD ND BATCH |
| 21 | #link libs |
| 22 | LDLIBS= libpng.lib libgz.lib LIB:scm.lib LIB:sc.lib Lib:amiga.lib |
| 23 | # linker |
| 24 | LN= slink |
| 25 | # file deletion command |
| 26 | RM= delete quiet |
Chris Craik | ca2bf81 | 2013-07-29 15:28:30 -0700 | [diff] [blame] | 27 | # file copy command? |
| 28 | CP= copy |
The Android Open Source Project | 893912b | 2009-03-03 19:30:05 -0800 | [diff] [blame] | 29 | # library (.lib) file creation command |
| 30 | AR= oml |
| 31 | # make directory command |
| 32 | MKDIR= makedir |
| 33 | |
| 34 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ |
| 35 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ |
| 36 | pngwtran.o pngmem.o pngerror.o pngpread.o |
| 37 | |
| 38 | all: libpng.lib pngtest |
| 39 | |
| 40 | libpng.lib: $(OBJS) |
| 41 | -$(RM) libpng.lib |
| 42 | $(AR) libpng.lib r $(OBJS) |
| 43 | |
Chris Craik | ca2bf81 | 2013-07-29 15:28:30 -0700 | [diff] [blame] | 44 | $(OBJS): pngpriv.h png.h pngconf.h pnglibconf.h pnginfo.h pngstruct.h pngdebug.h |
| 45 | |
| 46 | pnglibconf.h: scripts/pnglibconf.h.prebuilt |
| 47 | $(CP) scripts/pnglibconf.h.prebuilt pnglibconf.h |
| 48 | |
The Android Open Source Project | 893912b | 2009-03-03 19:30:05 -0800 | [diff] [blame] | 49 | pngtest: pngtest.o libpng.lib |
| 50 | $(LN) <WITH < |
| 51 | $(LDFLAGS) |
| 52 | TO pngtest |
| 53 | FROM LIB:c.o pngtest.o |
| 54 | LIB $(LDLIBS) |
| 55 | < |
| 56 | |