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