2010-09-03 16:23:09 +02:00
|
|
|
CC=gcc
|
2014-02-16 11:34:22 +01:00
|
|
|
CFLAGS=-Wall -Wextra -Werror -g -O3
|
2014-04-21 17:21:03 +02:00
|
|
|
|
|
|
|
_XENSTORE_H=$(wildcard /usr/include/xenstore.h)
|
|
|
|
ifneq "$(_XENSTORE_H)" ""
|
|
|
|
CFLAGS+= -DUSE_XENSTORE_H
|
|
|
|
endif
|
|
|
|
|
2014-07-04 18:49:49 +02:00
|
|
|
all: xenstore-watch python close-window
|
2011-03-15 19:47:26 +01:00
|
|
|
xenstore-watch: xenstore-watch.o
|
|
|
|
$(CC) -o xenstore-watch xenstore-watch.o -lxenstore
|
2014-07-04 18:49:49 +02:00
|
|
|
close-window: close-window.c
|
2014-11-11 01:22:26 +01:00
|
|
|
$(CC) -o $@ $< -lX11
|
2012-06-05 19:28:59 +02:00
|
|
|
python:
|
|
|
|
python -m compileall .
|
|
|
|
python -O -m compileall .
|
2010-09-03 16:23:09 +02:00
|
|
|
clean:
|
2014-01-05 05:38:10 +01:00
|
|
|
rm -f xenstore-watch *.o *~ *.pyc *.pyo
|