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 /Makefile.dj2 | |
parent | ebd3c2c0e734fc99a1360014ea52ed04fe6aade4 (diff) | |
download | zlib-7850e4e406dce1f7a819297eeb151d1ca18e7cd9.tar.gz zlib-7850e4e406dce1f7a819297eeb151d1ca18e7cd9.tar.bz2 zlib-7850e4e406dce1f7a819297eeb151d1ca18e7cd9.zip |
zlib 1.0.7v1.0.7
Diffstat (limited to 'Makefile.dj2')
-rw-r--r-- | Makefile.dj2 | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/Makefile.dj2 b/Makefile.dj2 deleted file mode 100644 index 398f28b..0000000 --- a/Makefile.dj2 +++ /dev/null | |||
@@ -1,93 +0,0 @@ | |||
1 | # Makefile for zlib. Modified for djgpp v2.0 by F. J. Donahoe, 3/15/96. | ||
2 | # Copyright (C) 1995-1996 Jean-loup Gailly. | ||
3 | # For conditions of distribution and use, see copyright notice in zlib.h | ||
4 | |||
5 | # To compile, or to compile and test, type: | ||
6 | # | ||
7 | # make -fmakefile.dj2; make test -fmakefile.dj2 | ||
8 | # | ||
9 | # To install libz.a, zconf.h and zlib.h in the djgpp directories, type: | ||
10 | # | ||
11 | # make install -fmakefile.dj2 | ||
12 | # | ||
13 | # after first defining LIBRARY_PATH and INCLUDE_PATH in djgpp.env as | ||
14 | # in the sample below if the pattern of the DJGPP distribution is to | ||
15 | # be followed. Remember that, while <sp>'es around <=> are ignored in | ||
16 | # makefiles, they are *not* in batch files or in djgpp.env. | ||
17 | # - - - - - | ||
18 | # [make] | ||
19 | # INCLUDE_PATH=%\>;INCLUDE_PATH%%\DJDIR%\include | ||
20 | # LIBRARY_PATH=%\>;LIBRARY_PATH%%\DJDIR%\lib | ||
21 | # BUTT=-m486 | ||
22 | # - - - - - | ||
23 | # Alternately, these variables may be defined below, overriding the values | ||
24 | # in djgpp.env, as | ||
25 | INCLUDE_PATH=c:\usr\include | ||
26 | |||
27 | CC=gcc | ||
28 | |||
29 | #CFLAGS=-MMD -O | ||
30 | #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 | ||
31 | #CFLAGS=-MMD -g -DDEBUG | ||
32 | CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ | ||
33 | -Wstrict-prototypes -Wmissing-prototypes | ||
34 | |||
35 | # If cp.exe is not found, replace with copy /Y . | ||
36 | CP=cp -f | ||
37 | # If install.exe is not found, replace with $(CP). | ||
38 | INSTALL=install | ||
39 | # The default value of RM is "rm -f." If "rm.exe" is not found, uncomment: | ||
40 | # RM=del | ||
41 | LDLIBS=-L. -lz | ||
42 | LD=$(CC) -s -o | ||
43 | LDSHARED=$(CC) | ||
44 | |||
45 | INCL=zlib.h zconf.h | ||
46 | LIBS=libz.a | ||
47 | |||
48 | AR=ar rcs | ||
49 | |||
50 | prefix=/usr/local | ||
51 | exec_prefix = $(prefix) | ||
52 | |||
53 | OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \ | ||
54 | zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o | ||
55 | |||
56 | TEST_OBJS = example.o minigzip.o | ||
57 | |||
58 | all: example.exe minigzip.exe | ||
59 | |||
60 | test: all | ||
61 | ./example | ||
62 | echo hello world | .\minigzip | .\minigzip -d | ||
63 | |||
64 | %.o : %.c | ||
65 | $(CC) $(CFLAGS) -c $< -o $@ | ||
66 | |||
67 | libz.a: $(OBJS) | ||
68 | $(AR) $@ $(OBJS) | ||
69 | |||
70 | %.exe : %.o $(LIBS) | ||
71 | $(LD) $@ $< $(LDLIBS) | ||
72 | |||
73 | # INCLUDE_PATH and LIBRARY_PATH were set for [make] in djgpp.env . | ||
74 | |||
75 | .PHONY : uninstall clean | ||
76 | |||
77 | install: $(INCL) $(LIBS) | ||
78 | -@if not exist $(INCLUDE_PATH)\nul mkdir $(INCLUDE_PATH) | ||
79 | -@if not exist $(LIBRARY_PATH)\nul mkdir $(LIBRARY_PATH) | ||
80 | for %%f in ($(INCL)) do $(INSTALL) %%f $(INCLUDE_PATH) | ||
81 | for %%p in ($(LIBS)) do $(INSTALL) %%p $(LIBRARY_PATH) | ||
82 | |||
83 | uninstall: | ||
84 | for %%f in ($(INCL)) do $(RM) $(INCLUDE_PATH)\%%f | ||
85 | for %%p in ($(LIBS)) do $(RM) $(LIBRARY_PATH)\%%p | ||
86 | |||
87 | clean: | ||
88 | for %%p in (*.d *.o *.exe libz.a libz.so* foo.gz) do $(RM) %%p | ||
89 | |||
90 | DEPS := $(wildcard *.d) | ||
91 | ifneq ($(DEPS),) | ||
92 | include $(DEPS) | ||
93 | endif | ||