diff options
author | Eric Norum <WENorum@lbl.gov> | 2003-05-27 21:27:32 +0000 |
---|---|---|
committer | Eric Norum <WENorum@lbl.gov> | 2003-05-27 21:27:32 +0000 |
commit | 638e53ff239fdc0ae65d88dc196a507dd0642f14 (patch) | |
tree | 664e5dea7db53fc4b904c158f24f9fd5f22485fb /zlib-1.1.4/contrib/untgz/makefile.w32 | |
parent | Add zlib to RTEMS add-ons. (diff) | |
download | rtems-addon-packages-638e53ff239fdc0ae65d88dc196a507dd0642f14.tar.bz2 |
Add zlib to RTEMS add-ons
Diffstat (limited to 'zlib-1.1.4/contrib/untgz/makefile.w32')
-rw-r--r-- | zlib-1.1.4/contrib/untgz/makefile.w32 | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/zlib-1.1.4/contrib/untgz/makefile.w32 b/zlib-1.1.4/contrib/untgz/makefile.w32 new file mode 100644 index 0000000..c99dc28 --- /dev/null +++ b/zlib-1.1.4/contrib/untgz/makefile.w32 @@ -0,0 +1,63 @@ +# Makefile for zlib. Modified for mingw32 +# For conditions of distribution and use, see copyright notice in zlib.h + +# To compile, +# +# make -fmakefile.w32 +# + +CC=gcc + +# Generate dependencies (see end of the file) + +CPPFLAGS=-MMD + +#CFLAGS=-MMD -O +#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 +#CFLAGS=-MMD -g -DDEBUG +CFLAGS=-O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ + -Wstrict-prototypes -Wmissing-prototypes + +# If cp.exe is not found, replace with copy /Y . +CP=cp -f + +# The default value of RM is "rm -f." +# If "rm.exe" is not found, uncomment: +# RM=del + +LD=gcc +LDLIBS=-L. -lz +LDFLAGS=-s + + +INCL=zlib.h zconf.h +LIBS=libz.a + +AR=ar rcs + +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 + +TEST_OBJS = minigzip.o untgz.o + +all: minigzip.exe untgz.exe + +rebuild: clean all + +libz.a: $(OBJS) + $(AR) $@ $(OBJS) + +%.exe : %.o $(LIBS) + $(LD) $(LDFLAGS) -o $@ $< $(LDLIBS) + +.PHONY : clean + +clean: + $(RM) *.d *.o *.exe libz.a foo.gz + +DEPS := $(wildcard *.d) +ifneq ($(DEPS),) +include $(DEPS) +endif + |