core-agent-linux/misc/Makefile
2014-11-11 01:22:26 +01:00

19 lines
436 B
Makefile

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
close-window: close-window.c
$(CC) -o $@ $< -lX11
python:
python -m compileall .
python -O -m compileall .
clean:
rm -f xenstore-watch *.o *~ *.pyc *.pyo