From 4825bbd64861cb15c1a7b7acd7a4d661d277686a Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 17 Jul 2006 18:57:02 +0200 Subject: Set version from Makefile, clean up --- Makefile | 12 ++++++++---- 1 file 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 -- cgit v1.2.3-54-g00ecf