summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Franke <cfchris6@ts2server.com>2010-06-15 12:49:10 (GMT)
committerChristian Franke <cfchris6@ts2server.com>2010-06-15 12:49:10 (GMT)
commit20d9a87612fa60405e949793c7336bf7dd1a3825 (patch)
treed4a1bbaa38e133958f1a0e92e998fd317ae22e97
parent51ac7f3b1428f777413f735acc23388ef5c8b426 (diff)
Add a makefile and a .gitignore, as well as sort the files
-rw-r--r--.gitignore1
-rw-r--r--Makefile16
-rw-r--r--src/replarp.c (renamed from arpd.c)0
3 files changed, 17 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..8a755b5
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+src/replarp
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9ed18e6
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+CC := gcc
+CFLAGS += -Wall -Werror -Wunused -Wshadow -pedantic --std=c99
+DESTDIR := /
+INSTALL := /usr/bin/install
+PREFIX := /usr/local
+
+all: src/replarp
+
+src/replarp: src/replarp.c
+ $(CC) $(CFLAGS) src/replarp.c -o src/replarp
+
+install: all
+ $(INSTALL) -D src/replarp $(DESTDIR)/$(PREFIX)/sbin/replarp
+
+clean:
+ rm -f src/replarp
diff --git a/arpd.c b/src/replarp.c
index 301ae5e..301ae5e 100644
--- a/arpd.c
+++ b/src/replarp.c