summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2008-07-11 00:04:58 +0200
committerTobias Klauser <tklauser@xenon.tklauser.home>2008-07-11 00:04:58 +0200
commit59d34ee47b14c728ebd6399fb89c409383a1aa2e (patch)
tree356a31ecaacf3f1845e8ebda7c1765ede88ad284 /Makefile
Initial import
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..0212a22
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+CC := gcc
+CFLAGS := $(CFLAGS) -I../inotail -W -Wall -pipe -D_USE_SOURCE \
+ -Wstrict-prototypes -Wsign-compare -Wshadow -Wchar-subscripts \
+ -Wmissing-declarations -Wpointer-arith -Wcast-align -Wmissing-prototypes
+
+# Compile with 'make DEBUG=true' to enable debugging
+DEBUG = false
+ifeq ($(strip $(DEBUG)),true)
+ CFLAGS += -g -DDEBUG -fmudflap
+ LDFLAGS += -lmudflap
+endif
+
+all: inotify-watch direct-append
+inotify-watch: inotify-watch.o
+direct-append: direct-append.o
+
+%.o: %.c %.h
+ $(CC) $(CFLAGS) -c $< -o $@
+
+clean:
+ rm -f inotify-watch direct-append *.o