makefile.amiga 1.3 KB
Newer Older
G
Guy Schalnat 已提交
1
# Commodore Amiga Makefile
2 3
# makefile for libpng and SAS C V6.5x compiler
# Copyright (C) 1995-2000 Wolf Faust
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 9 10 11 12
#
# Note: Use #define PNG_READ_BIG_ENDIAN_SUPPORTED in pngconf.h
#
# Location/path of zlib include files
ZLIB=/zlib
G
Guy Schalnat 已提交
13 14 15 16 17
#compiler
CC=sc
#compiler flags
# WARNING: a bug in V6.51 causes bad code with OPTGO
#          So use V6.55 or set NOOPTGO!!!!!!!!!
18
CFLAGS= -DPNG_CONFIGURE_LIBPNG NOSTKCHK PARMS=REG OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL\
19
	OPTLOOP OPTRDEP=4 OPTDEP=4 OPTCOMP=4 INCLUDEDIR=$(ZLIB) \
20
	DEFINE=PNG_INTERNAL
G
Guy Schalnat 已提交
21 22 23 24
#linker flags
LDFLAGS= SD ND BATCH
#link libs
LDLIBS= libpng.lib libgz.lib LIB:scm.lib LIB:sc.lib Lib:amiga.lib
25 26 27 28 29 30 31 32
# linker
LN= slink
# file deletion command
RM= delete quiet
# library (.lib) file creation command
AR= oml
# make directory command
MKDIR= makedir
G
Guy Schalnat 已提交
33

34 35 36
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
G
Guy Schalnat 已提交
37

38
all: libpng.lib pngtest
G
Guy Schalnat 已提交
39 40 41

libpng.lib: $(OBJS)
-$(RM) libpng.lib
42
$(AR) libpng.lib r $(OBJS)
G
Guy Schalnat 已提交
43 44 45 46 47 48 49 50 51

pngtest: pngtest.o libpng.lib
$(LN) <WITH <
$(LDFLAGS)
TO pngtest
FROM LIB:c.o pngtest.o
LIB $(LDLIBS)
<