Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. # Makefile for zlib
  2. # Copyright (C) 1995-2010 Jean-loup Gailly.
  3. # For conditions of distribution and use, see copyright notice in zlib.h
  4.  
  5.  
  6. CC=gcc
  7. CPP=gcc -E
  8.  
  9. CFLAGS= -O3 -c -fomit-frame-pointer
  10.  
  11. INCLUDES= -I../newlib/include
  12.  
  13.  
  14. STATICLIB=libz.a
  15. LIBS=$(STATICLIB) $(SHAREDLIBV)
  16.  
  17. AR=ar rc
  18.  
  19. OBJC =  adler32.o compress.o crc32.o deflate.o          \
  20.         gzclose.o gzlib.o gzread.o gzwrite.o            \
  21.         infback.o inffast.o inflate.o inftrees.o        \
  22.         trees.o uncompr.o zutil.o
  23.  
  24.  
  25. # to use the asm code: make OBJA=match.o, PIC_OBJA=match.lo
  26. OBJA =
  27.  
  28. OBJS = $(OBJC) $(OBJA)
  29.  
  30. all: libz.a
  31.  
  32. libz.a: $(OBJS)
  33.         $(AR) $@ $(OBJS)
  34.  
  35. %.o: %.c Makefile
  36.         $(CC) $(CFLAGS) $(INCLUDES) -o $@ $<
  37.  
  38.  
  39.