diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-07-29 20:01:23 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-08-07 19:15:59 +0200 |
commit | 05235802f7ae8fb1df952d28629dea26af5f1436 (patch) | |
tree | 68000e8b17e2d5e590616d26d71dc6f26108ccfc /source4/lib/zlib/win32/Makefile.emx | |
parent | 8275d511bc3ea79a14a4704b7d914222adc2d321 (diff) | |
download | samba-05235802f7ae8fb1df952d28629dea26af5f1436.tar.gz samba-05235802f7ae8fb1df952d28629dea26af5f1436.tar.bz2 samba-05235802f7ae8fb1df952d28629dea26af5f1436.zip |
import of zlib-1.2.3
We want to use zlib for the mszip ndr (de)compression
later, we'll need to add some new functions to zlib.
metze
(This used to be commit 65c9e91a1bb24851a030a304d011558562cc50d6)
Diffstat (limited to 'source4/lib/zlib/win32/Makefile.emx')
-rw-r--r-- | source4/lib/zlib/win32/Makefile.emx | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/source4/lib/zlib/win32/Makefile.emx b/source4/lib/zlib/win32/Makefile.emx new file mode 100644 index 0000000000..7b08424ced --- /dev/null +++ b/source4/lib/zlib/win32/Makefile.emx @@ -0,0 +1,69 @@ +# Makefile for zlib. Modified for emx/rsxnt by Chr. Spieler, 6/16/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 -Zwin32 + +#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 gzio.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 |