#
# Makefile for the linux compression routines.
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#
# Note 2! The CFLAGS definitions are now in the main makefile...

.S.o:
	$(CC) $(AFLAGS) -traditional -c $< -o $*.o

O_TARGET := gzip.o
obj-y    := e2compr_gzip.o deflate.o trees.o \
            inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o
ifeq ($(CONFIG_EXT2_COMPR_X86_CODE),y)
  ifdef CONFIG_M586
  obj-y += match586.o
  endif
  ifdef CONFIG_M586TSC
  obj-y += match586.o
  endif
  ifdef CONFIG_M686
  obj-y += match686.o
  endif
endif
obj-m   := $(O_TARGET)

include $(TOPDIR)/Rules.make

