Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1.  
  2. LIBRARY= libpng
  3.  
  4. CC=gcc
  5. CPP=gcc -E
  6. AR= ar rc
  7.  
  8. CFLAGS = -c -O2 -fomit-frame-pointer
  9.  
  10. DEFS = -DHAVE_CONFIG_H
  11.  
  12. LIBPNG_DEFINES = -DPNG_CONFIGURE_LIBPNG
  13.  
  14. DEFINES= $(DEFS) $(LIBPNG_DEFINES)
  15.  
  16. INCLUDES= -I../newlib/include -I../zlib
  17.  
  18.  
  19. SOURCES = png.c pngerror.c pngget.c pngmem.c pngpread.c \
  20.           pngread.c pngrio.c pngrtran.c pngrutil.c      \
  21.           pngset.c pngtrans.c pngwio.c pngwrite.c       \
  22.           pngwtran.c pngwutil.c png.h pngconf.h         \
  23.           pngdebug.h pnginfo.h pngpriv.h pngstruct.h
  24.  
  25.  
  26.  
  27. OBJECTS =  $(patsubst %.c, %.o, $(SOURCES))
  28.  
  29.  
  30. # targets
  31.  
  32.  
  33. all:$(LIBRARY).a
  34.  
  35.  
  36. $(LIBRARY).a: $(OBJECTS) Makefile
  37.         ar cvrs $(LIBRARY).a $(OBJECTS)
  38.  
  39.  
  40. %.o : %.c Makefile
  41.         $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
  42.  
  43.  
  44.  
  45.