Makefile 366 B

123456789101112
  1. CC=gcc
  2. CFLAGS=-Wall -g -O3
  3. all: meminfo-writer xenstore-watch python
  4. meminfo-writer: meminfo-writer.o
  5. $(CC) -g -o meminfo-writer meminfo-writer.o -lxenstore
  6. xenstore-watch: xenstore-watch.o
  7. $(CC) -o xenstore-watch xenstore-watch.o -lxenstore
  8. python:
  9. python -m compileall .
  10. python -O -m compileall .
  11. clean:
  12. rm -f meminfo-writer xenstore-watch *.o *~ *.pyc *.pyo