1996-01-26 02:38:47 -05:00
|
|
|
# Commodore Amiga Makefile
|
2000-06-24 08:42:42 -04:00
|
|
|
# makefile for libpng and SAS C V6.5x compiler
|
|
|
|
# Copyright (C) 1995-2000 Wolf Faust
|
2009-06-24 10:31:28 -04:00
|
|
|
#
|
2009-06-26 22:46:52 -04:00
|
|
|
# This code is released under the libpng license.
|
2009-06-25 14:43:50 -04:00
|
|
|
# For conditions of distribution and use, see the disclaimer
|
2009-06-24 11:27:36 -04:00
|
|
|
# and license in png.h
|
2000-06-24 08:42:42 -04:00
|
|
|
#
|
|
|
|
# Location/path of zlib include files
|
|
|
|
ZLIB=/zlib
|
1996-01-26 02:38:47 -05:00
|
|
|
#compiler
|
|
|
|
CC=sc
|
|
|
|
#compiler flags
|
|
|
|
# WARNING: a bug in V6.51 causes bad code with OPTGO
|
|
|
|
# So use V6.55 or set NOOPTGO!!!!!!!!!
|
2009-12-04 09:40:41 -05:00
|
|
|
CFLAGS= NOSTKCHK PARMS=REG OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL\
|
2000-06-24 08:42:42 -04:00
|
|
|
OPTLOOP OPTRDEP=4 OPTDEP=4 OPTCOMP=4 INCLUDEDIR=$(ZLIB) \
|
2000-11-23 12:51:42 -05:00
|
|
|
DEFINE=PNG_INTERNAL
|
1996-01-26 02:38:47 -05:00
|
|
|
#linker flags
|
|
|
|
LDFLAGS= SD ND BATCH
|
|
|
|
#link libs
|
|
|
|
LDLIBS= libpng.lib libgz.lib LIB:scm.lib LIB:sc.lib Lib:amiga.lib
|
2004-07-17 23:45:44 -04:00
|
|
|
# linker
|
|
|
|
LN= slink
|
|
|
|
# file deletion command
|
|
|
|
RM= delete quiet
|
|
|
|
# library (.lib) file creation command
|
|
|
|
AR= oml
|
|
|
|
# make directory command
|
|
|
|
MKDIR= makedir
|
1996-01-26 02:38:47 -05:00
|
|
|
|
2014-03-22 14:13:11 -04:00
|
|
|
# Pre-built configuration
|
|
|
|
# See scripts/pnglibconf.mak for more options
|
|
|
|
PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt
|
|
|
|
|
2000-06-24 08:42:42 -04:00
|
|
|
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
|
|
|
|
pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
|
|
|
|
pngwtran.o pngmem.o pngerror.o pngpread.o
|
1996-01-26 02:38:47 -05:00
|
|
|
|
2009-05-02 16:36:08 -04:00
|
|
|
all: libpng.lib pngtest
|
1996-01-26 02:38:47 -05:00
|
|
|
|
|
|
|
libpng.lib: $(OBJS)
|
|
|
|
-$(RM) libpng.lib
|
2004-07-17 23:45:44 -04:00
|
|
|
$(AR) libpng.lib r $(OBJS)
|
1996-01-26 02:38:47 -05:00
|
|
|
|
2011-12-21 09:26:42 -05:00
|
|
|
$(OBJS): pngpriv.h png.h pngconf.h pnglibconf.h pnginfo.h pngstruct.h pngdebug.h
|
2010-04-17 09:17:51 -04:00
|
|
|
|
2014-03-22 14:13:11 -04:00
|
|
|
pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
|
2014-03-22 19:44:24 -04:00
|
|
|
COPY scripts/pnglibconf.h.prebuilt TO pnglibconf.h
|
2010-04-17 09:17:51 -04:00
|
|
|
|
1996-01-26 02:38:47 -05:00
|
|
|
pngtest: pngtest.o libpng.lib
|
|
|
|
$(LN) <WITH <
|
|
|
|
$(LDFLAGS)
|
|
|
|
TO pngtest
|
|
|
|
FROM LIB:c.o pngtest.o
|
|
|
|
LIB $(LDLIBS)
|
|
|
|
<
|
|
|
|
|