Skip to content

Commit db723e1

Browse files
committed
Update build/add argh as dependency
1 parent fe5c21b commit db723e1

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "libnop"]
22
path = libnop
33
url = [email protected]:google/libnop
4+
[submodule "argh"]
5+
path = argh
6+
url = https://github.com/adishavit/argh

Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,18 @@ OBJECTS = $(SOURCES:%.cpp=%.o)
55
PROGRAM = $(shell basename `pwd`)
66

77
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/
1012
LIBS = stdc++ m ssl crypto
1113
LDFLAGS = $(LIBS:%=-l%)
1214

1315
$(PROGRAM) : $(OBJECTS)
1416
$(CC) $(LDFLAGS) -o $@ $(OBJECTS)
1517

1618
%.o : %.cpp $(HEADERS)
17-
$(CC) $(CFLAGS) -c -o $@ $< $(INCLUDES)
19+
$(CC) $(CFLAGS) $(OPTFLAGS) -c -o $@ $< $(INCLUDES)
1820

1921
.PHONY : clean
2022
clean :

0 commit comments

Comments
 (0)