URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [zlib/] [win32/] [Makefile.gcc] - Rev 745
Compare with Previous | Blame | View Log
# Makefile for zlib, derived from Makefile.dj2.# Modified for mingw32 by C. Spieler, 6/16/98.# Updated for zlib 1.2.x by Christian Spieler and Cosmin Truta, Mar-2003.# Last updated: 1-Aug-2003.# Tested under Cygwin and MinGW.# Copyright (C) 1995-2003 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.gcc; make test testdll -fmakefile.gcc## To use the asm code, type:# cp contrib/asm?86/match.S ./match.S# make LOC=-DASMV OBJA=match.o -fmakefile.gcc## To install libz.a, zconf.h and zlib.h in the system directories, type:## make install -fmakefile.gcc# Note:# If the platform is *not* MinGW (e.g. it is Cygwin or UWIN),# the DLL name should be changed from "zlib1.dll".STATICLIB = libz.aSHAREDLIB = zlib1.dllIMPLIB = libzdll.a#LOC = -DASMV#LOC = -DDEBUG -gCC = gccCFLAGS = $(LOC) -O3 -WallAS = $(CC)ASFLAGS = $(LOC) -WallLD = $(CC)LDFLAGS = $(LOC) -sAR = arARFLAGS = rcsRC = windresRCFLAGS = --define GCC_WINDRESCP = cp -fp# If GNU install is available, replace $(CP) with install.INSTALL = $(CP)RM = rm -fprefix = /usr/localexec_prefix = $(prefix)OBJS = adler32.o compress.o crc32.o deflate.o gzio.o infback.o \inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.oOBJA =all: $(STATICLIB) $(SHAREDLIB) $(IMPLIB) example minigzip example_d minigzip_dtest: example minigzip./exampleecho hello world | ./minigzip | ./minigzip -dtestdll: example_d minigzip_d./example_decho hello world | ./minigzip_d | ./minigzip_d -d.c.o:$(CC) $(CFLAGS) -c -o $@ $<.S.o:$(AS) $(ASFLAGS) -c -o $@ $<$(STATICLIB): $(OBJS) $(OBJA)$(AR) $(ARFLAGS) $@ $(OBJS) $(OBJA)$(IMPLIB): $(SHAREDLIB)$(SHAREDLIB): win32/zlib.def $(OBJS) $(OBJA) zlibrc.odllwrap --driver-name $(CC) --def win32/zlib.def \--implib $(IMPLIB) -o $@ $(OBJS) $(OBJA) zlibrc.ostrip $@example: example.o $(STATICLIB)$(LD) $(LDFLAGS) -o $@ example.o $(STATICLIB)minigzip: minigzip.o $(STATICLIB)$(LD) $(LDFLAGS) -o $@ minigzip.o $(STATICLIB)example_d: example.o $(IMPLIB)$(LD) $(LDFLAGS) -o $@ example.o $(IMPLIB)minigzip_d: minigzip.o $(IMPLIB)$(LD) $(LDFLAGS) -o $@ minigzip.o $(IMPLIB)zlibrc.o: win32/zlib1.rc$(RC) $(RCFLAGS) -o $@ win32/zlib1.rc# INCLUDE_PATH and LIBRARY_PATH must be set..PHONY: install uninstall cleaninstall: zlib.h zconf.h $(LIB)-@if not exist $(INCLUDE_PATH)/nul mkdir $(INCLUDE_PATH)-@if not exist $(LIBRARY_PATH)/nul mkdir $(LIBRARY_PATH)-$(INSTALL) zlib.h $(INCLUDE_PATH)-$(INSTALL) zconf.h $(INCLUDE_PATH)-$(INSTALL) $(STATICLIB) $(LIBRARY_PATH)-$(INSTALL) $(IMPLIB) $(LIBRARY_PATH)uninstall:-$(RM) $(INCLUDE_PATH)/zlib.h-$(RM) $(INCLUDE_PATH)/zconf.h-$(RM) $(LIBRARY_PATH)/$(STATICLIB)-$(RM) $(LIBRARY_PATH)/$(IMPLIB)clean:-$(RM) $(STATICLIB)-$(RM) $(SHAREDLIB)-$(RM) $(IMPLIB)-$(RM) *.o-$(RM) *.exe-$(RM) foo.gzadler32.o: zlib.h zconf.hcompress.o: zlib.h zconf.hcrc32.o: crc32.h zlib.h zconf.hdeflate.o: deflate.h zutil.h zlib.h zconf.hexample.o: zlib.h zconf.hgzio.o: zutil.h zlib.h zconf.hinffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.hinflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.hinfback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.hinftrees.o: zutil.h zlib.h zconf.h inftrees.hminigzip.o: zlib.h zconf.htrees.o: deflate.h zutil.h zlib.h zconf.h trees.huncompr.o: zlib.h zconf.hzutil.o: zutil.h zlib.h zconf.h
