#
# Makefile for the ipsec 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 definition is now in the main makefile...

all: blowfish.o

BF_OBJS := blowfishcbc.o bf_skey.o bx86unix.o

include $(TOPDIR)/Rules.make

ifeq ($(CONFIG_BINFMT_ELF),y)
bx86unix.o: bx86unix.cpp bx86-cpp.S
	gcc -E -DELF bx86unix.cpp | as -o bx86unix.o
else
bx86unix.o: bx86unix.cpp bx86-cpp.S
	gcc -E -DOUT bx86unix.cpp | as -o bx86unix.o
endif

blowfish.o: $(BF_OBJS)
	$(LD) $(LD_RFLAG) -r -o $@ $(BF_OBJS)
