CFLAGS=-O3 -omit-frame-pointer -D__KERNEL__ -I../include $(EXTRA_CFLAGS) -Wall
LIBOBJ=serpent.o serpent_cbc.o
BLIB=libserpent.a

$(BLIB): $(LIBOBJ)
	/bin/rm -f $(BLIB)
	ar cr $(BLIB) $(LIBOBJ)
	-if test -s /bin/ranlib; then /bin/ranlib $(BLIB); \
	else if test -s /usr/bin/ranlib; then /usr/bin/ranlib $(BLIB); \
	else exit 0; fi; fi

test: test_main.o $(BLIB)
	$(CC) -o $@ $^ 

clean:
	rm -f *.[oa] core $(TARGET) test
