Glenn Randers-Pehrson | 1721829 | 2006-04-20 07:20:46 -0500 | [diff] [blame] | 1 | # makefile for libpng.a and libpng14.so, SGI IRIX with 'cc' |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 2 | # Copyright (C) 2001-2002, 2006 Glenn Randers-Pehrson |
Glenn Randers-Pehrson | c4a2ae6 | 1998-01-16 22:06:18 -0600 | [diff] [blame] | 3 | # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. |
| 4 | # For conditions of distribution and use, see copyright notice in png.h |
| 5 | |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 6 | # Library name: |
Glenn Randers-Pehrson | 1721829 | 2006-04-20 07:20:46 -0500 | [diff] [blame] | 7 | LIBNAME=libpng14 |
Glenn Randers-Pehrson | 56f6396 | 2008-10-06 10:16:17 -0500 | [diff] [blame] | 8 | PNGMAJ = 14 |
Glenn Randers-Pehrson | a93c942 | 2009-04-13 11:41:33 -0500 | [diff] [blame^] | 9 | PNGMIN = 1.4.0beta54 |
Glenn Randers-Pehrson | d1e8c86 | 2002-06-20 06:54:34 -0500 | [diff] [blame] | 10 | PNGVER = $(PNGMAJ).$(PNGMIN) |
| 11 | |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 12 | # Shared library names: |
| 13 | LIBSO=$(LIBNAME).so |
| 14 | LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) |
| 15 | LIBSOVER=$(LIBNAME).so.$(PNGVER) |
| 16 | OLDSO=libpng.so |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 17 | |
| 18 | # Utilities: |
| 19 | AR_RC=ar rc |
| 20 | CC=cc |
| 21 | MKDIR_P=mkdir -p |
| 22 | LN_SF=ln -sf |
| 23 | RANLIB=echo |
| 24 | RM_F=/bin/rm -f |
| 25 | |
Glenn Randers-Pehrson | 1721829 | 2006-04-20 07:20:46 -0500 | [diff] [blame] | 26 | # Where make install puts libpng.a, libpng14.so, and libpng14/png.h |
Glenn Randers-Pehrson | d1e8c86 | 2002-06-20 06:54:34 -0500 | [diff] [blame] | 27 | # Prefix must be a full pathname. |
| 28 | |
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 | |
Glenn Randers-Pehrson | c4a2ae6 | 1998-01-16 22:06:18 -0600 | [diff] [blame] | 32 | # Where the zlib library and include files are located |
Glenn Randers-Pehrson | be9de0f | 2001-01-22 08:52:16 -0600 | [diff] [blame] | 33 | #ZLIBLIB=/usr/local/lib32 |
| 34 | #ZLIBINC=/usr/local/include |
Glenn Randers-Pehrson | c4a2ae6 | 1998-01-16 22:06:18 -0600 | [diff] [blame] | 35 | #ZLIBLIB=/usr/local/lib |
| 36 | #ZLIBINC=/usr/local/include |
| 37 | ZLIBLIB=../zlib |
| 38 | ZLIBINC=../zlib |
| 39 | |
Glenn Randers-Pehrson | b182893 | 2001-06-23 08:03:17 -0500 | [diff] [blame] | 40 | # ABI can be blank to use default for your system, -32, -o32, -n32, or -64 |
| 41 | # See "man abi". zlib must be built with the same ABI. |
| 42 | ABI= |
Glenn Randers-Pehrson | be9de0f | 2001-01-22 08:52:16 -0600 | [diff] [blame] | 43 | |
Glenn Randers-Pehrson | b182893 | 2001-06-23 08:03:17 -0500 | [diff] [blame] | 44 | WARNMORE=-fullwarn |
| 45 | # Note: -KPIC is the default anyhow |
Glenn Randers-Pehrson | b3870ab | 2006-05-11 09:43:09 -0500 | [diff] [blame] | 46 | #CFLAGS= $(ABI) -I$(ZLIBINC) -O $(WARNMORE) -KPIC # -g -DPNG_DEBUG=5 |
| 47 | CFLAGS=$(ABI) -I$(ZLIBINC) -O $(WARNMORE) |
Glenn Randers-Pehrson | 1721829 | 2006-04-20 07:20:46 -0500 | [diff] [blame] | 48 | LDFLAGS_A=$(ABI) -L. -L$(ZLIBLIB) -lpng14 -lz -lm |
Glenn Randers-Pehrson | b182893 | 2001-06-23 08:03:17 -0500 | [diff] [blame] | 49 | LDFLAGS=$(ABI) -L. -L$(ZLIBLIB) -lpng -lz -lm |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 50 | LDSHARED=cc $(ABI) -shared -soname $(LIBSOMAJ) \ |
Glenn Randers-Pehrson | 0cc2f95 | 2002-10-03 06:32:37 -0500 | [diff] [blame] | 51 | -set_version sgi$(PNGMAJ).0 |
Glenn Randers-Pehrson | b182893 | 2001-06-23 08:03:17 -0500 | [diff] [blame] | 52 | # See "man dso" for info about shared objects |
Glenn Randers-Pehrson | 837a3d1 | 2002-05-10 20:19:58 -0500 | [diff] [blame] | 53 | |
Glenn Randers-Pehrson | ae498dc | 2001-11-24 14:53:31 -0600 | [diff] [blame] | 54 | INCPATH=$(prefix)/include |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 55 | LIBPATH=$(exec_prefix)/lib |
| 56 | #LIBPATH=$(exec_prefix)/lib32 |
Glenn Randers-Pehrson | 03008a0 | 2002-04-27 10:11:25 -0500 | [diff] [blame] | 57 | MANPATH=$(prefix)/man |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 58 | BINPATH=$(exec_prefix)/bin |
Glenn Randers-Pehrson | 03008a0 | 2002-04-27 10:11:25 -0500 | [diff] [blame] | 59 | |
| 60 | # override DESTDIR= on the make install command line to easily support |
| 61 | # installing into a temporary location. Example: |
| 62 | # |
| 63 | # make install DESTDIR=/tmp/build/libpng |
| 64 | # |
| 65 | # If you're going to install into a temporary location |
Glenn Randers-Pehrson | 07748d1 | 2002-05-25 11:12:10 -0500 | [diff] [blame] | 66 | # via DESTDIR, $(DESTDIR)$(prefix) must already exist before |
Glenn Randers-Pehrson | 03008a0 | 2002-04-27 10:11:25 -0500 | [diff] [blame] | 67 | # you execute make install. |
| 68 | DESTDIR= |
Glenn Randers-Pehrson | ae498dc | 2001-11-24 14:53:31 -0600 | [diff] [blame] | 69 | |
Glenn Randers-Pehrson | 07748d1 | 2002-05-25 11:12:10 -0500 | [diff] [blame] | 70 | DB=$(DESTDIR)$(BINPATH) |
| 71 | DI=$(DESTDIR)$(INCPATH) |
| 72 | DL=$(DESTDIR)$(LIBPATH) |
| 73 | DM=$(DESTDIR)$(MANPATH) |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 74 | |
Glenn Randers-Pehrson | 1909560 | 2001-03-14 07:08:39 -0600 | [diff] [blame] | 75 | OBJS = pnggccrd.o png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ |
Glenn Randers-Pehrson | c4a2ae6 | 1998-01-16 22:06:18 -0600 | [diff] [blame] | 76 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ |
| 77 | pngwtran.o pngmem.o pngerror.o pngpread.o |
| 78 | |
Glenn Randers-Pehrson | beb572e | 2006-08-19 13:59:24 -0500 | [diff] [blame] | 79 | all: libpng.a pngtest shared libpng.pc libpng-config pngconf.h pngdefs.h |
Glenn Randers-Pehrson | be9de0f | 2001-01-22 08:52:16 -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.sgi */" > 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 | |
Glenn Randers-Pehrson | d1e8c86 | 2002-06-20 06:54:34 -0500 | [diff] [blame] | 85 | libpng.a: $(OBJS) |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 86 | $(AR_RC) $@ $(OBJS) |
Glenn Randers-Pehrson | d1e8c86 | 2002-06-20 06:54:34 -0500 | [diff] [blame] | 87 | $(RANLIB) $@ |
| 88 | |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 89 | shared: $(LIBSOVER) |
Glenn Randers-Pehrson | 03008a0 | 2002-04-27 10:11:25 -0500 | [diff] [blame] | 90 | |
| 91 | libpng.pc: |
| 92 | cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc |
Glenn Randers-Pehrson | c4a2ae6 | 1998-01-16 22:06:18 -0600 | [diff] [blame] | 93 | |
Glenn Randers-Pehrson | 837a3d1 | 2002-05-10 20:19:58 -0500 | [diff] [blame] | 94 | libpng-config: |
| 95 | ( cat scripts/libpng-config-head.in; \ |
| 96 | echo prefix=\"$(prefix)\"; \ |
Glenn Randers-Pehrson | 5ff38d3 | 2002-09-17 23:38:46 -0500 | [diff] [blame] | 97 | echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \ |
Glenn Randers-Pehrson | e826d7e | 2006-07-03 00:21:58 -0500 | [diff] [blame] | 98 | echo cppflags=\""; \ |
Glenn Randers-Pehrson | 5ff38d3 | 2002-09-17 23:38:46 -0500 | [diff] [blame] | 99 | echo ccopts=\"$(ABI)\"; \ |
| 100 | echo ldopts=\"$(ABI)\"; \ |
Glenn Randers-Pehrson | 0cc2f95 | 2002-10-03 06:32:37 -0500 | [diff] [blame] | 101 | echo L_opts=\"-L$(LIBPATH)\"; \ |
| 102 | echo libdir=\"$(LIBPATH)\"; \ |
Glenn Randers-Pehrson | 1721829 | 2006-04-20 07:20:46 -0500 | [diff] [blame] | 103 | echo libs=\"-lpng14 -lz -lm\"; \ |
Glenn Randers-Pehrson | 837a3d1 | 2002-05-10 20:19:58 -0500 | [diff] [blame] | 104 | cat scripts/libpng-config-body.in ) > libpng-config |
| 105 | chmod +x libpng-config |
| 106 | |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 107 | $(LIBSO): $(LIBSOMAJ) |
| 108 | $(LN_SF) $(LIBSOMAJ) $(LIBSO) |
Glenn Randers-Pehrson | d1e8c86 | 2002-06-20 06:54:34 -0500 | [diff] [blame] | 109 | |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 110 | $(LIBSOMAJ): $(LIBSOVER) |
| 111 | $(LN_SF) $(LIBSOVER) $(LIBSOMAJ) |
Glenn Randers-Pehrson | c4a2ae6 | 1998-01-16 22:06:18 -0600 | [diff] [blame] | 112 | |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 113 | $(LIBSOVER): $(OBJS) |
Glenn Randers-Pehrson | be9de0f | 2001-01-22 08:52:16 -0600 | [diff] [blame] | 114 | $(LDSHARED) -o $@ $(OBJS) |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 115 | $(RM_F) $(LIBSO) $(LIBSOMAJ) |
Glenn Randers-Pehrson | be9de0f | 2001-01-22 08:52:16 -0600 | [diff] [blame] | 116 | |
Glenn Randers-Pehrson | c4a2ae6 | 1998-01-16 22:06:18 -0600 | [diff] [blame] | 117 | pngtest: pngtest.o libpng.a |
Glenn Randers-Pehrson | ea3bcd7 | 1998-03-07 14:33:00 -0600 | [diff] [blame] | 118 | $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) |
Glenn Randers-Pehrson | c4a2ae6 | 1998-01-16 22:06:18 -0600 | [diff] [blame] | 119 | |
| 120 | test: pngtest |
Glenn Randers-Pehrson | d1e8c86 | 2002-06-20 06:54:34 -0500 | [diff] [blame] | 121 | echo |
| 122 | echo Testing local static library. |
Glenn Randers-Pehrson | c4a2ae6 | 1998-01-16 22:06:18 -0600 | [diff] [blame] | 123 | ./pngtest |
| 124 | |
Glenn Randers-Pehrson | beb572e | 2006-08-19 13:59:24 -0500 | [diff] [blame] | 125 | install-headers: png.h pngconf.h pngdefs.h |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 126 | -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi |
| 127 | -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi |
Glenn Randers-Pehrson | beb572e | 2006-08-19 13:59:24 -0500 | [diff] [blame] | 128 | cp png.h pngconf.h pngdefs.h $(DI)/$(LIBNAME) |
Glenn Randers-Pehrson | d1e8c86 | 2002-06-20 06:54:34 -0500 | [diff] [blame] | 129 | chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h |
Glenn Randers-Pehrson | beb572e | 2006-08-19 13:59:24 -0500 | [diff] [blame] | 130 | chmod 644 $(DI)/$(LIBNAME)/pngdefs.h |
| 131 | -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pngdefs.h |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 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 | 5c60b23 | 2006-03-07 07:09:22 -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 | d60b8fa | 2006-04-20 21:31:14 -0500 | [diff] [blame] | 142 | install-shared: install-headers $(LIBSOVER) libpng.pc |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 143 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 144 | -@$(RM_F) $(DL)/$(LIBSOVER)* $(DL)/$(LIBSO) |
| 145 | -@$(RM_F) $(DL)/$(LIBSOMAJ) |
| 146 | -@$(RM_F) $(DL)/$(OLDSO) |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 147 | cp $(LIBSOVER) $(DL) |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 148 | chmod 755 $(DL)/$(LIBSOVER) |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 149 | (cd $(DL); \ |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 150 | $(LN_SF) $(LIBSOVER) $(LIBSOMAJ); \ |
Glenn Randers-Pehrson | d60b8fa | 2006-04-20 21:31:14 -0500 | [diff] [blame] | 151 | $(LN_SF) $(LIBSOMAJ) $(LIBSO); \ |
| 152 | $(LN_SF) $(OLDSO) $(LIBSO)) |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 153 | -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi |
| 154 | -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc |
| 155 | -@$(RM_F) $(DL)/pkgconfig/libpng.pc |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 156 | cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc |
| 157 | chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 158 | (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) |
Glenn Randers-Pehrson | c1bfe68 | 2002-03-06 22:08:00 -0600 | [diff] [blame] | 159 | |
Glenn Randers-Pehrson | 03008a0 | 2002-04-27 10:11:25 -0500 | [diff] [blame] | 160 | install-man: libpng.3 libpngpf.3 png.5 |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 161 | -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi |
| 162 | -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi |
| 163 | -@$(RM_F) $(DM)/man3/libpng.3 |
| 164 | -@$(RM_F) $(DM)/man3/libpngpf.3 |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 165 | cp libpng.3 $(DM)/man3 |
| 166 | cp libpngpf.3 $(DM)/man3 |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 167 | -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi |
| 168 | -@$(RM_F) $(DM)/man5/png.5 |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 169 | cp png.5 $(DM)/man5 |
Glenn Randers-Pehrson | 03008a0 | 2002-04-27 10:11:25 -0500 | [diff] [blame] | 170 | |
Glenn Randers-Pehrson | 837a3d1 | 2002-05-10 20:19:58 -0500 | [diff] [blame] | 171 | install-config: libpng-config |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 172 | -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi |
| 173 | -@$(RM_F) $(DB)/libpng-config |
| 174 | -@$(RM_F) $(DB)/$(LIBNAME)-config |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 175 | cp libpng-config $(DB)/$(LIBNAME)-config |
| 176 | chmod 755 $(DB)/$(LIBNAME)-config |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 177 | (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) |
Glenn Randers-Pehrson | 03008a0 | 2002-04-27 10:11:25 -0500 | [diff] [blame] | 178 | |
Glenn Randers-Pehrson | 704228f | 2002-05-02 20:49:40 -0500 | [diff] [blame] | 179 | install: install-static install-shared install-man install-config |
Glenn Randers-Pehrson | be9de0f | 2001-01-22 08:52:16 -0600 | [diff] [blame] | 180 | |
Glenn Randers-Pehrson | d1e8c86 | 2002-06-20 06:54:34 -0500 | [diff] [blame] | 181 | # 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] | 182 | # move the library to its final location. Use test-dd to test it |
| 183 | # before then. |
| 184 | |
| 185 | test-dd: |
| 186 | echo |
| 187 | echo Testing installed dynamic shared library in $(DL). |
| 188 | $(CC) -I$(DI) -I$(ZLIBINC) \ |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 189 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ |
Glenn Randers-Pehrson | a4981d4 | 2004-08-25 22:00:45 -0500 | [diff] [blame] | 190 | -L$(DL) -L$(ZLIBLIB) \ |
| 191 | -rpath $(ZLIBLIB):$(DL) \ |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 192 | -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` |
Glenn Randers-Pehrson | a4981d4 | 2004-08-25 22:00:45 -0500 | [diff] [blame] | 193 | ./pngtestd pngtest.png |
Glenn Randers-Pehrson | d1e8c86 | 2002-06-20 06:54:34 -0500 | [diff] [blame] | 194 | |
| 195 | test-installed: |
| 196 | echo |
| 197 | echo Testing installed dynamic shared library. |
| 198 | $(CC) -I$(ZLIBINC) \ |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 199 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ |
Glenn Randers-Pehrson | a4981d4 | 2004-08-25 22:00:45 -0500 | [diff] [blame] | 200 | -L$(ZLIBLIB) \ |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 201 | -rpath $(ZLIBLIB):`$(BINPATH)/$(LIBNAME)-config --libdir` \ |
| 202 | -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` |
Glenn Randers-Pehrson | 2ae022d | 2002-07-01 22:23:46 -0500 | [diff] [blame] | 203 | ./pngtesti pngtest.png |
Glenn Randers-Pehrson | d1e8c86 | 2002-06-20 06:54:34 -0500 | [diff] [blame] | 204 | |
Glenn Randers-Pehrson | c4a2ae6 | 1998-01-16 22:06:18 -0600 | [diff] [blame] | 205 | clean: |
Glenn Randers-Pehrson | d60b8fa | 2006-04-20 21:31:14 -0500 | [diff] [blame] | 206 | $(RM_F) *.o libpng.a pngtest pngtesti pngout.png libpng.pc |
Glenn Randers-Pehrson | beb572e | 2006-08-19 13:59:24 -0500 | [diff] [blame] | 207 | libpng-config $(LIBSO) $(LIBSOMAJ)* so_locations pngdefs.h |
Glenn Randers-Pehrson | c4a2ae6 | 1998-01-16 22:06:18 -0600 | [diff] [blame] | 208 | |
Glenn Randers-Pehrson | 166c5a3 | 1999-12-10 09:43:02 -0600 | [diff] [blame] | 209 | DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO |
| 210 | writelock: |
| 211 | chmod a-w *.[ch35] $(DOCS) scripts/* |
| 212 | |
Glenn Randers-Pehrson | c4a2ae6 | 1998-01-16 22:06:18 -0600 | [diff] [blame] | 213 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
| 214 | |
Glenn Randers-Pehrson | beb572e | 2006-08-19 13:59:24 -0500 | [diff] [blame] | 215 | png.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 216 | pngerror.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 217 | pngrio.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 218 | pngwio.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 219 | pngmem.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 220 | pngset.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 221 | pngget.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 222 | pnggccrd.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 223 | pngread.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 224 | pngrtran.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 225 | pngrutil.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 226 | pngtrans.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 227 | pngwrite.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 228 | pngwtran.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 229 | pngwutil.o: png.h pngconf.h pngdefs.h pngpriv.h |
| 230 | pngpread.o: png.h pngconf.h pngdefs.h pngpriv.h |
Glenn Randers-Pehrson | c4a2ae6 | 1998-01-16 22:06:18 -0600 | [diff] [blame] | 231 | |
Glenn Randers-Pehrson | beb572e | 2006-08-19 13:59:24 -0500 | [diff] [blame] | 232 | pngtest.o: png.h pngconf.h pngdefs.h |