summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 3d9eb3a..4524ed6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+# Makefile for inotail
+
VERSION = 0.1
# Paths
@@ -6,16 +8,18 @@ BINDIR = $(prefix)/bin
DESTDIR =
CC := gcc
-CFLAGS := -Wall -D_USE_SOURCE
+CFLAGS := -Wall -pipe -D_USE_SOURCE -DVERSION="\"$(VERSION)\""
+WARN := -Wstrict-prototypes -Wsign-compare -Wshadow \
+ -Wchar-subscripts -Wmissing-declarations -Wnested-externs \
+ -Wpointer-arith -Wcast-align -Wsign-compare -Wmissing-prototypes
+CFLAGS += $(WARN)
+# Compile with 'make DEBUG=true' to enable debugging
DEBUG = false
-
ifeq ($(strip $(DEBUG)),true)
CFLAGS += -g -DDEBUG
endif
-PROGRAMS := inotail inotail-old inotify-watchdir
-
all: inotail
inotail: inotail.o
inotail-old: inotail-old.o