diff options
author | Tobias Klauser <tklauser@xenon.tklauser.home> | 2006-07-17 18:57:02 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@xenon.tklauser.home> | 2006-07-17 18:57:02 +0200 |
commit | 4825bbd64861cb15c1a7b7acd7a4d661d277686a (patch) | |
tree | 9379840a4addca7c5d1f2005a1c4ed91527c9360 | |
parent | e80cbe194df80d6cdd61667e15103849e8ae4ba2 (diff) |
Set version from Makefile, clean up
-rw-r--r-- | Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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 |