|
@@ -1,5 +1,11 @@
|
|
|
CC=gcc
|
|
|
CFLAGS=-Wall -Wextra -Werror -g -O3
|
|
|
+
|
|
|
+_XENSTORE_H=$(wildcard /usr/include/xenstore.h)
|
|
|
+ifneq "$(_XENSTORE_H)" ""
|
|
|
+ CFLAGS+= -DUSE_XENSTORE_H
|
|
|
+endif
|
|
|
+
|
|
|
all: xenstore-watch python close-window
|
|
|
xenstore-watch: xenstore-watch.o
|
|
|
$(CC) -o xenstore-watch xenstore-watch.o -lxenstore
|