From 65ce53bab412623b6b7b39f2fba3536619175537 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Tue, 5 Apr 2016 13:52:34 +1000 Subject: new file: Makefile new file: build.sh new file: man/flood.1.pod new file: package/DEBIAN/control new file: package/usr/share/doc/flood/README.gz new file: package/usr/share/doc/flood/changelog.gz new file: package/usr/share/doc/flood/copyright new file: package/usr/share/man/man1/flood.1.gz new file: source/Makefile new file: source/flood.c new file: version --- source/Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 source/Makefile (limited to 'source/Makefile') diff --git a/source/Makefile b/source/Makefile new file mode 100644 index 0000000..2cd8f59 --- /dev/null +++ b/source/Makefile @@ -0,0 +1,26 @@ +TARGET = flood + +INSTALL_DIR = /usr/bin + +SRCS = $(wildcard *.c) + +CFLAGS = -pthread +CC = gcc $(CFLAGS) + +all: build + +build: $(TARGET) + +$(TARGET): $(SRCS) + $(CC) -o $(TARGET) $(SRCS) + +clean: + rm -f $(TARGET) + +install: build + cp $(TARGET) $(INSTALL_DIR) + chown root:root $(INSTALL_DIR)/$(TARGET) + setcap cap_net_raw,cap_net_admin=eip $(INSTALL_DIR)/$(TARGET) + +uninstall: + rm -f $(INSTALL_DIR)/$(TARGET) -- cgit v1.3