File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
[submodule "libnop "]
2
2
path = libnop
3
3
url = [email protected] :google/libnop
4
+ [submodule "argh "]
5
+ path = argh
6
+ url = https://github.com/adishavit/argh
Original file line number Diff line number Diff line change @@ -5,16 +5,18 @@ OBJECTS = $(SOURCES:%.cpp=%.o)
5
5
PROGRAM = $(shell basename `pwd`)
6
6
7
7
CC := $(shell which gcc || which clang)
8
- CFLAGS = -g -O0 -Wall -Wextra -fno-exceptions -fno-rtti --std=c++17
9
- INCLUDES = -I. -I./libnop/include/
8
+ CFLAGS = -Wall -Wextra -fno-exceptions -fno-rtti --std=c++17
9
+ OPTFLAGS ?= "-Ofast"
10
+
11
+ INCLUDES = -I. -I./libnop/include/ -I./argh/
10
12
LIBS = stdc++ m ssl crypto
11
13
LDFLAGS = $(LIBS:%=-l% )
12
14
13
15
$(PROGRAM ) : $(OBJECTS )
14
16
$(CC ) $(LDFLAGS ) -o $@ $(OBJECTS )
15
17
16
18
% .o : % .cpp $(HEADERS )
17
- $(CC ) $(CFLAGS ) -c -o $@ $< $(INCLUDES )
19
+ $(CC ) $(CFLAGS ) $( OPTFLAGS ) -c -o $@ $< $(INCLUDES )
18
20
19
21
.PHONY : clean
20
22
clean :
You can’t perform that action at this time.
0 commit comments