#   -*-Makefile-*- template for the CIPE kernel module and driver.
#
#   Copyright 1996 Olaf Titz <olaf@bigred.inka.de>
#
#   This program is free software; you can redistribute it and/or
#   modify it under the terms of the GNU General Public License
#   as published by the Free Software Foundation; either version
#   2 of the License, or (at your option) any later version.

L_OBJS :=
M_OBJS :=
O_OBJS := module.o device.o sock.o output.o encaps.o crc32.o bf.o

ifeq ($(ARCH),i386)
O_OBJS += bf-i386.o
endif

O_TARGET :=
ifeq ($(CONFIG_CIPE),y)
  O_TARGET += cipcb.o
else
  ifeq ($(CONFIG_CIPE),m)
    O_TARGET += cipcb.o
    M_OBJS += cipcb.o
  endif
endif

include $(TOPDIR)/Rules.make

ifeq ($(ARCH),i386)
bf-i386.o: bf-i386.S
	$(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<
endif
