Glenn Randers-Pehrson | 6c97ddb | 2001-10-24 22:01:19 -0500 | [diff] [blame] | 1 | # makefile for libpng on Solaris 9 (beta) with Forte cc |
| 2 | # Updated by Chad Schrock for Solaris 9 |
| 3 | # Contributed by William L. Sebok, based on makefile.linux |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 4 | # Copyright (C) 2002, 2006 Glenn Randers-Pehrson |
Glenn Randers-Pehrson | 6c97ddb | 2001-10-24 22:01:19 -0500 | [diff] [blame] | 5 | # Copyright (C) 1998-2001 Greg Roelofs |
| 6 | # Copyright (C) 1996-1997 Andreas Dilger |
| 7 | # For conditions of distribution and use, see copyright notice in png.h |
| 8 | |
| 9 | # gcc 2.95 doesn't work. |
| 10 | CC=cc |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 11 | AR_RC=ar rc |
Glenn Randers-Pehrson | 1ce0836 | 2006-03-08 23:35:59 -0600 | [diff] [blame^] | 12 | MKDIR_P=mkdir -p |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 13 | LN_SF=ln -f -s |
| 14 | RANLIB=echo |
| 15 | RM_F=/bin/rm -f |
Glenn Randers-Pehrson | 6c97ddb | 2001-10-24 22:01:19 -0500 | [diff] [blame] | 16 | |
| 17 | # Where make install puts libpng.a, libpng.so*, and png.h |
| 18 | prefix=/usr/local |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 19 | exec_prefix=$prefix |
Glenn Randers-Pehrson | 6c97ddb | 2001-10-24 22:01:19 -0500 | [diff] [blame] | 20 | |
| 21 | # Where the zlib library and include files are located |
| 22 | # Changing these to ../zlib poses a security risk. If you want |
| 23 | # to have zlib in an adjacent directory, specify the full path instead of "..". |
| 24 | #ZLIBLIB=../zlib |
| 25 | #ZLIBINC=../zlib |
| 26 | #ZLIBLIB=/usr/local/lib |
| 27 | #ZLIBINC=/usr/local/include |
| 28 | #Use the preinstalled zlib that comes with Solaris 9: |
| 29 | ZLIBLIB=/usr/lib |
| 30 | ZLIBINC=/usr/include |
| 31 | |
| 32 | #WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \ |
| 33 | -Wmissing-declarations -Wtraditional -Wcast-align \ |
| 34 | -Wstrict-prototypes -Wmissing-prototypes #-Wconversion |
| 35 | #CFLAGS=-I$(ZLIBINC) -Wall -O3 $(WARNMORE) -g -DPNG_DEBUG=5 |
| 36 | CFLAGS=-I$(ZLIBINC) -O3 |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 37 | LDFLAGS=-L. -R. -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng12 -lz -lm |
Glenn Randers-Pehrson | 6c97ddb | 2001-10-24 22:01:19 -0500 | [diff] [blame] | 38 | |
Glenn Randers-Pehrson | 9c0f094 | 2002-02-21 23:14:23 -0600 | [diff] [blame] | 39 | PNGMAJ = 0 |
Glenn Randers-Pehrson | 1ce0836 | 2006-03-08 23:35:59 -0600 | [diff] [blame^] | 40 | PNGMIN = 1.2.9beta8 |
Glenn Randers-Pehrson | 6c97ddb | 2001-10-24 22:01:19 -0500 | [diff] [blame] | 41 | PNGVER = $(PNGMAJ).$(PNGMIN) |
Glenn Randers-Pehrson | 9c0f094 | 2002-02-21 23:14:23 -0600 | [diff] [blame] | 42 | LIBNAME = libpng12 |
Glenn Randers-Pehrson | 6c97ddb | 2001-10-24 22:01:19 -0500 | [diff] [blame] | 43 | |
| 44 | INCPATH=$(prefix)/include |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 45 | LIBPATH=$(exec_prefix)/lib |
Glenn Randers-Pehrson | 03008a0 | 2002-04-27 10:11:25 -0500 | [diff] [blame] | 46 | MANPATH=$(prefix)/man |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 47 | BINPATH=$(exec_prefix)/bin |
Glenn Randers-Pehrson | 03008a0 | 2002-04-27 10:11:25 -0500 | [diff] [blame] | 48 | |
| 49 | # override DESTDIR= on the make install command line to easily support |
| 50 | # installing into a temporary location. Example: |
| 51 | # |
| 52 | # make install DESTDIR=/tmp/build/libpng |
| 53 | # |
| 54 | # If you're going to install into a temporary location |
Glenn Randers-Pehrson | 07748d1 | 2002-05-25 11:12:10 -0500 | [diff] [blame] | 55 | # via DESTDIR, $(DESTDIR)$(prefix) must already exist before |
Glenn Randers-Pehrson | 03008a0 | 2002-04-27 10:11:25 -0500 | [diff] [blame] | 56 | # you execute make install. |
| 57 | DESTDIR= |
Glenn Randers-Pehrson | 6c97ddb | 2001-10-24 22:01:19 -0500 | [diff] [blame] | 58 | |
Glenn Randers-Pehrson | 07748d1 | 2002-05-25 11:12:10 -0500 | [diff] [blame] | 59 | DB=$(DESTDIR)$(BINPATH) |
| 60 | DI=$(DESTDIR)$(INCPATH) |
| 61 | DL=$(DESTDIR)$(LIBPATH) |
| 62 | DM=$(DESTDIR)$(MANPATH) |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 63 | |
Glenn Randers-Pehrson | 6c97ddb | 2001-10-24 22:01:19 -0500 | [diff] [blame] | 64 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ |
| 65 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ |
| 66 | pngwtran.o pngmem.o pngerror.o pngpread.o |
| 67 | |
| 68 | OBJSDLL = $(OBJS:.o=.pic.o) |
| 69 | |
| 70 | .SUFFIXES: .c .o .pic.o |
| 71 | |
| 72 | .c.pic.o: |
| 73 | $(CC) -c $(CFLAGS) -KPIC -o $@ $*.c |
| 74 | |
Glenn Randers-Pehrson | 07748d1 | 2002-05-25 11:12:10 -0500 | [diff] [blame] | 75 | all: libpng.a $(LIBNAME).so pngtest libpng.pc libpng-config |
Glenn Randers-Pehrson | 6c97ddb | 2001-10-24 22:01:19 -0500 | [diff] [blame] | 76 | |
| 77 | libpng.a: $(OBJS) |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 78 | $(AR_RC) $@ $(OBJS) |
Glenn Randers-Pehrson | 6c97ddb | 2001-10-24 22:01:19 -0500 | [diff] [blame] | 79 | $(RANLIB) $@ |
| 80 | |
Glenn Randers-Pehrson | 03008a0 | 2002-04-27 10:11:25 -0500 | [diff] [blame] | 81 | libpng.pc: |
| 82 | cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc |
| 83 | |
Glenn Randers-Pehrson | 837a3d1 | 2002-05-10 20:19:58 -0500 | [diff] [blame] | 84 | libpng-config: |
| 85 | ( cat scripts/libpng-config-head.in; \ |
| 86 | echo prefix=\"$(prefix)\"; \ |
Glenn Randers-Pehrson | 5ff38d3 | 2002-09-17 23:38:46 -0500 | [diff] [blame] | 87 | echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \ |
| 88 | echo L_opts=\"-L$(LIBPATH)\"; \ |
| 89 | echo R_opts=\"-R$(LIBPATH)\"; \ |
Glenn Randers-Pehrson | 837a3d1 | 2002-05-10 20:19:58 -0500 | [diff] [blame] | 90 | echo libs=\"-lpng12 -lz -lm\"; \ |
| 91 | cat scripts/libpng-config-body.in ) > libpng-config |
| 92 | chmod +x libpng-config |
| 93 | |
Glenn Randers-Pehrson | 9c0f094 | 2002-02-21 23:14:23 -0600 | [diff] [blame] | 94 | $(LIBNAME).so: $(LIBNAME).so.$(PNGMAJ) |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 95 | $(LN_SF) $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so |
Glenn Randers-Pehrson | 6c97ddb | 2001-10-24 22:01:19 -0500 | [diff] [blame] | 96 | |
Glenn Randers-Pehrson | 9c0f094 | 2002-02-21 23:14:23 -0600 | [diff] [blame] | 97 | $(LIBNAME).so.$(PNGMAJ): $(LIBNAME).so.$(PNGVER) |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 98 | $(LN_SF) $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ) |
Glenn Randers-Pehrson | 6c97ddb | 2001-10-24 22:01:19 -0500 | [diff] [blame] | 99 | |
Glenn Randers-Pehrson | 9c0f094 | 2002-02-21 23:14:23 -0600 | [diff] [blame] | 100 | $(LIBNAME).so.$(PNGVER): $(OBJSDLL) |
Glenn Randers-Pehrson | 6c97ddb | 2001-10-24 22:01:19 -0500 | [diff] [blame] | 101 | @case "`type ld`" in *ucb*) \ |
| 102 | echo; \ |
| 103 | echo '## WARNING:'; \ |
| 104 | echo '## The commands "CC" and "LD" must NOT refer to /usr/ucb/cc'; \ |
| 105 | echo '## and /usr/ucb/ld. If they do, you need to adjust your PATH'; \ |
| 106 | echo '## environment variable to put /usr/ccs/bin ahead of /usr/ucb.'; \ |
| 107 | echo '## The environment variable LD_LIBRARY_PATH should not be set'; \ |
| 108 | echo '## at all. If it is, things are likely to break because of'; \ |
| 109 | echo '## the libucb dependency that is created.'; \ |
| 110 | echo; \ |
| 111 | ;; \ |
| 112 | esac |
Glenn Randers-Pehrson | 865f4f0 | 2002-09-15 20:30:38 -0500 | [diff] [blame] | 113 | $(LD) -G -h $(LIBNAME).so.$(PNGMAJ) \ |
| 114 | -o $(LIBNAME).so.$(PNGVER) $(OBJSDLL) |
Glenn Randers-Pehrson | 6c97ddb | 2001-10-24 22:01:19 -0500 | [diff] [blame] | 115 | |
Glenn Randers-Pehrson | 9c3ab68 | 2006-02-20 22:09:05 -0600 | [diff] [blame] | 116 | libpng.so.0.$(PNGMIN): $(OBJS) |
| 117 | $(LD) -G -h libpng.so.0 \ |
| 118 | -o libpng.so.0.$(PNGMIN) $(OBJSDLL) |
Glenn Randers-Pehrson | 8a7df00 | 2002-08-15 22:02:57 -0500 | [diff] [blame] | 119 | |
Glenn Randers-Pehrson | 9c0f094 | 2002-02-21 23:14:23 -0600 | [diff] [blame] | 120 | pngtest: pngtest.o $(LIBNAME).so |
Glenn Randers-Pehrson | 6c97ddb | 2001-10-24 22:01:19 -0500 | [diff] [blame] | 121 | $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) |
| 122 | |
| 123 | test: pngtest |
| 124 | ./pngtest |
| 125 | |
Glenn Randers-Pehrson | c1bfe68 | 2002-03-06 22:08:00 -0600 | [diff] [blame] | 126 | install-headers: png.h pngconf.h |
Glenn Randers-Pehrson | 1ce0836 | 2006-03-08 23:35:59 -0600 | [diff] [blame^] | 127 | -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi |
| 128 | -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 129 | cp png.h pngconf.h $(DI)/$(LIBNAME) |
Glenn Randers-Pehrson | 07748d1 | 2002-05-25 11:12:10 -0500 | [diff] [blame] | 130 | chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 131 | -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h |
| 132 | -@$(RM_F) $(DI)/libpng |
| 133 | (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) |
Glenn Randers-Pehrson | c1bfe68 | 2002-03-06 22:08:00 -0600 | [diff] [blame] | 134 | |
| 135 | install-static: install-headers libpng.a |
Glenn Randers-Pehrson | 1ce0836 | 2006-03-08 23:35:59 -0600 | [diff] [blame^] | 136 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 137 | cp libpng.a $(DL)/$(LIBNAME).a |
| 138 | chmod 644 $(DL)/$(LIBNAME).a |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 139 | -@$(RM_F) $(DL)/libpng.a |
| 140 | (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) |
Glenn Randers-Pehrson | c1bfe68 | 2002-03-06 22:08:00 -0600 | [diff] [blame] | 141 | |
Glenn Randers-Pehrson | 8a7df00 | 2002-08-15 22:02:57 -0500 | [diff] [blame] | 142 | install-shared: install-headers $(LIBNAME).so.$(PNGVER) libpng.pc \ |
Glenn Randers-Pehrson | 9c3ab68 | 2006-02-20 22:09:05 -0600 | [diff] [blame] | 143 | libpng.so.0.$(PNGMIN) |
Glenn Randers-Pehrson | 1ce0836 | 2006-03-08 23:35:59 -0600 | [diff] [blame^] | 144 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 145 | -@$(RM_F) $(DL)/$(LIBNAME).so.$(PNGVER)* $(DL)/$(LIBNAME).so |
| 146 | -@$(RM_F) $(DL)/$(LIBNAME).so.$(PNGMAJ) |
| 147 | -@$(RM_F) $(DL)/libpng.so |
| 148 | -@$(RM_F) $(DL)/libpng.so.0 |
| 149 | -@$(RM_F) $(DL)/libpng.so.0.$(PNGMIN)* |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 150 | cp $(LIBNAME).so.$(PNGVER) $(DL) |
Glenn Randers-Pehrson | 9c3ab68 | 2006-02-20 22:09:05 -0600 | [diff] [blame] | 151 | cp libpng.so.0.$(PNGMIN) $(DL) |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 152 | chmod 755 $(DL)/$(LIBNAME).so.$(PNGVER) |
Glenn Randers-Pehrson | 9c3ab68 | 2006-02-20 22:09:05 -0600 | [diff] [blame] | 153 | chmod 755 $(DL)/libpng.so.0.$(PNGMIN) |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 154 | (cd $(DL); \ |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 155 | $(LN_SF) libpng.so.0.$(PNGMIN) libpng.so.0; \ |
| 156 | $(LN_SF) libpng.so.0 libpng.so; \ |
| 157 | $(LN_SF) $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \ |
| 158 | $(LN_SF) $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so) |
Glenn Randers-Pehrson | 1ce0836 | 2006-03-08 23:35:59 -0600 | [diff] [blame^] | 159 | -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 160 | -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc |
| 161 | -@$(RM_F) $(DL)/pkgconfig/libpng.pc |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 162 | cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc |
| 163 | chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 164 | (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) |
Glenn Randers-Pehrson | c1bfe68 | 2002-03-06 22:08:00 -0600 | [diff] [blame] | 165 | |
Glenn Randers-Pehrson | 03008a0 | 2002-04-27 10:11:25 -0500 | [diff] [blame] | 166 | install-man: libpng.3 libpngpf.3 png.5 |
Glenn Randers-Pehrson | 1ce0836 | 2006-03-08 23:35:59 -0600 | [diff] [blame^] | 167 | -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi |
| 168 | -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 169 | -@$(RM_F) $(DM)/man3/libpng.3 |
| 170 | -@$(RM_F) $(DM)/man3/libpngpf.3 |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 171 | cp libpng.3 $(DM)/man3 |
| 172 | cp libpngpf.3 $(DM)/man3 |
Glenn Randers-Pehrson | 1ce0836 | 2006-03-08 23:35:59 -0600 | [diff] [blame^] | 173 | -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 174 | -@$(RM_F) $(DM)/man5/png.5 |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 175 | cp png.5 $(DM)/man5 |
Glenn Randers-Pehrson | 03008a0 | 2002-04-27 10:11:25 -0500 | [diff] [blame] | 176 | |
Glenn Randers-Pehrson | 837a3d1 | 2002-05-10 20:19:58 -0500 | [diff] [blame] | 177 | install-config: libpng-config |
Glenn Randers-Pehrson | 1ce0836 | 2006-03-08 23:35:59 -0600 | [diff] [blame^] | 178 | -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 179 | -@$(RM_F) $(DB)/libpng-config |
| 180 | -@$(RM_F) $(DB)/$(LIBNAME)-config |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 181 | cp libpng-config $(DB)/$(LIBNAME)-config |
| 182 | chmod 755 $(DB)/$(LIBNAME)-config |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 183 | (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) |
Glenn Randers-Pehrson | 704228f | 2002-05-02 20:49:40 -0500 | [diff] [blame] | 184 | |
| 185 | install: install-static install-shared install-man install-config |
Glenn Randers-Pehrson | 03008a0 | 2002-04-27 10:11:25 -0500 | [diff] [blame] | 186 | |
Glenn Randers-Pehrson | d020e9d | 2002-06-28 09:34:00 -0500 | [diff] [blame] | 187 | # If you installed in $(DESTDIR), test-installed won't work until you |
Glenn Randers-Pehrson | a4981d4 | 2004-08-25 22:00:45 -0500 | [diff] [blame] | 188 | # move the library to its final location. Use test-dd to test it |
| 189 | # before then. |
| 190 | |
| 191 | test-dd: |
| 192 | echo |
| 193 | echo Testing installed dynamic shared library in $(DL). |
| 194 | $(CC) -I$(DI) -I$(ZLIBINC) \ |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 195 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ |
| 196 | -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` \ |
Glenn Randers-Pehrson | a4981d4 | 2004-08-25 22:00:45 -0500 | [diff] [blame] | 197 | -L$(DL) -L$(ZLIBLIB) -R$(ZLIBLIB) -R$(DL) |
| 198 | ./pngtestd pngtest.png |
Glenn Randers-Pehrson | d020e9d | 2002-06-28 09:34:00 -0500 | [diff] [blame] | 199 | |
| 200 | test-installed: |
| 201 | echo |
| 202 | echo Testing installed dynamic shared library. |
| 203 | $(CC) -I$(ZLIBINC) \ |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 204 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ |
| 205 | -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` \ |
Glenn Randers-Pehrson | d020e9d | 2002-06-28 09:34:00 -0500 | [diff] [blame] | 206 | -L$(ZLIBLIB) -R$(ZLIBLIB) |
Glenn Randers-Pehrson | 2ae022d | 2002-07-01 22:23:46 -0500 | [diff] [blame] | 207 | ./pngtesti pngtest.png |
Glenn Randers-Pehrson | 6c97ddb | 2001-10-24 22:01:19 -0500 | [diff] [blame] | 208 | |
| 209 | clean: |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 210 | $(RM_F) *.o libpng.a pngtest pngtesti pngout.png \ |
Glenn Randers-Pehrson | 8a7df00 | 2002-08-15 22:02:57 -0500 | [diff] [blame] | 211 | libpng-config $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* \ |
Glenn Randers-Pehrson | 9c3ab68 | 2006-02-20 22:09:05 -0600 | [diff] [blame] | 212 | libpng.so.0.$(PNGMIN) \ |
Glenn Randers-Pehrson | 51d9250 | 2002-08-23 23:07:42 -0500 | [diff] [blame] | 213 | libpng.pc |
Glenn Randers-Pehrson | 6c97ddb | 2001-10-24 22:01:19 -0500 | [diff] [blame] | 214 | |
| 215 | DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO |
| 216 | writelock: |
| 217 | chmod a-w *.[ch35] $(DOCS) scripts/* |
| 218 | |
| 219 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
| 220 | |
| 221 | png.o png.pic.o: png.h pngconf.h |
| 222 | pngerror.o pngerror.pic.o: png.h pngconf.h |
| 223 | pngrio.o pngrio.pic.o: png.h pngconf.h |
| 224 | pngwio.o pngwio.pic.o: png.h pngconf.h |
| 225 | pngmem.o pngmem.pic.o: png.h pngconf.h |
| 226 | pngset.o pngset.pic.o: png.h pngconf.h |
| 227 | pngget.o pngget.pic.o: png.h pngconf.h |
| 228 | pngread.o pngread.pic.o: png.h pngconf.h |
| 229 | pngrtran.o pngrtran.pic.o: png.h pngconf.h |
| 230 | pngrutil.o pngrutil.pic.o: png.h pngconf.h |
| 231 | pngtrans.o pngtrans.pic.o: png.h pngconf.h |
| 232 | pngwrite.o pngwrite.pic.o: png.h pngconf.h |
| 233 | pngwtran.o pngwtran.pic.o: png.h pngconf.h |
| 234 | pngwutil.o pngwutil.pic.o: png.h pngconf.h |
| 235 | pngpread.o pngpread.pic.o: png.h pngconf.h |
| 236 | |
| 237 | pngtest.o: png.h pngconf.h |