summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:23:14 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:23:14 -0700
commita2506218cd8c32416d0d15260834f3c23d910fc8 (patch)
tree25bbd63d92473c8ae02a27cce3fc7c04a6aba64a /Makefile.in
parentb97ec631c6f7dd9cff2e3caf3b38e70b006e1b2d (diff)
downloadzlib-a2506218cd8c32416d0d15260834f3c23d910fc8.tar.gz
zlib 1.2.0.8v1.2.0.8
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in20
1 files changed, 11 insertions, 9 deletions
diff --git a/Makefile.in b/Makefile.in
index 039280d..fa4f588 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -30,13 +30,14 @@ CPP=$(CC) -E
LIBS=libz.a
SHAREDLIB=libz.so
-SHAREDLIBV=libz.so.1.2.0.7
+SHAREDLIBV=libz.so.1.2.0.8
SHAREDLIBM=libz.so.1
AR=ar rc
RANLIB=ranlib
TAR=tar
SHELL=/bin/sh
+EXE=
prefix = /usr/local
exec_prefix = ${prefix}
@@ -53,7 +54,7 @@ OBJA =
TEST_OBJS = example.o minigzip.o
-all: example minigzip
+all: example$(EXE) minigzip$(EXE)
check: test
test: all
@@ -82,17 +83,17 @@ $(SHAREDLIBV): $(OBJS)
ln -s $@ $(SHAREDLIB)
ln -s $@ $(SHAREDLIBM)
-example: example.o $(LIBS)
+example$(EXE): example.o $(LIBS)
$(CC) $(CFLAGS) -o $@ example.o $(LDFLAGS)
-minigzip: minigzip.o $(LIBS)
+minigzip$(EXE): minigzip.o $(LIBS)
$(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS)
install: $(LIBS)
- -@if [ ! -d $(exec_prefix) ]; then mkdir $(exec_prefix); fi
- -@if [ ! -d $(includedir) ]; then mkdir $(includedir); fi
- -@if [ ! -d $(libdir) ]; then mkdir $(libdir); fi
- -@if [ ! -d $(man3dir) ]; then mkdir $(man3dir); fi
+ -@if [ ! -d $(exec_prefix) ]; then mkdir -p $(exec_prefix); fi
+ -@if [ ! -d $(includedir) ]; then mkdir -p $(includedir); fi
+ -@if [ ! -d $(libdir) ]; then mkdir -p $(libdir); fi
+ -@if [ ! -d $(man3dir) ]; then mkdir -p $(man3dir); fi
cp zlib.h zconf.h $(includedir)
chmod 644 $(includedir)/zlib.h $(includedir)/zconf.h
cp $(LIBS) $(libdir)
@@ -119,7 +120,8 @@ uninstall:
mostlyclean: clean
clean:
- rm -f *.o *~ example minigzip libz.* foo.gz so_locations \
+ rm -f *.o *~ example$(EXE) minigzip$(EXE) \
+ libz.* foo.gz so_locations \
_match.s maketree contrib/infback9/*.o
maintainer-clean: distclean