diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:17:33 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:17:33 -0700 |
commit | 7850e4e406dce1f7a819297eeb151d1ca18e7cd9 (patch) | |
tree | d4befddacae46b06c4924193904de533099610b4 /msdos/Makefile.dj2 | |
parent | ebd3c2c0e734fc99a1360014ea52ed04fe6aade4 (diff) | |
download | zlib-1.0.7.tar.gz zlib-1.0.7.tar.bz2 zlib-1.0.7.zip |
zlib 1.0.7v1.0.7
Diffstat (limited to '')
-rw-r--r-- | msdos/Makefile.dj2 (renamed from Makefile.dj2) | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/Makefile.dj2 b/msdos/Makefile.dj2 index 398f28b..0ab431c 100644 --- a/Makefile.dj2 +++ b/msdos/Makefile.dj2 | |||
@@ -1,5 +1,5 @@ | |||
1 | # Makefile for zlib. Modified for djgpp v2.0 by F. J. Donahoe, 3/15/96. | 1 | # Makefile for zlib. Modified for djgpp v2.0 by F. J. Donahoe, 3/15/96. |
2 | # Copyright (C) 1995-1996 Jean-loup Gailly. | 2 | # Copyright (C) 1995-1998 Jean-loup Gailly. |
3 | # For conditions of distribution and use, see copyright notice in zlib.h | 3 | # For conditions of distribution and use, see copyright notice in zlib.h |
4 | 4 | ||
5 | # To compile, or to compile and test, type: | 5 | # To compile, or to compile and test, type: |
@@ -22,7 +22,8 @@ | |||
22 | # - - - - - | 22 | # - - - - - |
23 | # Alternately, these variables may be defined below, overriding the values | 23 | # Alternately, these variables may be defined below, overriding the values |
24 | # in djgpp.env, as | 24 | # in djgpp.env, as |
25 | INCLUDE_PATH=c:\usr\include | 25 | # INCLUDE_PATH=c:\usr\include |
26 | # LIBRARY_PATH=c:\usr\lib | ||
26 | 27 | ||
27 | CC=gcc | 28 | CC=gcc |
28 | 29 | ||
@@ -32,12 +33,12 @@ CC=gcc | |||
32 | CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ | 33 | CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ |
33 | -Wstrict-prototypes -Wmissing-prototypes | 34 | -Wstrict-prototypes -Wmissing-prototypes |
34 | 35 | ||
35 | # If cp.exe is not found, replace with copy /Y . | 36 | # If cp.exe is available, replace "copy /Y" with "cp -fp" . |
36 | CP=cp -f | 37 | CP=copy /Y |
37 | # If install.exe is not found, replace with $(CP). | 38 | # If gnu install.exe is available, replace $(CP) with ginstall. |
38 | INSTALL=install | 39 | INSTALL=$(CP) |
39 | # The default value of RM is "rm -f." If "rm.exe" is not found, uncomment: | 40 | # The default value of RM is "rm -f." If "rm.exe" is found, comment out: |
40 | # RM=del | 41 | RM=del |
41 | LDLIBS=-L. -lz | 42 | LDLIBS=-L. -lz |
42 | LD=$(CC) -s -o | 43 | LD=$(CC) -s -o |
43 | LDSHARED=$(CC) | 44 | LDSHARED=$(CC) |
@@ -77,15 +78,21 @@ libz.a: $(OBJS) | |||
77 | install: $(INCL) $(LIBS) | 78 | install: $(INCL) $(LIBS) |
78 | -@if not exist $(INCLUDE_PATH)\nul mkdir $(INCLUDE_PATH) | 79 | -@if not exist $(INCLUDE_PATH)\nul mkdir $(INCLUDE_PATH) |
79 | -@if not exist $(LIBRARY_PATH)\nul mkdir $(LIBRARY_PATH) | 80 | -@if not exist $(LIBRARY_PATH)\nul mkdir $(LIBRARY_PATH) |
80 | for %%f in ($(INCL)) do $(INSTALL) %%f $(INCLUDE_PATH) | 81 | $(INSTALL) zlib.h $(INCLUDE_PATH) |
81 | for %%p in ($(LIBS)) do $(INSTALL) %%p $(LIBRARY_PATH) | 82 | $(INSTALL) zconf.h $(INCLUDE_PATH) |
83 | $(INSTALL) libz.a $(LIBRARY_PATH) | ||
82 | 84 | ||
83 | uninstall: | 85 | uninstall: |
84 | for %%f in ($(INCL)) do $(RM) $(INCLUDE_PATH)\%%f | 86 | $(RM) $(INCLUDE_PATH)\zlib.h |
85 | for %%p in ($(LIBS)) do $(RM) $(LIBRARY_PATH)\%%p | 87 | $(RM) $(INCLUDE_PATH)\zconf.h |
88 | $(RM) $(LIBRARY_PATH)\libz.a | ||
86 | 89 | ||
87 | clean: | 90 | clean: |
88 | for %%p in (*.d *.o *.exe libz.a libz.so* foo.gz) do $(RM) %%p | 91 | $(RM) *.d |
92 | $(RM) *.o | ||
93 | $(RM) *.exe | ||
94 | $(RM) libz.a | ||
95 | $(RM) foo.gz | ||
89 | 96 | ||
90 | DEPS := $(wildcard *.d) | 97 | DEPS := $(wildcard *.d) |
91 | ifneq ($(DEPS),) | 98 | ifneq ($(DEPS),) |