diff options
Diffstat (limited to 'Makefile')
-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 |