-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (37 loc) · 1.54 KB
/
Makefile
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
CC=gcc
RM=rm -f
# fave ..
CFLAGS=-Wextra -Wall -Werror -O2 -funroll-loops -march=native -flto -pipe -minline-all-stringops -Wmaybe-uninitialized
LDFLAGS=-flto -lm
#debug
#CFLAGS=-g -Wall -Werror
# -Wextra
#LDFLAGS=-lm
#CFLAGS=-Werror=implicit-function-declaration -Werror=implicit-fallthrough=3 -Werror=maybe-uninitialized -Werror=missing-field-initializers -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=redundant-decls -Werror=parentheses -Wformat-nonliteral -Wformat-security -Wformat -Winit-self -Wmaybe-uninitialized -Wold-style-definition -Wredundant-decls -Wstrict-prototypes -O2 -funroll-loops -march=native -flto -pipe -minline-all-stringops
#debug
#CFLAGS=-g -fstack-protector -D_FORTIFY_SOURCE=2 -Wall
#LDFLAGS=-lm
#CFLAGS=-Wextra -Wall -Ofast -fomit-frame-pointer -march=native -flto -funroll-loops -pipe
#CFLAGS=-Wall -g -O2 -march=native -flto -pipe
#LDFLAGS=-flto
#CFLAGS=-Wall -O2
#LDFLAGS=
#CFLAGS=-g -pg -O3 -DL2PUSETHREADS=1 -Wall
#LDFLAGS=-pg
#CFLAGS=-Ofast -fprofile-generate -fomit-frame-pointer -march=native -flto -funroll-loops
#LDFLAGS=-flto -fprofile-generate
#CFLAGS=-Ofast -fprofile-use -fomit-frame-pointer -march=native -flto -funroll-loops
#LDFLAGS=-flto -fprofile-use
LDLIBS=-lm -lpthread
SRCS=l2p.c pwgenes.c l2pstats.c utilfuncs.c mitlicstats.c
OBJS=$(subst .c,.o,$(SRCS))
all: l2p
#
l2p: $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -o l2p $(OBJS) $(LDLIBS)
l2p.o: small.h pathworks.h l2p.c utilfuncs.c
pwgenes.o: small.h pathworks.h pwgenes.c
clean:
$(RM) $(OBJS)
distclean: clean
$(RM) l2psmall