1 | diff -ru scripts/makefile.darwin.old scripts/makefile.darwin |
---|
2 | --- scripts/makefile.darwin.old Thu Oct 3 07:32:34 2002 |
---|
3 | +++ scripts/makefile.darwin Sun Mar 2 09:51:45 2003 |
---|
4 | @@ -85,18 +85,17 @@ |
---|
5 | |
---|
6 | $(LIBNAME).$(PNGVER).dylib: $(OBJSDLL) |
---|
7 | $(CC) -dynamiclib \ |
---|
8 | - -install_name $(DL)/$(LIBNAME).$(PNGMAJ).dylib \ |
---|
9 | - -flat_namespace -undefined suppress \ |
---|
10 | + -install_name $(LIBPATH)/$(LIBNAME).$(PNGMAJ).dylib \ |
---|
11 | + -current_version $(PNGVER) -compatibility_version $(PNGVER) \ |
---|
12 | -o $(LIBNAME).$(PNGVER).dylib \ |
---|
13 | - $(OBJSDLL) |
---|
14 | + $(OBJSDLL) -L$(ZLIBLIB) -lz |
---|
15 | |
---|
16 | libpng.3.$(PNGMIN).dylib: $(OBJSDLL) |
---|
17 | $(CC) -dynamiclib \ |
---|
18 | - -install_name $(DL)/libpng.3.dylib \ |
---|
19 | + -install_name $(LIBPATH)/libpng.3.dylib \ |
---|
20 | -current_version 3 -compatibility_version 3 \ |
---|
21 | - -flat_namespace -undefined suppress \ |
---|
22 | -o libpng.3.$(PNGMIN).dylib \ |
---|
23 | - $(OBJSDLL) |
---|
24 | + $(OBJSDLL) -L$(ZLIBLIB) -lz |
---|
25 | |
---|
26 | pngtest: pngtest.o $(LIBNAME).dylib |
---|
27 | $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) |
---|
28 | @@ -117,6 +116,7 @@ |
---|
29 | -@if [ ! -d $(DL) ]; then mkdir $(DL); fi |
---|
30 | cp libpng.a $(DL)/$(LIBNAME).a |
---|
31 | chmod 644 $(DL)/$(LIBNAME).a |
---|
32 | + $(RANLIB) $(DL)/$(LIBNAME).a |
---|
33 | -@/bin/rm -f $(DL)/libpng.a |
---|
34 | (cd $(DL); ln -sf $(LIBNAME).a libpng.a) |
---|
35 | |
---|