]> git.ipfire.org Git - people/ms/strongswan.git/blob - lib/libcrypto/libsha2/Makefile
- import of strongswan-2.7.0
[people/ms/strongswan.git] / lib / libcrypto / libsha2 / Makefile
1 CFLAGS=-O3 -fomit-frame-pointer -I../include $(EXTRA_CFLAGS)
2
3 LIBOBJ := hmac_sha2.o sha2.o
4
5 BLIB := libsha2.a
6
7 .S.o:
8 $(CC) $(AFLAGS) -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