Makefile 436 B

123456789101112131415161718
  1. CC=gcc
  2. CFLAGS=-Wall -Wextra -Werror -g -O3
  3. _XENSTORE_H=$(wildcard /usr/include/xenstore.h)
  4. ifneq "$(_XENSTORE_H)" ""
  5. CFLAGS+= -DUSE_XENSTORE_H
  6. endif
  7. all: xenstore-watch python close-window
  8. xenstore-watch: xenstore-watch.o
  9. $(CC) -o xenstore-watch xenstore-watch.o -lxenstore
  10. close-window: close-window.c
  11. $(CC) -o $@ $< -lX11
  12. python:
  13. python -m compileall .
  14. python -O -m compileall .
  15. clean:
  16. rm -f xenstore-watch *.o *~ *.pyc *.pyo