forked from tanelpoder/0xtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (28 loc) · 1.02 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
CC=gcc
PREFIX ?= /usr
# build
CFLAGS=-I include -Wall
# debuginfo included
CFLAGS_DEBUG=-I include -ggdb -Wall
# debug without compiler optimizations
CFLAGS_DEBUG0=-I include -ggdb -O0
all:
$(CC) $(CFLAGS) -o bin/xcapture src/xcapture.c
debug:
$(CC) $(CFLAGS_DEBUG) -o bin/xcapture src/xcapture.c
debug0:
$(CC) $(CFLAGS_DEBUG0) -o bin/xcapture src/xcapture.c
install:
install -m 0755 bin/xcapture ${PREFIX}/bin/xcapture
install -m 0755 bin/psn ${PREFIX}/bin/psn
install -m 0755 bin/schedlat ${PREFIX}/bin/schedlat
install -m 0755 -d ${PREFIX}/lib/0xtools
install -m 0644 lib/0xtools/proc.py ${PREFIX}/lib/0xtools/proc.py
install -m 0644 lib/0xtools/psnreport.py ${PREFIX}/lib/0xtools/psnreport.py
install -m 0644 lib/0xtools/argparse.py ${PREFIX}/lib/0xtools/argparse.py
uninstall:
rm -fv ${PREFIX}/bin/xcapture ${PREFIX}/bin/psn ${PREFIX}/bin/schedlat
rm -fv ${PREFIX}/lib/0xtools/proc.py ${PREFIX}/lib/0xtools/psnreport.py ${PREFIX}/lib/0xtools/argparse.py
rm -rfv ${PREFIX}/lib/0xtools
clean:
rm -fv bin/xcapture