diff options
Diffstat (limited to '')
-rw-r--r-- | msdos/Makefile.dj2 (renamed from old/msdos/Makefile.dj2) | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/old/msdos/Makefile.dj2 b/msdos/Makefile.dj2 index 0ab431c..283d1d9 100644 --- a/old/msdos/Makefile.dj2 +++ b/msdos/Makefile.dj2 | |||
@@ -1,15 +1,15 @@ | |||
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-1998 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: |
6 | # | 6 | # |
7 | # make -fmakefile.dj2; make test -fmakefile.dj2 | 7 | # make -fmakefile.dj2; make test -fmakefile.dj2 |
8 | # | 8 | # |
9 | # To install libz.a, zconf.h and zlib.h in the djgpp directories, type: | 9 | # To install libz.a, zconf.h and zlib.h in the djgpp directories, type: |
10 | # | 10 | # |
11 | # make install -fmakefile.dj2 | 11 | # make install -fmakefile.dj2 |
12 | # | 12 | # |
13 | # after first defining LIBRARY_PATH and INCLUDE_PATH in djgpp.env as | 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 | 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 | 15 | # be followed. Remember that, while <sp>'es around <=> are ignored in |
@@ -52,21 +52,25 @@ prefix=/usr/local | |||
52 | exec_prefix = $(prefix) | 52 | exec_prefix = $(prefix) |
53 | 53 | ||
54 | OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \ | 54 | OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \ |
55 | zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o | 55 | zutil.o inflate.o infback.o inftrees.o inffast.o |
56 | |||
57 | OBJA = | ||
58 | # to use the asm code: make OBJA=match.o | ||
56 | 59 | ||
57 | TEST_OBJS = example.o minigzip.o | 60 | TEST_OBJS = example.o minigzip.o |
58 | 61 | ||
59 | all: example.exe minigzip.exe | 62 | all: example.exe minigzip.exe |
60 | 63 | ||
64 | check: test | ||
61 | test: all | 65 | test: all |
62 | ./example | 66 | ./example |
63 | echo hello world | .\minigzip | .\minigzip -d | 67 | echo hello world | .\minigzip | .\minigzip -d |
64 | 68 | ||
65 | %.o : %.c | 69 | %.o : %.c |
66 | $(CC) $(CFLAGS) -c $< -o $@ | 70 | $(CC) $(CFLAGS) -c $< -o $@ |
67 | 71 | ||
68 | libz.a: $(OBJS) | 72 | libz.a: $(OBJS) $(OBJA) |
69 | $(AR) $@ $(OBJS) | 73 | $(AR) $@ $(OBJS) $(OBJA) |
70 | 74 | ||
71 | %.exe : %.o $(LIBS) | 75 | %.exe : %.o $(LIBS) |
72 | $(LD) $@ $< $(LDLIBS) | 76 | $(LD) $@ $< $(LDLIBS) |