From 59d34ee47b14c728ebd6399fb89c409383a1aa2e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 11 Jul 2008 00:04:58 +0200 Subject: Initial import --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0212a22 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +CC := gcc +CFLAGS := $(CFLAGS) -I../inotail -W -Wall -pipe -D_USE_SOURCE \ + -Wstrict-prototypes -Wsign-compare -Wshadow -Wchar-subscripts \ + -Wmissing-declarations -Wpointer-arith -Wcast-align -Wmissing-prototypes + +# Compile with 'make DEBUG=true' to enable debugging +DEBUG = false +ifeq ($(strip $(DEBUG)),true) + CFLAGS += -g -DDEBUG -fmudflap + LDFLAGS += -lmudflap +endif + +all: inotify-watch direct-append +inotify-watch: inotify-watch.o +direct-append: direct-append.o + +%.o: %.c %.h + $(CC) $(CFLAGS) -c $< -o $@ + +clean: + rm -f inotify-watch direct-append *.o -- cgit v1.2.3-54-g00ecf