Glenn Randers-Pehrson | d12aa50 | 1998-03-13 07:39:39 -0600 | [diff] [blame] | 1 | # makefile for libpng on Solaris 2.x with gcc |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 2 | # Copyright (C) 2004, 2006 Glenn Randers-Pehrson |
Glenn Randers-Pehrson | bcfd15d | 1999-10-01 14:22:25 -0500 | [diff] [blame] | 3 | # Contributed by William L. Sebok, based on makefile.linux |
Glenn Randers-Pehrson | 98c9d73 | 2000-05-03 21:06:11 -0500 | [diff] [blame] | 4 | # Copyright (C) 1998 Greg Roelofs |
Glenn Randers-Pehrson | d436672 | 2000-06-04 14:29:29 -0500 | [diff] [blame] | 5 | # Copyright (C) 1996, 1997 Andreas Dilger |
Guy Schalnat | 4ee97b0 | 1996-01-16 01:51:56 -0600 | [diff] [blame] | 6 | # For conditions of distribution and use, see copyright notice in png.h |
| 7 | |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 8 | # Library name: |
Glenn Randers-Pehrson | 1721829 | 2006-04-20 07:20:46 -0500 | [diff] [blame] | 9 | LIBNAME = libpng14 |
Glenn Randers-Pehrson | 56f6396 | 2008-10-06 10:16:17 -0500 | [diff] [blame] | 10 | PNGMAJ = 14 |
Glenn Randers-Pehrson | d6d8075 | 2008-12-02 09:49:43 -0600 | [diff] [blame^] | 11 | PNGMIN = 1.4.0beta43 |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 12 | PNGVER = $(PNGMAJ).$(PNGMIN) |
| 13 | |
| 14 | # Shared library names: |
| 15 | LIBSO=$(LIBNAME).so |
| 16 | LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) |
| 17 | LIBSOVER=$(LIBNAME).so.$(PNGVER) |
| 18 | OLDSO=libpng.so |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 19 | |
| 20 | # Utilities: |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 21 | AR_RC=ar rc |
Guy Schalnat | 4ee97b0 | 1996-01-16 01:51:56 -0600 | [diff] [blame] | 22 | CC=gcc |
Glenn Randers-Pehrson | 1ce0836 | 2006-03-08 23:35:59 -0600 | [diff] [blame] | 23 | MKDIR_P=mkdir -p |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 24 | LN_SF=ln -f -s |
| 25 | RANLIB=echo |
| 26 | RM_F=/bin/rm -f |
Andreas Dilger | 47a0c42 | 1997-05-16 02:46:07 -0500 | [diff] [blame] | 27 | |
Glenn Randers-Pehrson | 1721829 | 2006-04-20 07:20:46 -0500 | [diff] [blame] | 28 | # Where make install puts libpng.a, libpng14.so*, and png.h |
Glenn Randers-Pehrson | 5c6aeb2 | 1998-12-29 11:47:59 -0600 | [diff] [blame] | 29 | prefix=/usr/local |
Glenn Randers-Pehrson | ad31054 | 2006-04-18 05:31:20 -0500 | [diff] [blame] | 30 | exec_prefix=$(prefix) |
Glenn Randers-Pehrson | 5c6aeb2 | 1998-12-29 11:47:59 -0600 | [diff] [blame] | 31 | |
Andreas Dilger | 47a0c42 | 1997-05-16 02:46:07 -0500 | [diff] [blame] | 32 | # Where the zlib library and include files are located |
Glenn Randers-Pehrson | f9f2fe0 | 1998-03-15 18:20:23 -0600 | [diff] [blame] | 33 | # Changing these to ../zlib poses a security risk. If you want |
| 34 | # to have zlib in an adjacent directory, specify the full path instead of "..". |
| 35 | #ZLIBLIB=../zlib |
| 36 | #ZLIBINC=../zlib |
| 37 | |
| 38 | ZLIBLIB=/usr/local/lib |
| 39 | ZLIBINC=/usr/local/include |
Glenn Randers-Pehrson | d12aa50 | 1998-03-13 07:39:39 -0600 | [diff] [blame] | 40 | |
Andreas Dilger | 47a0c42 | 1997-05-16 02:46:07 -0500 | [diff] [blame] | 41 | WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \ |
Glenn Randers-Pehrson | 4393a9a | 1999-09-17 12:27:26 -0500 | [diff] [blame] | 42 | -Wmissing-declarations -Wtraditional -Wcast-align \ |
| 43 | -Wstrict-prototypes -Wmissing-prototypes #-Wconversion |
Glenn Randers-Pehrson | 7908421 | 2008-08-04 13:31:41 -0500 | [diff] [blame] | 44 | CFLAGS=-I$(ZLIBINC) -W -Wall -O \ |
Glenn Randers-Pehrson | 4393a9a | 1999-09-17 12:27:26 -0500 | [diff] [blame] | 45 | # $(WARNMORE) -g -DPNG_DEBUG=5 |
Glenn Randers-Pehrson | 1721829 | 2006-04-20 07:20:46 -0500 | [diff] [blame] | 46 | LDFLAGS=-L. -R. -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng14 -lz -lm |
Guy Schalnat | 4ee97b0 | 1996-01-16 01:51:56 -0600 | [diff] [blame] | 47 | |
Andreas Dilger | 47a0c42 | 1997-05-16 02:46:07 -0500 | [diff] [blame] | 48 | INCPATH=$(prefix)/include |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 49 | LIBPATH=$(exec_prefix)/lib |
Glenn Randers-Pehrson | 03008a0 | 2002-04-27 10:11:25 -0500 | [diff] [blame] | 50 | MANPATH=$(prefix)/man |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 51 | BINPATH=$(exec_prefix)/bin |
Glenn Randers-Pehrson | 03008a0 | 2002-04-27 10:11:25 -0500 | [diff] [blame] | 52 | |
| 53 | # override DESTDIR= on the make install command line to easily support |
| 54 | # installing into a temporary location. Example: |
| 55 | # |
| 56 | # make install DESTDIR=/tmp/build/libpng |
| 57 | # |
| 58 | # If you're going to install into a temporary location |
Glenn Randers-Pehrson | 07748d1 | 2002-05-25 11:12:10 -0500 | [diff] [blame] | 59 | # via DESTDIR, $(DESTDIR)$(prefix) must already exist before |
Glenn Randers-Pehrson | 03008a0 | 2002-04-27 10:11:25 -0500 | [diff] [blame] | 60 | # you execute make install. |
| 61 | DESTDIR= |
Guy Schalnat | 4ee97b0 | 1996-01-16 01:51:56 -0600 | [diff] [blame] | 62 | |
Glenn Randers-Pehrson | 07748d1 | 2002-05-25 11:12:10 -0500 | [diff] [blame] | 63 | DB=$(DESTDIR)$(BINPATH) |
| 64 | DI=$(DESTDIR)$(INCPATH) |
| 65 | DL=$(DESTDIR)$(LIBPATH) |
| 66 | DM=$(DESTDIR)$(MANPATH) |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 67 | |
Andreas Dilger | 47a0c42 | 1997-05-16 02:46:07 -0500 | [diff] [blame] | 68 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ |
Glenn Randers-Pehrson | 4393a9a | 1999-09-17 12:27:26 -0500 | [diff] [blame] | 69 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ |
| 70 | pngwtran.o pngmem.o pngerror.o pngpread.o |
Guy Schalnat | 4ee97b0 | 1996-01-16 01:51:56 -0600 | [diff] [blame] | 71 | |
Glenn Randers-Pehrson | 2687fcc | 1998-01-07 20:54:20 -0600 | [diff] [blame] | 72 | OBJSDLL = $(OBJS:.o=.pic.o) |
| 73 | |
| 74 | .SUFFIXES: .c .o .pic.o |
| 75 | |
| 76 | .c.pic.o: |
| 77 | $(CC) -c $(CFLAGS) -fPIC -o $@ $*.c |
| 78 | |
Glenn Randers-Pehrson | beb572e | 2006-08-19 13:59:24 -0500 | [diff] [blame] | 79 | all: libpng.a $(LIBSO) pngtest libpng.pc libpng-config pngconf.h pngdefs.h |
Guy Schalnat | 4ee97b0 | 1996-01-16 01:51:56 -0600 | [diff] [blame] | 80 | |
Glenn Randers-Pehrson | beb572e | 2006-08-19 13:59:24 -0500 | [diff] [blame] | 81 | pngdefs.h: |
| 82 | echo "/* pngdefs.h was built by makefile.solaris */" > pngdefs.h |
| 83 | echo "#define PNG_NO_MMX_CODE" >> pngdefs.h |
Glenn Randers-Pehrson | b3870ab | 2006-05-11 09:43:09 -0500 | [diff] [blame] | 84 | |
Guy Schalnat | 4ee97b0 | 1996-01-16 01:51:56 -0600 | [diff] [blame] | 85 | libpng.a: $(OBJS) |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 86 | $(AR_RC) $@ $(OBJS) |
Guy Schalnat | 4ee97b0 | 1996-01-16 01:51:56 -0600 | [diff] [blame] | 87 | $(RANLIB) $@ |
| 88 | |
Glenn Randers-Pehrson | 03008a0 | 2002-04-27 10:11:25 -0500 | [diff] [blame] | 89 | libpng.pc: |
| 90 | cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc |
| 91 | |
Glenn Randers-Pehrson | 837a3d1 | 2002-05-10 20:19:58 -0500 | [diff] [blame] | 92 | libpng-config: |
| 93 | ( cat scripts/libpng-config-head.in; \ |
| 94 | echo prefix=\"$(prefix)\"; \ |
Glenn Randers-Pehrson | 5ff38d3 | 2002-09-17 23:38:46 -0500 | [diff] [blame] | 95 | echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \ |
Glenn Randers-Pehrson | b3870ab | 2006-05-11 09:43:09 -0500 | [diff] [blame] | 96 | echo cppflags=\"\"; \ |
Glenn Randers-Pehrson | 5ff38d3 | 2002-09-17 23:38:46 -0500 | [diff] [blame] | 97 | echo L_opts=\"-L$(LIBPATH)\"; \ |
| 98 | echo R_opts=\"-R$(LIBPATH)\"; \ |
Glenn Randers-Pehrson | 1721829 | 2006-04-20 07:20:46 -0500 | [diff] [blame] | 99 | echo libs=\"-lpng14 -lz -lm\"; \ |
Glenn Randers-Pehrson | 837a3d1 | 2002-05-10 20:19:58 -0500 | [diff] [blame] | 100 | cat scripts/libpng-config-body.in ) > libpng-config |
| 101 | chmod +x libpng-config |
| 102 | |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 103 | $(LIBSO): $(LIBSOMAJ) |
Glenn Randers-Pehrson | f628ee2 | 2006-04-19 05:00:04 -0500 | [diff] [blame] | 104 | $(LN_SF) $(LIBSOMAJ) $(LIBSO) |
Guy Schalnat | 4ee97b0 | 1996-01-16 01:51:56 -0600 | [diff] [blame] | 105 | |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 106 | $(LIBSOMAJ): $(LIBSOVER) |
Glenn Randers-Pehrson | f628ee2 | 2006-04-19 05:00:04 -0500 | [diff] [blame] | 107 | $(LN_SF) $(LIBSOVER) $(LIBSOMAJ) |
Guy Schalnat | 4ee97b0 | 1996-01-16 01:51:56 -0600 | [diff] [blame] | 108 | |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 109 | $(LIBSOVER): $(OBJSDLL) |
Glenn Randers-Pehrson | 61c32d9 | 2000-02-04 23:40:16 -0600 | [diff] [blame] | 110 | @case "`type ld`" in *ucb*) \ |
| 111 | echo; \ |
| 112 | echo '## WARNING:'; \ |
| 113 | echo '## The commands "CC" and "LD" must NOT refer to /usr/ucb/cc'; \ |
| 114 | echo '## and /usr/ucb/ld. If they do, you need to adjust your PATH'; \ |
| 115 | echo '## environment variable to put /usr/ccs/bin ahead of /usr/ucb.'; \ |
| 116 | echo '## The environment variable LD_LIBRARY_PATH should not be set'; \ |
| 117 | echo '## at all. If it is, things are likely to break because of'; \ |
| 118 | echo '## the libucb dependency that is created.'; \ |
| 119 | echo; \ |
| 120 | ;; \ |
| 121 | esac |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 122 | $(LD) -G -h $(LIBSOMAJ) \ |
| 123 | -o $(LIBSOVER) $(OBJSDLL) |
Guy Schalnat | 4ee97b0 | 1996-01-16 01:51:56 -0600 | [diff] [blame] | 124 | |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 125 | pngtest: pngtest.o $(LIBSO) |
Glenn Randers-Pehrson | 2687fcc | 1998-01-07 20:54:20 -0600 | [diff] [blame] | 126 | $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) |
Guy Schalnat | 4ee97b0 | 1996-01-16 01:51:56 -0600 | [diff] [blame] | 127 | |
| 128 | test: pngtest |
| 129 | ./pngtest |
| 130 | |
Glenn Randers-Pehrson | beb572e | 2006-08-19 13:59:24 -0500 | [diff] [blame] | 131 | install-headers: png.h pngconf.h pngdefs.h |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 132 | -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi |
| 133 | -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi |
Glenn Randers-Pehrson | beb572e | 2006-08-19 13:59:24 -0500 | [diff] [blame] | 134 | cp png.h pngconf.h pngdefs.h $(DI)/$(LIBNAME) |
Glenn Randers-Pehrson | 07748d1 | 2002-05-25 11:12:10 -0500 | [diff] [blame] | 135 | chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h |
Glenn Randers-Pehrson | beb572e | 2006-08-19 13:59:24 -0500 | [diff] [blame] | 136 | chmod 644 $(DI)/$(LIBNAME)/pngdefs.h |
| 137 | -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pngdefs.h |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 138 | -@$(RM_F) $(DI)/libpng |
Glenn Randers-Pehrson | f628ee2 | 2006-04-19 05:00:04 -0500 | [diff] [blame] | 139 | (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) |
Glenn Randers-Pehrson | c1bfe68 | 2002-03-06 22:08:00 -0600 | [diff] [blame] | 140 | |
| 141 | install-static: install-headers libpng.a |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 142 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 143 | cp libpng.a $(DL)/$(LIBNAME).a |
| 144 | chmod 644 $(DL)/$(LIBNAME).a |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 145 | -@$(RM_F) $(DL)/libpng.a |
Glenn Randers-Pehrson | f628ee2 | 2006-04-19 05:00:04 -0500 | [diff] [blame] | 146 | (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) |
Glenn Randers-Pehrson | c1bfe68 | 2002-03-06 22:08:00 -0600 | [diff] [blame] | 147 | |
Glenn Randers-Pehrson | d60b8fa | 2006-04-20 21:31:14 -0500 | [diff] [blame] | 148 | install-shared: install-headers $(LIBSOVER) libpng.pc |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 149 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 150 | -@$(RM_F) $(DL)/$(LIBSOVER)* $(DL)/$(LIBSO) |
| 151 | -@$(RM_F) $(DL)/$(LIBSOMAJ) |
| 152 | -@$(RM_F) $(DL)/$(OLDSO) |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 153 | cp $(LIBSOVER) $(DL) |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 154 | chmod 755 $(DL)/$(LIBSOVER) |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 155 | (cd $(DL); \ |
Glenn Randers-Pehrson | d60b8fa | 2006-04-20 21:31:14 -0500 | [diff] [blame] | 156 | $(LN_SF) $(LIBSOVER) $(LIBSOMAJ); \ |
| 157 | $(LN_SF) $(LIBSOMAJ) $(LIBSO); \ |
| 158 | $(LN_SF) $(OLDSO) $(LIBSO)) |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 159 | -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi |
| 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 | f628ee2 | 2006-04-19 05:00:04 -0500 | [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 | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 167 | -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi |
| 168 | -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi |
| 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 | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 173 | -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi |
| 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 | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 178 | -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi |
| 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 | f628ee2 | 2006-04-19 05:00:04 -0500 | [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 |
Guy Schalnat | 4ee97b0 | 1996-01-16 01:51:56 -0600 | [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 | d020e9d | 2002-06-28 09:34:00 -0500 | [diff] [blame] | 208 | |
Guy Schalnat | 4ee97b0 | 1996-01-16 01:51:56 -0600 | [diff] [blame] | 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 | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 211 | libpng-config $(LIBSO) $(LIBSOMAJ)* \ |
Glenn Randers-Pehrson | beb572e | 2006-08-19 13:59:24 -0500 | [diff] [blame] | 212 | libpng.pc pngdefs.h |
Guy Schalnat | 4ee97b0 | 1996-01-16 01:51:56 -0600 | [diff] [blame] | 213 | |
Glenn Randers-Pehrson | 166c5a3 | 1999-12-10 09:43:02 -0600 | [diff] [blame] | 214 | DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO |
| 215 | writelock: |
| 216 | chmod a-w *.[ch35] $(DOCS) scripts/* |
| 217 | |
Guy Schalnat | 4ee97b0 | 1996-01-16 01:51:56 -0600 | [diff] [blame] | 218 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
| 219 | |
Glenn Randers-Pehrson | beb572e | 2006-08-19 13:59:24 -0500 | [diff] [blame] | 220 | png.o png.pic.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 221 | pngerror.o pngerror.pic.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 222 | pngrio.o pngrio.pic.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 223 | pngwio.o pngwio.pic.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 224 | pngmem.o pngmem.pic.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 225 | pngset.o pngset.pic.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 226 | pnggccrd.o pnggccrd.pic.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 227 | pngget.o pngget.pic.o: png.h pngconf.h pngdefs.h pngpriv.h |
Glenn Randers-Pehrson | beb572e | 2006-08-19 13:59:24 -0500 | [diff] [blame] | 228 | pngread.o pngread.pic.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 229 | pngrtran.o pngrtran.pic.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 230 | pngrutil.o pngrutil.pic.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 231 | pngtrans.o pngtrans.pic.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 232 | pngwrite.o pngwrite.pic.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 233 | pngwtran.o pngwtran.pic.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 234 | pngwutil.o pngwutil.pic.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 235 | pngpread.o pngpread.pic.o: png.h pngconf.h pngdefs.h pngpriv.h |
Glenn Randers-Pehrson | 2687fcc | 1998-01-07 20:54:20 -0600 | [diff] [blame] | 236 | |
Glenn Randers-Pehrson | beb572e | 2006-08-19 13:59:24 -0500 | [diff] [blame] | 237 | pngtest.o: png.h pngconf.h pngdefs.h |