forked from antirez/smaz
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
98 lines (84 loc) · 2.55 KB
/
Makefile
File metadata and controls
98 lines (84 loc) · 2.55 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
CC=gcc
CFLAGS=-g -fPIC -Wall -O3 -Inacl/include -std=gnu99 -I. -DHAVE_BCOPY=1 -DHAVE_MEMMOVE=1
LIBS=-lm
DEFS=
OBJS= \
smac.o \
\
recipe.o \
xml2recipe.o \
xhtml2recipe.o \
map.o \
dexml.o \
md5.o \
subforms.o \
\
unicode.o \
case.o \
length.o \
lowercasealpha.o \
nonalpha.o \
packedascii.o \
packed_stats.o \
\
charset.o \
entropyutil.o \
\
arithmetic.o \
gsinterpolative.o \
\
visualise.o \
\
crypto.o \
nacl/src/crypto_box_curve25519xsalsa20poly1305_ref/keypair.o \
nacl/src/crypto_box_curve25519xsalsa20poly1305_ref/before.o \
nacl/src/crypto_box_curve25519xsalsa20poly1305_ref/after.o \
nacl/src/crypto_box_curve25519xsalsa20poly1305_ref/box.o \
nacl/src/crypto_core_hsalsa20_ref/core.o \
nacl/src/crypto_scalarmult_curve25519_ref/base.o \
nacl/src/crypto_scalarmult_curve25519_ref/smult.o \
nacl/src/crypto_secretbox_xsalsa20poly1305_ref/box.o \
nacl/src/crypto_onetimeauth_poly1305_ref/auth.o \
nacl/src/crypto_onetimeauth_poly1305_ref/verify.o \
nacl/src/crypto_verify_16_ref/verify.o \
nacl/src/crypto_stream_xsalsa20_ref/xor.o \
nacl/src/crypto_stream_xsalsa20_ref/stream.o \
nacl/src/crypto_core_salsa20_ref/core.o \
nacl/src/crypto_stream_salsa20_ref/xor.o \
nacl/src/crypto_stream_salsa20_ref/stream.o \
\
xmlparse.o \
xmlrole.o \
xmltok_impl.o \
xmltok_ns.o \
xmltok.o \
\
timegm.o
HDRS= charset.h arithmetic.h packed_stats.h unicode.h visualise.h recipe.h subforms.h Makefile
all: smac arithmetic gen_stats gsinterpolative extract_tweets
clean:
rm -rf gen_stats smac *.o
arithmetic: arithmetic.c arithmetic.h
# Build for running tests
gcc $(CFLAGS) $(LIBS) -DTESTMODE -o arithmetic arithmetic.c
extract_tweets: extract_tweets.o
gcc $(CFLAGS) -o extract_tweets extract_tweets.o
gen_stats: gen_stats.o arithmetic.o packed_stats.o gsinterpolative.o charset.o unicode.o
gcc $(CFLAGS) $(LIBS) -o gen_stats gen_stats.o arithmetic.o packed_stats.o gsinterpolative.o charset.o unicode.o
smac: $(OBJS) main.o
gcc $(CFLAGS) $(LIBS) -o smac $(OBJS) main.o
libsmac.a: $(OBJS)
ar rc libsmac.a $(OBJS)
gsinterpolative: gsinterpolative.c arithmetic.o
gcc $(CFLAGS) $(LIBS) -DTESTMODE -o gsinterpolative gsinterpolative.c arithmetic.o
%.o: %.c $(HDRS)
$(CC) $(CFLAGS) $(DEFS) -c $< -o $@
test: gsinterpolative arithmetic smac
./gsinterpolative
./arithmetic
./smac twitter_corpus*.txt
out.odt: content.xml
cp content.xml odt-shell/
cd odt-shell ; zip -r ../out.odt *
extract_instance_with_library: extract_instance_with_library.c Makefile
$(CC) $(CFLAGS) -o extract_instance_with_library extract_instance_with_library.c -lexpat