1 | # makefile for libpng
|
---|
2 | # Copyright (C) 2022 Cosmin Truta
|
---|
3 | # Copyright (C) 2002, 2014 Glenn Randers-Pehrson
|
---|
4 | # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
---|
5 | #
|
---|
6 | # This code is released under the libpng license.
|
---|
7 | # For conditions of distribution and use, see the disclaimer
|
---|
8 | # and license in png.h
|
---|
9 | #
|
---|
10 | # Modified for LC56/ATARI assumes libz.lib is in same dir and uses default
|
---|
11 | # rules for library management
|
---|
12 | #
|
---|
13 | CPPFLAGS = -I../zlib
|
---|
14 | CFLAGS = -O
|
---|
15 | LBR = png.lib
|
---|
16 | LDFLAGS = -L. -L../zlib -lpng -lz -lm
|
---|
17 |
|
---|
18 | # Pre-built configuration
|
---|
19 | # See scripts/pnglibconf.mak for more options
|
---|
20 | PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt
|
---|
21 |
|
---|
22 | OBJS = $(LBR)(png.o) $(LBR)(pngerror.o) $(LBR)(pngget.o) $(LBR)(pngmem.o) \
|
---|
23 | $(LBR)(pngpread.o) $(LBR)(pngread.o) $(LBR)(pngrio.o) \
|
---|
24 | $(LBR)(pngrtran.o) $(LBR)(pngrutil.o) $(LBR)(pngset.o) \
|
---|
25 | $(LBR)(pngtrans.o) $(LBR)(pngwio.o) $(LBR)(pngwrite.o) \
|
---|
26 | $(LBR)(pngwtran.o) $(LBR)(pngwutil.o)
|
---|
27 |
|
---|
28 | all: $(LBR) pngtest.ttp
|
---|
29 |
|
---|
30 | .c.o:
|
---|
31 | $(CC) -c $(CPPFLAGS) $(CFLAGS) $<
|
---|
32 |
|
---|
33 | $(LBR): $(OBJS)
|
---|
34 |
|
---|
35 | $(OBJS): pngpriv.h png.h pngconf.h pnglibconf.h pnginfo.h pngstruct.h pngdebug.h
|
---|
36 |
|
---|
37 | pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
|
---|
38 | cp $(PNGLIBCONF_H_PREBUILT) $@
|
---|
39 |
|
---|
40 | pngtest.ttp: pngtest.o $(LBR)
|
---|
41 | $(CC) $(CFLAGS) $(LDFLAGS) -o$@ pngtest.o
|
---|
42 |
|
---|
43 | install:
|
---|
44 | @echo "The $@ target is no longer supported by this makefile."
|
---|
45 | @false
|
---|