aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2016-01-22 17:03:05 -0500
committerFranklin Wei <git@fwei.tk>2016-01-22 17:03:05 -0500
commitb33d9c81c116d43b38ceb8b247bd77f9736574b9 (patch)
treeb92a923ffc29ee438c646f4b2b08f5bd588dee2d /Makefile
parenta486d4b5e1679e0ddf5a4afa661501afefe4a854 (diff)
downloadnetcosm-b33d9c81c116d43b38ceb8b247bd77f9736574b9.zip
netcosm-b33d9c81c116d43b38ceb8b247bd77f9736574b9.tar.gz
netcosm-b33d9c81c116d43b38ceb8b247bd77f9736574b9.tar.bz2
netcosm-b33d9c81c116d43b38ceb8b247bd77f9736574b9.tar.xz
PuTTY compatibility, lots of other stuff
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a39c102..944b786 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ PLATFORM = unix
NETCOSM_SRC = $(shell cat SOURCES)
NETCOSM_OBJ := $(NETCOSM_SRC:.c=.o)
-CFLAGS = -O3 -g -I src/ -I export/include -Wall -Wextra -Wshadow \
+CFLAGS = -Og -g -I src/ -I export/include -Wall -Wextra -Wshadow \
-std=c99 -fno-strict-aliasing
LDFLAGS = -lev -lssl -lcrypto
@@ -67,3 +67,8 @@ help:
@echo " depclean - Remove dependency files"
@echo " veryclean - Remove object and dependency files"
@echo "Build targets:"
+
+.PHONY: setcap
+setcap:
+ @echo "Enabling CAP_NET_BIND_SERVICE on "$(OUT)/$(PLATFORM).bin"..."
+ @sudo setcap 'cap_net_bind_service=+ep' $(OUT)/$(PLATFORM).bin