-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (17 loc) · 569 Bytes
/
Makefile
File metadata and controls
24 lines (17 loc) · 569 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
CC = clang
CFLAGS = -O3 -march=native -DNDEBUG -fomit-frame-pointer -funroll-loops -fno-tree-vectorize -fwrapv -fno-strict-aliasing -fPIC -I/usr/local/include
LDFLAGS = -L/usr/local/lib -lm -lgmp
LIBNAME = liborisign.a
SRCS = globals.c fips202.c randombytes.c
OBJS = $(SRCS:.c=.o)
all: $(LIBNAME)
$(LIBNAME): $(OBJS)
ar rcs $@ $^
@echo "Library $(LIBNAME) created."
orisign: orisign.c $(LIBNAME)
bear -- $(CC) $(CFLAGS) orisign.c -L. -lorisign $(LDFLAGS) -o orisign
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
@rm -rf *.o $(LIBNAME) orisign
@echo "Clean!"