Added
Link Here
|
1 |
--- Makefile.orig 2018-06-11 02:10:23 UTC |
2 |
+++ Makefile |
3 |
@@ -1,8 +1,7 @@ |
4 |
LIB_NAME = argon2 |
5 |
|
6 |
-CC ?= gcc |
7 |
-LDFLAGS ?= -shared |
8 |
-CFLAGS ?= -O2 -fPIC -ansi -Wall -Werror -Wpedantic |
9 |
+LDFLAGS += -shared |
10 |
+CFLAGS += -fPIC -std=c11 -Wall -Wpedantic |
11 |
|
12 |
PREFIX ?= /usr/local |
13 |
ARGON2_INCDIR ?= $(PREFIX)/include |
14 |
@@ -17,7 +16,7 @@ BUILD_LDFLAGS = -L$(ARGON2_LIBDIR) -largon2 |
15 |
all: $(LIB_NAME).so |
16 |
|
17 |
$(LIB_NAME).so: $(LIB_NAME).o |
18 |
- $(CC) $(LDFLAGS) -o $@ $< $(BUILD_LDFLAGS) |
19 |
+ $(CC) $(LDFLAGS) -o $@ $(LIB_NAME).o $(BUILD_LDFLAGS) |
20 |
|
21 |
$(LIB_NAME).o: src/$(LIB_NAME).c |
22 |
$(CC) $(CFLAGS) -c $< -o $@ $(BUILD_CFLAGS) |