summaryrefslogtreecommitdiff
path: root/msdos/Makefile.dj2
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:17:33 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:17:33 -0700
commit7850e4e406dce1f7a819297eeb151d1ca18e7cd9 (patch)
treed4befddacae46b06c4924193904de533099610b4 /msdos/Makefile.dj2
parentebd3c2c0e734fc99a1360014ea52ed04fe6aade4 (diff)
downloadzlib-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
25INCLUDE_PATH=c:\usr\include 25# INCLUDE_PATH=c:\usr\include
26# LIBRARY_PATH=c:\usr\lib
26 27
27CC=gcc 28CC=gcc
28 29
@@ -32,12 +33,12 @@ CC=gcc
32CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ 33CFLAGS=-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" .
36CP=cp -f 37CP=copy /Y
37# If install.exe is not found, replace with $(CP). 38# If gnu install.exe is available, replace $(CP) with ginstall.
38INSTALL=install 39INSTALL=$(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 41RM=del
41LDLIBS=-L. -lz 42LDLIBS=-L. -lz
42LD=$(CC) -s -o 43LD=$(CC) -s -o
43LDSHARED=$(CC) 44LDSHARED=$(CC)
@@ -77,15 +78,21 @@ libz.a: $(OBJS)
77install: $(INCL) $(LIBS) 78install: $(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
83uninstall: 85uninstall:
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
87clean: 90clean:
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
90DEPS := $(wildcard *.d) 97DEPS := $(wildcard *.d)
91ifneq ($(DEPS),) 98ifneq ($(DEPS),)