]> git.ipfire.org Git - people/ms/strongswan.git/blob - lib/libcrypto/libtwofish/Makefile
714fd6115fcfb73e329a53989e662d4541be8897
[people/ms/strongswan.git] / lib / libcrypto / libtwofish / Makefile
1 CFLAGS=-O3 -fomit-frame-pointer -D__KERNEL__ -Wall $(EXTRA_CFLAGS)
2 INC=-I../include
3
4 LIBOBJ=twofish.o twofish_cbc.o
5 BLIB=libtwofish.a
6
7 .c.o:
8 $(CC) $(CPPFLAGS) $(CFLAGS) $(INC) -c $< -o $@
9
10 $(BLIB): $(LIBOBJ)
11 /bin/rm -f $(BLIB)
12 ar cr $(BLIB) $(LIBOBJ)
13 -if test -s /bin/ranlib; then /bin/ranlib $(BLIB); \
14 else if test -s /usr/bin/ranlib; then /usr/bin/ranlib $(BLIB); \
15 else exit 0; fi; fi
16
17 test: test_main.o $(BLIB)
18 $(CC) -o $@ $^
19
20 clean:
21 rm -f *.[oa] core $(TARGET) test