initial commit
authorkremlin <ian@kremlin.cc>
Sat, 10 Jun 2017 03:54:02 +0000 (22:54 -0500)
committerkremlin <ian@kremlin.cc>
Sat, 10 Jun 2017 03:54:02 +0000 (22:54 -0500)
.gitignore [new file with mode: 0644]
LICENSE [new file with mode: 0644]
Makefile [new file with mode: 0644]
bin/.gitignore [new file with mode: 0644]
puffcrash.c [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..543473d
--- /dev/null
@@ -0,0 +1,14 @@
+*.core
+bin/*.out
+bin/systemd-*
+bin/obj/*.o
+bin/*.bin
+src/interfaces/*/*-gen.*
+[._]*.s[a-w][a-z]
+[._]s[a-w][a-z]
+*.un~
+Session.vim
+.netrwhist
+*~
+*.sw*
+.*.sw*
diff --git a/LICENSE b/LICENSE
new file mode 100644 (file)
index 0000000..159bc18
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,13 @@
+Copyright (c) 2017 Ian Sutton <ian@ce.gl>
+
+Permission to use, copy, modify, and distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..1ea72ce
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+CFLAGS=        -Wall -Wextra -Werror -std=c99
+
+DEBUG=         1
+.ifdef DEBUG
+CFLAGS+=       -O0 -g
+.endif
+
+SANITY=                1
+.ifdef SANITY
+CFLAGS+=       -Wno-unused-variable -Wno-unused-parameter -Wno-comment
+.endif
+
+OUT=           bin/puffcrash
+DESTDIR=       /usr/local/
+
+all: build
+
+build:
+       gcc $(CFLAGS) puffcrash.c -o $(OUT)
+
+install: build
+       install -c -s -o root -g bin -m 555 $(OUT) $(DESTDIR)$(OUT)
diff --git a/bin/.gitignore b/bin/.gitignore
new file mode 100644 (file)
index 0000000..d6b7ef3
--- /dev/null
@@ -0,0 +1,2 @@
+*
+!.gitignore
diff --git a/puffcrash.c b/puffcrash.c
new file mode 100644 (file)
index 0000000..3419f8a
--- /dev/null
@@ -0,0 +1,23 @@
+/*
+ * Copyright (c) 2017 Ian Sutton <ian@ce.gl>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#include <stdio.h>
+
+int
+main(int argc, char *argv[])
+{
+       return 0;
+}