X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=zlib%2Fmsdos%2FMakefile.dj2;h=283d1d961604b61b875f175ad0b1d31cb515dabe;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=0ab431c8a118ea61b9c7a61864402681fa6c9f8f;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/zlib/msdos/Makefile.dj2 b/zlib/msdos/Makefile.dj2 index 0ab431c8..283d1d96 100644 --- a/zlib/msdos/Makefile.dj2 +++ b/zlib/msdos/Makefile.dj2 @@ -1,15 +1,15 @@ # Makefile for zlib. Modified for djgpp v2.0 by F. J. Donahoe, 3/15/96. # Copyright (C) 1995-1998 Jean-loup Gailly. -# For conditions of distribution and use, see copyright notice in zlib.h +# For conditions of distribution and use, see copyright notice in zlib.h # To compile, or to compile and test, type: -# +# # make -fmakefile.dj2; make test -fmakefile.dj2 -# +# # To install libz.a, zconf.h and zlib.h in the djgpp directories, type: -# +# # make install -fmakefile.dj2 -# +# # after first defining LIBRARY_PATH and INCLUDE_PATH in djgpp.env as # in the sample below if the pattern of the DJGPP distribution is to # be followed. Remember that, while 'es around <=> are ignored in @@ -52,21 +52,25 @@ prefix=/usr/local exec_prefix = $(prefix) OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \ - zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o + zutil.o inflate.o infback.o inftrees.o inffast.o + +OBJA = +# to use the asm code: make OBJA=match.o TEST_OBJS = example.o minigzip.o all: example.exe minigzip.exe +check: test test: all ./example - echo hello world | .\minigzip | .\minigzip -d + echo hello world | .\minigzip | .\minigzip -d %.o : %.c $(CC) $(CFLAGS) -c $< -o $@ -libz.a: $(OBJS) - $(AR) $@ $(OBJS) +libz.a: $(OBJS) $(OBJA) + $(AR) $@ $(OBJS) $(OBJA) %.exe : %.o $(LIBS) $(LD) $@ $< $(LDLIBS)