libpng/scripts/makefile.amiga

52 lines
1.3 KiB
Plaintext
Raw Normal View History

1996-01-26 07:38:47 +00:00
# Commodore Amiga Makefile
2000-06-24 12:42:42 +00:00
# makefile for libpng and SAS C V6.5x compiler
# Copyright (C) 1995-2000 Wolf Faust
2000-06-04 19:29:29 +00:00
# For conditions of distribution and use, see copyright notice in png.h
2000-06-24 12:42:42 +00:00
#
# Note: Use #define PNG_READ_BIG_ENDIAN_SUPPORTED in pngconf.h
#
# Location/path of zlib include files
ZLIB=/zlib
1996-01-26 07:38:47 +00:00
#compiler
CC=sc
#compiler flags
# WARNING: a bug in V6.51 causes bad code with OPTGO
# So use V6.55 or set NOOPTGO!!!!!!!!!
CFLAGS= NOSTKCHK PARMS=REG OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL\
2000-06-24 12:42:42 +00:00
OPTLOOP OPTRDEP=4 OPTDEP=4 OPTCOMP=4 INCLUDEDIR=$(ZLIB) \
2000-11-23 17:51:42 +00:00
DEFINE=PNG_INTERNAL
1996-01-26 07:38:47 +00: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-18 03:45:44 +00: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 07:38:47 +00:00
2000-06-24 12:42:42 +00: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 07:38:47 +00:00
2006-08-19 18:59:24 +00:00
all: libpng.lib pngtest pngdefs.h
pngdefs.h:
echo "/* pngdefs.h was built by makefile.amiga */" > pngdefs.h
1996-01-26 07:38:47 +00:00
libpng.lib: $(OBJS)
-$(RM) libpng.lib
2004-07-18 03:45:44 +00:00
$(AR) libpng.lib r $(OBJS)
1996-01-26 07:38:47 +00:00
pngtest: pngtest.o libpng.lib
$(LN) <WITH <
$(LDFLAGS)
TO pngtest
FROM LIB:c.o pngtest.o
LIB $(LDLIBS)
<