File tree Expand file tree Collapse file tree 3 files changed +87
-98
lines changed Expand file tree Collapse file tree 3 files changed +87
-98
lines changed Original file line number Diff line number Diff line change @@ -5,25 +5,22 @@ prefix = /usr/local
5
5
bindir = $(prefix ) /bin
6
6
7
7
PROG = muonsocks
8
- C_SRCS = $(sort nk/privs.c)
9
- CXX_SRCS = $(sort main.cc)
8
+ C_SRCS = $(sort nk/privs.c main.c)
10
9
OBJS = $(C_SRCS:.c=.o ) $(CXX_SRCS:.cc=.o )
11
10
DEPS = $(C_SRCS:.c=.d ) $(CXX_SRCS:.cc=.d )
12
11
13
12
CFLAGS = -MMD -O2 -s -std=c17 -I. -Wall -pedantic -Wextra -Wformat=2 -Wformat-nonliteral -Wformat-security -Wstrict-overflow=5 -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_GNU_SOURCE
14
- CXXFLAGS = -MMD -O2 -s -std=gnu++20 -fno-rtti -fno-exceptions -I. -Wall -pedantic -Wextra -Wformat=2 -Wformat-nonliteral -Wformat-security -Wstrict-overflow=5 -Wold-style-cast -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_GNU_SOURCE
15
13
CPPFLAGS += $(INC )
16
14
17
15
# CFLAGS += -fsanitize=undefined
18
- # CXXFLAGS += -fsanitize=undefined
19
16
# LDFLAGS += -fsanitize=undefined
20
17
21
18
-include config.mak
22
19
23
20
all : $(PROG )
24
21
25
22
$(PROG ) : $(OBJS )
26
- $(CXX ) $(CXXFLAGS ) $(LDFLAGS ) -nodefaultlibs -lgcc -lc -lpthread -o $@ $^
23
+ $(CC ) $(CFLAGS ) $(LDFLAGS ) -nodefaultlibs -lgcc -lc -lpthread -o $@ $^
27
24
28
25
-include $(DEPS )
29
26
You can’t perform that action at this time.
0 commit comments