0 SHELL = /bin/sh

1

2 PREFIX = /usr/local

3 CFLAGS = -static -Wall -Wextra -pedantic -O2

4 CC = cc

5

6 rtmonitor: main.c config.h

7 ${CC} ${CFLAGS} main.c -o $@

8

9 install:

10 cp rtmonitor ${PREFIX}/bin

11 chmod 755 ${PREFIX}/bin/rtmonitor

12

13 uninstall:

14 rm ${PREFIX}/bin/rtmonitor

15

16 clean:

17 rm -f rtmonitor

18