xref: /aosp_15_r20/external/libpng/scripts/makefile.riscos (revision a67afe4df73cf47866eedc69947994b8ff839aba)
1*a67afe4dSAndroid Build Coastguard Worker# Project:   libpng
2*a67afe4dSAndroid Build Coastguard Worker
3*a67afe4dSAndroid Build Coastguard Worker# Copyright (C) 2020 Cameron Cawley
4*a67afe4dSAndroid Build Coastguard Worker# Copyright (C) 1997 Tom Tanner
5*a67afe4dSAndroid Build Coastguard Worker
6*a67afe4dSAndroid Build Coastguard Worker# Toolflags:
7*a67afe4dSAndroid Build Coastguard WorkerCCflags = -c -depend !Depend -IC:,C:zlib -g -throwback  -DRISCOS  -fnah -wz
8*a67afe4dSAndroid Build Coastguard WorkerLinkflags = -aif -o $@
9*a67afe4dSAndroid Build Coastguard WorkerLibFileflags = -c -l -o $@
10*a67afe4dSAndroid Build Coastguard Worker
11*a67afe4dSAndroid Build Coastguard Worker# Final targets:
12*a67afe4dSAndroid Build Coastguard Worker@.libpng-lib:   @.o.png @.o.pngerror @.o.pngrio @.o.pngwio @.o.pngmem \
13*a67afe4dSAndroid Build Coastguard Worker	@.o.pngpread @.o.pngset @.o.pngget @.o.pngread @.o.pngrtran \
14*a67afe4dSAndroid Build Coastguard Worker	@.o.pngrutil @.o.pngtrans @.o.pngwrite @.o.pngwtran @.o.pngwutil
15*a67afe4dSAndroid Build Coastguard Worker	LibFile $(LibFileflags) @.o.png @.o.pngerror @.o.pngrio @.o.pngrtran \
16*a67afe4dSAndroid Build Coastguard Worker	@.o.pngmem @.o.pngpread @.o.pngset @.o.pngget @.o.pngread @.o.pngwio \
17*a67afe4dSAndroid Build Coastguard Worker	@.o.pngrutil @.o.pngtrans  @.o.pngwrite @.o.pngwtran @.o.pngwutil
18*a67afe4dSAndroid Build Coastguard Worker@.mm-libpng-lib:   @.mm.png @.mm.pngerror @.mm.pngrio @.mm.pngwio @.mm.pngmem \
19*a67afe4dSAndroid Build Coastguard Worker	@.mm.pngpread @.mm.pngset @.mm.pngget @.mm.pngread @.mm.pngrtran \
20*a67afe4dSAndroid Build Coastguard Worker	@.mm.pngrutil @.mm.pngtrans @.mm.pngwrite @.mm.pngwtran @.mm.pngwutil
21*a67afe4dSAndroid Build Coastguard Worker	LibFile $(LibFileflags) @.mm.png @.mm.pngerror @.mm.pngrio \
22*a67afe4dSAndroid Build Coastguard Worker	@.mm.pngwio @.mm.pngmem @.mm.pngpread @.mm.pngset @.mm.pngget \
23*a67afe4dSAndroid Build Coastguard Worker	@.mm.pngread @.mm.pngrtran @.mm.pngrutil @.mm.pngtrans @.mm.pngwrite \
24*a67afe4dSAndroid Build Coastguard Worker	@.mm.pngwtran @.mm.pngwutil
25*a67afe4dSAndroid Build Coastguard Worker
26*a67afe4dSAndroid Build Coastguard Worker
27*a67afe4dSAndroid Build Coastguard Worker# User-editable dependencies:
28*a67afe4dSAndroid Build Coastguard WorkerTest: @.pngtest
29*a67afe4dSAndroid Build Coastguard Worker	Run @.pngtest
30*a67afe4dSAndroid Build Coastguard Worker	@Remove @.pngtest
31*a67afe4dSAndroid Build Coastguard Worker
32*a67afe4dSAndroid Build Coastguard Worker#It would be nice if you could stop "make" listing from here on!
33*a67afe4dSAndroid Build Coastguard Worker@.pngtest:   @.o.pngtest @.libpng-lib C:o.Stubs C:zlib.o.zlib
34*a67afe4dSAndroid Build Coastguard Worker	Link $(Linkflags) @.o.pngtest @.libpng-lib C:o.Stubs C:zlib.o.zlib
35*a67afe4dSAndroid Build Coastguard Worker
36*a67afe4dSAndroid Build Coastguard Worker.SUFFIXES: .o .mm .c
37*a67afe4dSAndroid Build Coastguard Worker
38*a67afe4dSAndroid Build Coastguard Worker.c.mm:
39*a67afe4dSAndroid Build Coastguard Worker	MemCheck.CC cc $(ccflags) -o $@ LibPng:$<
40*a67afe4dSAndroid Build Coastguard Worker.c.o:
41*a67afe4dSAndroid Build Coastguard Worker	cc $(ccflags) -o $@ $<
42*a67afe4dSAndroid Build Coastguard Worker
43*a67afe4dSAndroid Build Coastguard Worker# See scripts.pnglibconf/mak for how to generate this:
44*a67afe4dSAndroid Build Coastguard Worker@.h.pnglibconf: @.scripts.pnglibconf/h/prebuilt
45*a67afe4dSAndroid Build Coastguard Worker	Copy @.scripts.pnglibconf/h/prebuilt $@ ~CF~V
46*a67afe4dSAndroid Build Coastguard Worker
47*a67afe4dSAndroid Build Coastguard Worker# Static dependencies:
48*a67afe4dSAndroid Build Coastguard Worker@.o.png @.o.pngerror @.o.pngrio @.o.pngwio @.o.pngmem \
49*a67afe4dSAndroid Build Coastguard Worker@.o.pngpread @.o.pngset @.o.pngget @.o.pngread @.o.pngrtran \
50*a67afe4dSAndroid Build Coastguard Worker@.o.pngrutil @.o.pngtrans @.o.pngwrite @.o.pngwtran @.o.pngwutil \
51*a67afe4dSAndroid Build Coastguard Worker@.o.pngtest: @.h.pnglibconf
52*a67afe4dSAndroid Build Coastguard Worker
53*a67afe4dSAndroid Build Coastguard Worker
54*a67afe4dSAndroid Build Coastguard Worker# Dynamic dependencies:
55