]> git.saurik.com Git - wxWidgets.git/blob - src/png/scripts/makefile.atari
that was a memory leak
[wxWidgets.git] / src / png / scripts / makefile.atari
1 # makefile for libpng
2 # Copyright (C) 2002 Glenn Randers-Pehrson
3 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
4 # For conditions of distribution and use, see copyright notice in png.h
5 # modified for LC56/ATARI assumes libz.lib is in same dir and uses default
6 # rules for library management
7 #
8 CFLAGS=-I..\zlib -O
9 LBR = png.lib
10 LDFLAGS=-lpng -lz -lm
11
12 # where make install puts libpng.a and png.h
13 prefix=/usr/local
14 INCPATH=$(prefix)/include
15 LIBPATH=$(prefix)/lib
16
17 # override DESTDIR= on the make install command line to easily support
18 # installing into a temporary location. Example:
19 #
20 # make install DESTDIR=/tmp/build/libpng
21 #
22 # If you're going to install into a temporary location
23 # via DESTDIR, $(DESTDIR)$(prefix) must already exist before
24 # you execute make install.
25 DESTDIR=
26
27 OBJS = $(LBR)(png.o) $(LBR)(pngset.o) $(LBR)(pngget.o) $(LBR)(pngrutil.o)\
28 $(LBR)(pngtrans.o) $(LBR)(pngwutil.o)\
29 $(LBR)(pngread.o) $(LBR)(pngerror.o) $(LBR)(pngwrite.o)\
30 $(LBR)(pngrtran.o) $(LBR)(pngwtran.o)\
31 $(LBR)(pngmem.o) $(LBR)(pngrio.o) $(LBR)(pngwio.o) $(LBR)(pngpread.o)
32
33 all: $(LBR) pngtest.ttp
34
35 $(LBR): $(OBJS)
36
37 pngtest.ttp: pngtest.o $(LBR)
38 $(CC) $(CFLAGS) $(LDFLAGS) -o$@ pngtest.o
39
40 install: libpng.a
41 -@mkdir $(DESTDIR)$(INCPATH)
42 -@mkdir $(DESTDIR)$(INCPATH)/libpng
43 -@mkdir $(DESTDIR)$(LIBPATH)
44 -@rm -f $(DESTDIR)$(INCPATH)/png.h
45 -@rm -f $(DESTDIR)$(INCPATH)/pngconf.h
46 cp png.h $(DESTDIR)$(INCPATH)/libpng
47 cp pngconf.h $(DESTDIR)$(INCPATH)/libpng
48 chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h
49 chmod 644 $(DESTDIR)$(INCPATH)/libpng/pngconf.h
50 (cd $(DESTDIR)$(INCPATH); ln -f -s $(LIBNAME) libpng; \
51 ln -f -s $(LIBNAME)/* .)