ajout fichier bashrc complémentaire et iptables pour interdire samba

This commit is contained in:
random-toto@localhost
2016-06-28 18:18:55 +02:00
parent f3266bd6bb
commit 4695d52c22
3 changed files with 58 additions and 8 deletions

View File

@@ -1,25 +1,34 @@
# var. C/C++
# var
CC = gcc
#CC = g++
CFLAGS = -Wall -std=c11 -g
#CFLAGS = -Wall -O0 -g -std=c++1y -Werror=uninitialized -Werror=conversion
CFLAGS = -Wall -std=c11 -g -fno-stack-protector -z execstack
CANARY = -Wall -std=c11 -g -fstack-protector --param ssp-buffer-size=64
AFLAGS = -S -Wall -std=c11 -g
RM = /bin/rm
# src, .o, .out
SRC = ${wildcard *.c}
HEAD = ${SRC:.c=.h}
ASM = ${SRC:.c=.s}
OBJ = ${SRC:.c=.o}
ELF = ${SRC:.c=.out}
# target
# targets
all: ${ELF}
:
asm: ${ASM}
:
# rules
${ELF}: ${OBJ}
${CC} ${OBJ} -o ${ELF}
# object
%.o: %.c
${CC} -c ${CFLAGS} $< -o $@
%.s: %.c
${CC} ${AFLAGS} $< -o $@
# cleanall
clean:
${RM} -f ${ELF} ${OBJ}
${RM} -f ${ELF} ${OBJ} ${ASM}