diff options
Diffstat (limited to 'src/libcrypto/libtwofish/Makefile.old')
-rw-r--r-- | src/libcrypto/libtwofish/Makefile.old | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/libcrypto/libtwofish/Makefile.old b/src/libcrypto/libtwofish/Makefile.old new file mode 100644 index 000000000..714fd6115 --- /dev/null +++ b/src/libcrypto/libtwofish/Makefile.old @@ -0,0 +1,21 @@ +CFLAGS=-O3 -fomit-frame-pointer -D__KERNEL__ -Wall $(EXTRA_CFLAGS) +INC=-I../include + +LIBOBJ=twofish.o twofish_cbc.o +BLIB=libtwofish.a + +.c.o: + $(CC) $(CPPFLAGS) $(CFLAGS) $(INC) -c $< -o $@ + +$(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 |