Home | History | Annotate | Download | only in zlib-1.2.3
      1 # Makefile used to compile zlib statically
      2 #
      3 ZLIB_LIB    := $(SRC_PATH)/libz.a
      4 ZLIB_CFLAGS := -I$(ZLIB_DIR) $(MY_CFLAGS)
      5 
      6 include $(ZLIB_DIR)/sources.make
      7 ZLIB_OBJS := $(ZLIB_SOURCES:%.c=%.o)
      8 
      9 $(ZLIB_LIB): $(ZLIB_OBJS)
     10 	ar ru $(ZLIB_LIB) $(MY_LDLIBS) $(ZLIB_OBJS)
     11 
     12 $(ZLIB_OBJS): CFLAGS += $(ZLIB_CFLAGS)
     13 
     14 clean-zlib:
     15 	rm -f $(ZLIB_OBJS) $(zlib_lib)
     16