diff options
author | Shigeki Ohtsu <ohtsu@iij.ad.jp> | 2014-12-02 15:28:24 -0800 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2015-01-08 23:59:53 +0100 |
commit | 50f12f6c8a5870bf6bddc715326251f2475f327f (patch) | |
tree | 424cc18a085518dcab045dad66a2d80fb46dd63f /deps/zlib/msdos/Makefile.emx | |
parent | e79ccee1685393e4ec73746bac93835cbcf3a809 (diff) | |
download | node-new-50f12f6c8a5870bf6bddc715326251f2475f327f.tar.gz |
deps: upgrade zlib to 1.2.8
Reviewed-By: Bert Belder <bertbelder@gmail.com>
Diffstat (limited to 'deps/zlib/msdos/Makefile.emx')
-rw-r--r-- | deps/zlib/msdos/Makefile.emx | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/deps/zlib/msdos/Makefile.emx b/deps/zlib/msdos/Makefile.emx new file mode 100644 index 0000000000..9c1b57a585 --- /dev/null +++ b/deps/zlib/msdos/Makefile.emx @@ -0,0 +1,69 @@ +# Makefile for zlib. Modified for emx 0.9c by Chr. Spieler, 6/17/98. +# Copyright (C) 1995-1998 Jean-loup Gailly. +# For conditions of distribution and use, see copyright notice in zlib.h + +# To compile, or to compile and test, type: +# +# make -fmakefile.emx; make test -fmakefile.emx +# + +CC=gcc + +#CFLAGS=-MMD -O +#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 +#CFLAGS=-MMD -g -DDEBUG +CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ + -Wstrict-prototypes -Wmissing-prototypes + +# If cp.exe is available, replace "copy /Y" with "cp -fp" . +CP=copy /Y +# If gnu install.exe is available, replace $(CP) with ginstall. +INSTALL=$(CP) +# The default value of RM is "rm -f." If "rm.exe" is found, comment out: +RM=del +LDLIBS=-L. -lzlib +LD=$(CC) -s -o +LDSHARED=$(CC) + +INCL=zlib.h zconf.h +LIBS=zlib.a + +AR=ar rcs + +prefix=/usr/local +exec_prefix = $(prefix) + +OBJS = adler32.o compress.o crc32.o gzclose.o gzlib.o gzread.o gzwrite.o \ + uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o + +TEST_OBJS = example.o minigzip.o + +all: example.exe minigzip.exe + +test: all + ./example + echo hello world | .\minigzip | .\minigzip -d + +%.o : %.c + $(CC) $(CFLAGS) -c $< -o $@ + +zlib.a: $(OBJS) + $(AR) $@ $(OBJS) + +%.exe : %.o $(LIBS) + $(LD) $@ $< $(LDLIBS) + + +.PHONY : clean + +clean: + $(RM) *.d + $(RM) *.o + $(RM) *.exe + $(RM) zlib.a + $(RM) foo.gz + +DEPS := $(wildcard *.d) +ifneq ($(DEPS),) +include $(DEPS) +endif |