core-agent-linux/misc/Makefile

19 lines
436 B
Makefile
Raw Normal View History

CC=gcc
2014-02-16 11:34:22 +01:00
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