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
|
2015-12-23 02:04:26 +01:00
|
|
|
python: python2 python3
|
|
|
|
python2:
|
|
|
|
rm -rf py2
|
|
|
|
mkdir -p py2
|
|
|
|
cp *.py py2/
|
|
|
|
python2 -m compileall py2
|
|
|
|
python2 -O -m compileall py2
|
|
|
|
|
|
|
|
# Only some scripts does support python3 for now
|
|
|
|
python3:
|
|
|
|
rm -rf py3
|
|
|
|
mkdir -p py3
|
|
|
|
cp dnf-qubes-hooks.py xdg.py py3/
|
|
|
|
python3 -m compileall py3
|
|
|
|
python3 -O -m compileall py3
|
|
|
|
|
2010-09-03 16:23:09 +02:00
|
|
|
clean:
|
2014-01-05 05:38:10 +01:00
|
|
|
rm -f xenstore-watch *.o *~ *.pyc *.pyo
|