diff options
| author | Jake Mannens <jakem_5@hotmail.com> | 2016-04-05 13:52:34 +1000 |
|---|---|---|
| committer | Jake Mannens <jakem_5@hotmail.com> | 2016-04-05 13:52:34 +1000 |
| commit | 65ce53bab412623b6b7b39f2fba3536619175537 (patch) | |
| tree | b038ee9203db4e922289e3b683c83e044edb1c1e /source/Makefile | |
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
Diffstat (limited to 'source/Makefile')
| -rw-r--r-- | source/Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
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) |
