summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@xenon.tklauser.home>2006-07-17 18:57:02 +0200
committerTobias Klauser <tklauser@xenon.tklauser.home>2006-07-17 18:57:02 +0200
commit4825bbd64861cb15c1a7b7acd7a4d661d277686a (patch)
tree9379840a4addca7c5d1f2005a1c4ed91527c9360 /Makefile
parente80cbe194df80d6cdd61667e15103849e8ae4ba2 (diff)
Set version from Makefile, clean up
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