Permalink
Browse files

initial commit. works for me!

  • Loading branch information...
falconindy committed Apr 17, 2011
0 parents commit 418495e27394d51416a2deba893512deb3c06b03
Showing with 658 additions and 0 deletions.
  1. +3 −0 .gitignore
  2. +20 −0 Makefile
  3. +4 −0 README
  4. +631 −0 init.c
@@ -0,0 +1,3 @@
+*.o
+.*.swp
+init
@@ -0,0 +1,20 @@
+INCS = -I/usr/include/blkid
+
+CC ?= cc
+CPPFLAGS +=
+CFLAGS += -std=c99 -Wall -pedantic -Wextra ${CPPFLAGS} ${INCS}
+LDFLAGS := -lblkid ${LDFLAGS}
+
+all: init
+
+.c.o: init.c
+ ${CC} $< -c ${CFLAGS} ${CPPFLAGS}
+
+init: init.o
+ ${CC} -o $@ ${LDFLAGS} $<
+
+strip: init
+ strip --strip-all init
+
+clean:
+ ${RM} init init.o
4 README
@@ -0,0 +1,4 @@
+Inspired by kinit, with borrowed bits from busybox.
+
+This will someday hopefully be merged into geninit.
+
Oops, something went wrong.

0 comments on commit 418495e

Please sign in to comment.