Glenn Randers-Pehrson | 1d96361 | 1998-05-02 12:52:25 -0500 | [diff] [blame] | 1 | # makefile for SCO OSr5 ELF and Unixware 7 with Native cc |
| 2 | # Contributed by Mike Hopkirk (hops@sco.com) modified from Makefile.lnx |
| 3 | # force ELF build dynamic linking, SONAME setting in lib and RPATH in app |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 4 | # Copyright (C) 2002, 2006 Glenn Randers-Pehrson |
Glenn Randers-Pehrson | 98c9d73 | 2000-05-03 21:06:11 -0500 | [diff] [blame] | 5 | # Copyright (C) 1998 Greg Roelofs |
Glenn Randers-Pehrson | d436672 | 2000-06-04 14:29:29 -0500 | [diff] [blame] | 6 | # Copyright (C) 1996, 1997 Andreas Dilger |
Glenn Randers-Pehrson | 3e61d79 | 2009-06-24 09:31:28 -0500 | [diff] [blame] | 7 | # |
Glenn Randers-Pehrson | e0dc4c8 | 2009-06-25 12:17:26 -0500 | [diff] [blame] | 8 | # This code is released under the zlib/libpng license. |
Glenn Randers-Pehrson | c332bbc | 2009-06-25 13:43:50 -0500 | [diff] [blame^] | 9 | # For conditions of distribution and use, see the disclaimer |
Glenn Randers-Pehrson | 037023b | 2009-06-24 10:27:36 -0500 | [diff] [blame] | 10 | # and license in png.h |
Glenn Randers-Pehrson | 1d96361 | 1998-05-02 12:52:25 -0500 | [diff] [blame] | 11 | |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 12 | # Library name: |
Glenn Randers-Pehrson | 1721829 | 2006-04-20 07:20:46 -0500 | [diff] [blame] | 13 | LIBNAME = libpng14 |
Glenn Randers-Pehrson | 56f6396 | 2008-10-06 10:16:17 -0500 | [diff] [blame] | 14 | PNGMAJ = 14 |
Glenn Randers-Pehrson | d84748a | 2009-06-24 08:17:34 -0500 | [diff] [blame] | 15 | PNGMIN = 1.4.0beta65 |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 16 | PNGVER = $(PNGMAJ).$(PNGMIN) |
| 17 | |
| 18 | # Shared library names: |
| 19 | LIBSO=$(LIBNAME).so |
| 20 | LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) |
| 21 | LIBSOVER=$(LIBNAME).so.$(PNGVER) |
| 22 | OLDSO=libpng.so |
Glenn Randers-Pehrson glennrp@comcast.net | 7ecf7bd | 2009-05-02 15:36:08 -0500 | [diff] [blame] | 23 | OLDSOMAJ=libpng.so.14 |
| 24 | OLDSOVER=libpng.so.14.$(PNGMIN) |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 25 | |
| 26 | # Utilities: |
Glenn Randers-Pehrson | 1d96361 | 1998-05-02 12:52:25 -0500 | [diff] [blame] | 27 | CC=cc |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 28 | AR_RC=ar rc |
| 29 | MKDIR_P=mkdir |
| 30 | LN_SF=ln -f -s |
| 31 | RANLIB=echo |
| 32 | RM_F=/bin/rm -f |
Glenn Randers-Pehrson | 1d96361 | 1998-05-02 12:52:25 -0500 | [diff] [blame] | 33 | |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 34 | # where make install puts libpng.a, $(OLDSO)*, and png.h |
Glenn Randers-Pehrson | 5c6aeb2 | 1998-12-29 11:47:59 -0600 | [diff] [blame] | 35 | prefix=/usr/local |
Glenn Randers-Pehrson | ad31054 | 2006-04-18 05:31:20 -0500 | [diff] [blame] | 36 | exec_prefix=$(prefix) |
Glenn Randers-Pehrson | 5c6aeb2 | 1998-12-29 11:47:59 -0600 | [diff] [blame] | 37 | |
Glenn Randers-Pehrson | 1d96361 | 1998-05-02 12:52:25 -0500 | [diff] [blame] | 38 | # Where the zlib library and include files are located |
| 39 | #ZLIBLIB=/usr/local/lib |
| 40 | #ZLIBINC=/usr/local/include |
| 41 | ZLIBLIB=../zlib |
| 42 | ZLIBINC=../zlib |
| 43 | |
Glenn Randers-Pehrson | d56aca7 | 2000-11-23 11:51:42 -0600 | [diff] [blame] | 44 | CFLAGS= -dy -belf -I$(ZLIBINC) -O3 |
Glenn Randers-Pehrson | 1721829 | 2006-04-20 07:20:46 -0500 | [diff] [blame] | 45 | LDFLAGS=-L. -L$(ZLIBLIB) -lpng14 -lz -lm |
Glenn Randers-Pehrson | 1d96361 | 1998-05-02 12:52:25 -0500 | [diff] [blame] | 46 | |
Glenn Randers-Pehrson | fcbd787 | 2002-04-07 16:35:38 -0500 | [diff] [blame] | 47 | INCPATH=$(prefix)/include/libpng |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 48 | LIBPATH=$(exec_prefix)/lib |
Glenn Randers-Pehrson | 03008a0 | 2002-04-27 10:11:25 -0500 | [diff] [blame] | 49 | MANPATH=$(prefix)/man |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 50 | BINPATH=$(exec_prefix)/bin |
Glenn Randers-Pehrson | 03008a0 | 2002-04-27 10:11:25 -0500 | [diff] [blame] | 51 | |
| 52 | # override DESTDIR= on the make install command line to easily support |
| 53 | # installing into a temporary location. Example: |
| 54 | # |
| 55 | # make install DESTDIR=/tmp/build/libpng |
| 56 | # |
| 57 | # If you're going to install into a temporary location |
Glenn Randers-Pehrson | 07748d1 | 2002-05-25 11:12:10 -0500 | [diff] [blame] | 58 | # via DESTDIR, $(DESTDIR)$(prefix) must already exist before |
Glenn Randers-Pehrson | 03008a0 | 2002-04-27 10:11:25 -0500 | [diff] [blame] | 59 | # you execute make install. |
| 60 | DESTDIR= |
Glenn Randers-Pehrson | 1d96361 | 1998-05-02 12:52:25 -0500 | [diff] [blame] | 61 | |
Glenn Randers-Pehrson | 07748d1 | 2002-05-25 11:12:10 -0500 | [diff] [blame] | 62 | DB=$(DESTDIR)$(BINPATH) |
| 63 | DI=$(DESTDIR)$(INCPATH) |
| 64 | DL=$(DESTDIR)$(LIBPATH) |
| 65 | DM=$(DESTDIR)$(MANPATH) |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 66 | |
Glenn Randers-Pehrson | 1d96361 | 1998-05-02 12:52:25 -0500 | [diff] [blame] | 67 | 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] | 68 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ |
| 69 | pngwtran.o pngmem.o pngerror.o pngpread.o |
Glenn Randers-Pehrson | 1d96361 | 1998-05-02 12:52:25 -0500 | [diff] [blame] | 70 | |
| 71 | OBJSDLL = $(OBJS:.o=.pic.o) |
| 72 | |
| 73 | .SUFFIXES: .c .o .pic.o |
| 74 | |
| 75 | .c.pic.o: |
| 76 | $(CC) -c $(CFLAGS) -KPIC -o $@ $*.c |
| 77 | |
Glenn Randers-Pehrson glennrp@comcast.net | 7ecf7bd | 2009-05-02 15:36:08 -0500 | [diff] [blame] | 78 | all: libpng.a $(LIBSO) pngtest libpng.pc libpng-config |
Glenn Randers-Pehrson | 1d96361 | 1998-05-02 12:52:25 -0500 | [diff] [blame] | 79 | |
| 80 | libpng.a: $(OBJS) |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 81 | $(AR_RC) $@ $(OBJS) |
Glenn Randers-Pehrson | 1d96361 | 1998-05-02 12:52:25 -0500 | [diff] [blame] | 82 | $(RANLIB) $@ |
| 83 | |
Glenn Randers-Pehrson | 03008a0 | 2002-04-27 10:11:25 -0500 | [diff] [blame] | 84 | libpng.pc: |
Glenn Randers-Pehrson glennrp@comcast.net | 7ecf7bd | 2009-05-02 15:36:08 -0500 | [diff] [blame] | 85 | cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \ |
| 86 | -e s!@exec_prefix@!$(exec_prefix)! \ |
| 87 | -e s!@libdir@!$(LIBPATH)! \ |
| 88 | -e s!@includedir@!$(INCPATH)! \ |
| 89 | -e s!-lpng14!-lpng14\ -lz\ -lm! > libpng.pc |
Glenn Randers-Pehrson | 03008a0 | 2002-04-27 10:11:25 -0500 | [diff] [blame] | 90 | |
Glenn Randers-Pehrson | 837a3d1 | 2002-05-10 20:19:58 -0500 | [diff] [blame] | 91 | libpng-config: |
| 92 | ( cat scripts/libpng-config-head.in; \ |
| 93 | echo prefix=\"$(prefix)\"; \ |
Glenn Randers-Pehrson | 5ff38d3 | 2002-09-17 23:38:46 -0500 | [diff] [blame] | 94 | echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \ |
| 95 | echo ccopts=\"-belf\"; \ |
| 96 | echo L_opts=\"-L$(LIBPATH)\"; \ |
Glenn Randers-Pehrson | 1721829 | 2006-04-20 07:20:46 -0500 | [diff] [blame] | 97 | echo libs=\"-lpng14 -lz -lm\"; \ |
Glenn Randers-Pehrson | 837a3d1 | 2002-05-10 20:19:58 -0500 | [diff] [blame] | 98 | cat scripts/libpng-config-body.in ) > libpng-config |
| 99 | chmod +x libpng-config |
| 100 | |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 101 | $(LIBSO): $(LIBSOMAJ) |
Glenn Randers-Pehrson | f628ee2 | 2006-04-19 05:00:04 -0500 | [diff] [blame] | 102 | $(LN_SF) $(LIBSOMAJ) $(LIBSO) |
Glenn Randers-Pehrson | 1d96361 | 1998-05-02 12:52:25 -0500 | [diff] [blame] | 103 | |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 104 | $(LIBSOMAJ): $(LIBSOVER) |
Glenn Randers-Pehrson | f628ee2 | 2006-04-19 05:00:04 -0500 | [diff] [blame] | 105 | $(LN_SF) $(LIBSOVER) $(LIBSOMAJ) |
Glenn Randers-Pehrson | 1d96361 | 1998-05-02 12:52:25 -0500 | [diff] [blame] | 106 | |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 107 | $(LIBSOVER): $(OBJSDLL) |
| 108 | $(CC) -G -Wl,-h,$(LIBSOMAJ) -o $(LIBSOVER) \ |
Glenn Randers-Pehrson | 1d96361 | 1998-05-02 12:52:25 -0500 | [diff] [blame] | 109 | $(OBJSDLL) |
| 110 | |
Glenn Randers-Pehrson glennrp@comcast.net | 7ecf7bd | 2009-05-02 15:36:08 -0500 | [diff] [blame] | 111 | $(OLDSOVER): $(OBJSDLL) |
| 112 | $(CC) -G -Wl,-h,$(OLDSOMAJ) -o $(OLDSOVER) \ |
| 113 | $(OBJSDLL) |
| 114 | |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 115 | pngtest: pngtest.o $(LIBSO) |
Glenn Randers-Pehrson | 1d96361 | 1998-05-02 12:52:25 -0500 | [diff] [blame] | 116 | LD_RUN_PATH=.:$(ZLIBLIB) $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) |
| 117 | |
| 118 | test: pngtest |
| 119 | ./pngtest |
| 120 | |
Glenn Randers-Pehrson | c1bfe68 | 2002-03-06 22:08:00 -0600 | [diff] [blame] | 121 | install-headers: png.h pngconf.h |
Glenn Randers-Pehrson | 1ce0836 | 2006-03-08 23:35:59 -0600 | [diff] [blame] | 122 | -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi |
| 123 | -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 124 | -@$(RM_F) $(DI)/png.h |
| 125 | -@$(RM_F) $(DI)/pngconf.h |
Glenn Randers-Pehrson glennrp@comcast.net | 7ecf7bd | 2009-05-02 15:36:08 -0500 | [diff] [blame] | 126 | cp png.h pngconf.h $(DI)/$(LIBNAME) |
Glenn Randers-Pehrson | 07748d1 | 2002-05-25 11:12:10 -0500 | [diff] [blame] | 127 | chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h |
Glenn Randers-Pehrson glennrp@comcast.net | 7ecf7bd | 2009-05-02 15:36:08 -0500 | [diff] [blame] | 128 | -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 129 | -@$(RM_F) $(DI)/libpng |
Glenn Randers-Pehrson | f628ee2 | 2006-04-19 05:00:04 -0500 | [diff] [blame] | 130 | (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) |
Glenn Randers-Pehrson | c1bfe68 | 2002-03-06 22:08:00 -0600 | [diff] [blame] | 131 | |
| 132 | install-static: install-headers libpng.a |
Glenn Randers-Pehrson | 1ce0836 | 2006-03-08 23:35:59 -0600 | [diff] [blame] | 133 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 134 | cp libpng.a $(DL)/$(LIBNAME).a |
| 135 | chmod 644 $(DL)/$(LIBNAME).a |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 136 | -@$(RM_F) $(DL)/libpng.a |
Glenn Randers-Pehrson | f628ee2 | 2006-04-19 05:00:04 -0500 | [diff] [blame] | 137 | (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) |
Glenn Randers-Pehrson | c1bfe68 | 2002-03-06 22:08:00 -0600 | [diff] [blame] | 138 | |
Glenn Randers-Pehrson glennrp@comcast.net | 7ecf7bd | 2009-05-02 15:36:08 -0500 | [diff] [blame] | 139 | install-shared: install-headers $(LIBSOVER) libpng.pc \ |
| 140 | $(OLDSOVER) |
Glenn Randers-Pehrson | 1ce0836 | 2006-03-08 23:35:59 -0600 | [diff] [blame] | 141 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 142 | -@$(RM_F) $(DL)/$(LIBSOVER)* $(DL)/$(LIBSO) |
| 143 | -@$(RM_F) $(DL)/$(LIBSOMAJ) |
| 144 | -@$(RM_F) $(DL)/$(OLDSO) |
Glenn Randers-Pehrson glennrp@comcast.net | 7ecf7bd | 2009-05-02 15:36:08 -0500 | [diff] [blame] | 145 | -@$(RM_F) $(DL)/$(OLDSOMAJ) |
| 146 | -@$(RM_F) $(DL)/$(OLDSOVER)* |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 147 | cp $(LIBSOVER) $(DL) |
Glenn Randers-Pehrson glennrp@comcast.net | 7ecf7bd | 2009-05-02 15:36:08 -0500 | [diff] [blame] | 148 | cp $(OLDSOVER) $(DL) |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 149 | chmod 755 $(DL)/$(LIBSOVER) |
Glenn Randers-Pehrson glennrp@comcast.net | 7ecf7bd | 2009-05-02 15:36:08 -0500 | [diff] [blame] | 150 | chmod 755 $(DL)/$(OLDSOVER) |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 151 | (cd $(DL); \ |
Glenn Randers-Pehrson glennrp@comcast.net | 7ecf7bd | 2009-05-02 15:36:08 -0500 | [diff] [blame] | 152 | $(LN_SF) $(OLDSOVER) $(OLDSOMAJ); \ |
| 153 | $(LN_SF) $(OLDSOMAJ) $(OLDSO); \ |
Glenn Randers-Pehrson | f628ee2 | 2006-04-19 05:00:04 -0500 | [diff] [blame] | 154 | $(LN_SF) $(LIBSOVER) $(LIBSOMAJ); \ |
Glenn Randers-Pehrson glennrp@comcast.net | 7ecf7bd | 2009-05-02 15:36:08 -0500 | [diff] [blame] | 155 | $(LN_SF) $(LIBSOMAJ) $(LIBSO)) |
Glenn Randers-Pehrson | 1ce0836 | 2006-03-08 23:35:59 -0600 | [diff] [blame] | 156 | -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 157 | -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc |
| 158 | -@$(RM_F) $(DL)/pkgconfig/libpng.pc |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 159 | cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc |
| 160 | chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc |
Glenn Randers-Pehrson | f628ee2 | 2006-04-19 05:00:04 -0500 | [diff] [blame] | 161 | (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) |
Glenn Randers-Pehrson | c1bfe68 | 2002-03-06 22:08:00 -0600 | [diff] [blame] | 162 | |
Glenn Randers-Pehrson | 03008a0 | 2002-04-27 10:11:25 -0500 | [diff] [blame] | 163 | install-man: libpng.3 libpngpf.3 png.5 |
Glenn Randers-Pehrson | 1ce0836 | 2006-03-08 23:35:59 -0600 | [diff] [blame] | 164 | -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi |
| 165 | -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 166 | -@$(RM_F) $(DM)/man3/libpng.3 |
| 167 | -@$(RM_F) $(DM)/man3/libpngpf.3 |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 168 | cp libpng.3 $(DM)/man3 |
| 169 | cp libpngpf.3 $(DM)/man3 |
Glenn Randers-Pehrson | 1ce0836 | 2006-03-08 23:35:59 -0600 | [diff] [blame] | 170 | -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 171 | -@$(RM_F) $(DM)/man5/png.5 |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 172 | cp png.5 $(DM)/man5 |
Glenn Randers-Pehrson | 03008a0 | 2002-04-27 10:11:25 -0500 | [diff] [blame] | 173 | |
Glenn Randers-Pehrson | 837a3d1 | 2002-05-10 20:19:58 -0500 | [diff] [blame] | 174 | install-config: libpng-config |
Glenn Randers-Pehrson | 1ce0836 | 2006-03-08 23:35:59 -0600 | [diff] [blame] | 175 | -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 176 | -@$(RM_F) $(DB)/libpng-config |
| 177 | -@$(RM_F) $(DB)/$(LIBNAME)-config |
Glenn Randers-Pehrson | cfbed9b | 2002-05-21 18:06:08 -0500 | [diff] [blame] | 178 | cp libpng-config $(DB)/$(LIBNAME)-config |
| 179 | chmod 755 $(DB)/$(LIBNAME)-config |
Glenn Randers-Pehrson | f628ee2 | 2006-04-19 05:00:04 -0500 | [diff] [blame] | 180 | (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) |
Glenn Randers-Pehrson | 704228f | 2002-05-02 20:49:40 -0500 | [diff] [blame] | 181 | |
| 182 | install: install-static install-shared install-man install-config |
Glenn Randers-Pehrson | 03008a0 | 2002-04-27 10:11:25 -0500 | [diff] [blame] | 183 | |
Glenn Randers-Pehrson | 2ae022d | 2002-07-01 22:23:46 -0500 | [diff] [blame] | 184 | # 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] | 185 | # move the library to its final location. Use test-dd to test it |
| 186 | # before then. |
| 187 | |
| 188 | test-dd: |
| 189 | echo |
| 190 | echo Testing installed dynamic shared library in $(DL). |
| 191 | $(CC) -I$(DI) $(CFLAGS) \ |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 192 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ |
Glenn Randers-Pehrson | a4981d4 | 2004-08-25 22:00:45 -0500 | [diff] [blame] | 193 | -L$(DL) -L$(ZLIBLIB) \ |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 194 | -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` |
Glenn Randers-Pehrson | a4981d4 | 2004-08-25 22:00:45 -0500 | [diff] [blame] | 195 | ./pngtestd pngtest.png |
Glenn Randers-Pehrson | 2ae022d | 2002-07-01 22:23:46 -0500 | [diff] [blame] | 196 | |
| 197 | test-installed: |
| 198 | $(CC) $(CFLAGS) \ |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 199 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ |
Glenn Randers-Pehrson | 2ae022d | 2002-07-01 22:23:46 -0500 | [diff] [blame] | 200 | -L$(ZLIBLIB) \ |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 201 | -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` |
Glenn Randers-Pehrson | 2ae022d | 2002-07-01 22:23:46 -0500 | [diff] [blame] | 202 | ./pngtesti pngtest.png |
| 203 | |
| 204 | clean: |
Glenn Randers-Pehrson | 5c60b23 | 2006-03-07 07:09:22 -0600 | [diff] [blame] | 205 | $(RM_F) *.o libpng.a pngtest pngout.png libpng-config \ |
Glenn Randers-Pehrson | 4deeb79 | 2006-03-22 16:21:59 -0600 | [diff] [blame] | 206 | $(LIBSO) $(LIBSOMAJ)* pngtest-static pngtesti \ |
Glenn Randers-Pehrson glennrp@comcast.net | 7ecf7bd | 2009-05-02 15:36:08 -0500 | [diff] [blame] | 207 | $(OLDSOVER) \ |
| 208 | libpng.pc |
Glenn Randers-Pehrson | 1d96361 | 1998-05-02 12:52:25 -0500 | [diff] [blame] | 209 | |
Glenn Randers-Pehrson | 166c5a3 | 1999-12-10 09:43:02 -0600 | [diff] [blame] | 210 | DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO |
| 211 | writelock: |
| 212 | chmod a-w *.[ch35] $(DOCS) scripts/* |
| 213 | |
Glenn Randers-Pehrson | 1d96361 | 1998-05-02 12:52:25 -0500 | [diff] [blame] | 214 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
| 215 | |
Glenn Randers-Pehrson glennrp@comcast.net | 7ecf7bd | 2009-05-02 15:36:08 -0500 | [diff] [blame] | 216 | png.o png.pic.o: png.h pngconf.h pngpriv.h |
| 217 | pngerror.o pngerror.pic.o: png.h pngconf.h pngpriv.h |
| 218 | pngrio.o pngrio.pic.o: png.h pngconf.h pngpriv.h |
| 219 | pngwio.o pngwio.pic.o: png.h pngconf.h pngpriv.h |
| 220 | pngmem.o pngmem.pic.o: png.h pngconf.h pngpriv.h |
| 221 | pngset.o pngset.pic.o: png.h pngconf.h pngpriv.h |
| 222 | pngget.o pngget.pic.o: png.h pngconf.h pngpriv.h |
| 223 | pngread.o pngread.pic.o: png.h pngconf.h pngpriv.h |
| 224 | pngrtran.o pngrtran.pic.o: png.h pngconf.h pngpriv.h |
| 225 | pngrutil.o pngrutil.pic.o: png.h pngconf.h pngpriv.h |
| 226 | pngtrans.o pngtrans.pic.o: png.h pngconf.h pngpriv.h |
| 227 | pngwrite.o pngwrite.pic.o: png.h pngconf.h pngpriv.h |
| 228 | pngwtran.o pngwtran.pic.o: png.h pngconf.h pngpriv.h |
| 229 | pngwutil.o pngwutil.pic.o: png.h pngconf.h pngpriv.h |
| 230 | pngpread.o pngpread.pic.o: png.h pngconf.h pngpriv.h |
Glenn Randers-Pehrson | 1d96361 | 1998-05-02 12:52:25 -0500 | [diff] [blame] | 231 | |
Glenn Randers-Pehrson glennrp@comcast.net | 7ecf7bd | 2009-05-02 15:36:08 -0500 | [diff] [blame] | 232 | pngtest.o: png.h pngconf.h pngpriv.h |