blob: 8d8b2f5f0f7a29e1f5b7273137dd683b90e905c2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
.NONPOSIX:
CONFIGFILE = config.mk
LIB_MAJOR = 1
LIB_MINOR = 0
LIB_VERSION = $(LIB_MAJOR).$(LIB_MINOR)
LIBEXT = so
LIBFLAGS = -shared -Wl,-soname,libsha2.$(LIBEXT).$(LIB_MAJOR)
include $(CONFIGFILE)
HDR =\
libsha2.h\
common.h
OBJ =\
algorithm_output_size.o\
behex_lower.o\
behex_upper.o\
digest.o\
init.o\
marshal.o\
state_output_size.o\
sum_fd.o\
unhex.o\
unmarshal.o\
update.o\
MAN0 =\
libsha2.h.0
MAN3 =\
libsha2_algorithm_output_size.3\
libsha2_behex_lower.3\
libsha2_behex_upper.3\
libsha2_digest.3\
libsha2_marshal.3\
libsha2_init.3\
libsha2_state_output_size.3\
libsha2_sum_fd.3\
libsha2_unhex.3\
libsha2_unmarshal.3\
libsha2_update.3
all: libsha2.a libsha2.$(LIBEXT)
$(OBJ): $(@:.o=.c) $(HDR)
$(OBJ:.o=.lo): $(@:.lo=.c) $(HDR)
.c.o:
$(CC) -c -o $@ $< $(CFLAGS)
.c.lo:
$(CC) -fPIC -c -o $@ $< $(CFLAGS)
libsha2.$(LIBEXT): $(OBJ:.o=.lo)
$(CC) $(LIBFLAGS) -o $@ $(OBJ) $(LDFLAGS)
libsha2.a: $(OBJ)
-rm -f -- $@
$(AR) rc $@ $?
$(AR) -s $@
clean:
-rm -f -- *.o *.lo *.su *.a *.so
.SUFFIXES:
.SUFFIXES: .lo .o .c
.PHONY: all check install uninstall clean
|