aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorJulien Dessaux2019-02-14 20:48:20 +0100
committerJulien Dessaux2019-02-14 20:48:20 +0100
commit9399ff045d40a72c8ec90db3d07d1877ee2b3be3 (patch)
treedf1a40330acea568c9de2b3daf1166a30fad8dee /GNUmakefile
parentImplemented session id management and session logs in database (diff)
downloadbastion-9399ff045d40a72c8ec90db3d07d1877ee2b3be3.tar.gz
bastion-9399ff045d40a72c8ec90db3d07d1877ee2b3be3.tar.bz2
bastion-9399ff045d40a72c8ec90db3d07d1877ee2b3be3.zip
Switched from standard makefile to cmake
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile32
1 files changed, 0 insertions, 32 deletions
diff --git a/GNUmakefile b/GNUmakefile
deleted file mode 100644
index 2de00cf..0000000
--- a/GNUmakefile
+++ /dev/null
@@ -1,32 +0,0 @@
-CC=clang
-DEBUG=-g -fsanitize=address
-CFLAGS= ${DEBUG} -Wall -Werror -Wextra -Weverything -Wno-disabled-macro-expansion
-
-sources=$(wildcard src/*.c)
-OBJ=$(sources:.c=.o)
-
-all: bastion
-
-bastion: $(OBJ)
- $(CC) ${DEBUG} -o bastion $(OBJ) -lssh -lutil -ltty -lmysqlclient
-
-clean:
- $(RM) bastion *.[do] src/*.[do]
-
-%.o: %.c
- $(CC) -c $(CFLAGS) $*.c -o $*.o
- $(CC) -MM $(CFLAGS) $*.c > $*.d
- @mv -f $*.d $*.d.tmp
- @sed -e 's|.*:|$*.o:|' < $*.d.tmp > $*.d
- @sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | fmt -1 | sed -e 's/^ *//' -e 's/$$/:/' >> $*.d
- @rm -f $*.d.tmp
-
-# You must compile without -fsanitize=address to use valgrind
-valgrind:
- valgrind --leak-check=full --show-leak-kinds=all --trace-children=yes --suppressions=${HOME}/.valgrind_suppressions ./bastion
- #valgrind -v --leak-check=full --show-leak-kinds=all --trace-children=yes --suppressions=${HOME}/.valgrind_suppressions --gen-suppressions=yes ./bastion
-
-debug:
- ASAN_OPTIONS=allow_user_segv_handler=true:detect_leaks=true:fast_unwind_on_malloc=0:check_initialization_order=1:suppressions=asan.supp \
- ASAN_SYMBOLIZER_PATH=/usr/lib/llvm-6.0/bin/llvm-symbolizer \
- ./bastion