libpng/scripts/makefile.atari

37 lines
1.1 KiB
Plaintext
Raw Normal View History

1996-01-26 02:38:47 -05:00
# makefile for libpng
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
# For conditions of distribution and use, see copyright notice in png.h
# modified for LC56/ATARI assumes libz.lib is in same dir and uses default
# rules for library management
#
CFLAGS=-I..\zlib -O
LBR = png.lib
LDFLAGS=-lpng -lz -lm
# where make install puts libpng.a and png.h
1998-12-29 12:47:59 -05:00
prefix=/usr/local
1996-01-26 02:38:47 -05:00
1997-05-16 03:46:07 -04:00
OBJS = $(LBR)(png.o) $(LBR)(pngset.o) $(LBR)(pngget.o) $(LBR)(pngrutil.o)\
1996-01-26 02:38:47 -05:00
$(LBR)(pngtrans.o) $(LBR)(pngwutil.o)\
$(LBR)(pngread.o) $(LBR)(pngerror.o) $(LBR)(pngwrite.o)\
$(LBR)(pngrtran.o) $(LBR)(pngwtran.o)\
1996-06-05 16:50:50 -04:00
$(LBR)(pngmem.o) $(LBR)(pngrio.o) $(LBR)(pngwio.o) $(LBR)(pngpread.o)
1996-01-26 02:38:47 -05:00
all: $(LBR) pngtest.ttp
$(LBR): $(OBJS)
pngtest.ttp: pngtest.o $(LBR)
$(CC) $(CFLAGS) $(LDFLAGS) -o$@ pngtest.o
install: libpng.a
-@mkdir $(prefix)/include
2002-04-07 17:35:38 -04:00
-@mkdir $(prefix)/include/libpng
1996-01-26 02:38:47 -05:00
-@mkdir $(prefix)/lib
2002-04-07 17:35:38 -04:00
-@rm -f $(prefix)/include/png.h
-@rm -f $(prefix)/include/pngconf.h
cp png.h $(prefix)/include/libpng
cp pngconf.h $(prefix)/include/libpng
chmod 644 $(prefix)/include/libpng/png.h
chmod 644 $(prefix)/include/libpng/pngconf.h