-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (29 loc) · 936 Bytes
/
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
38
39
40
# FLAGS = -rdynamic -Wall -Wunused-function -Wextra -Werror
FLAGS = -rdynamic -Wall -Wunused-function -Wextra -Werror -finstrument-functions -finstrument-functions-exclude-file-list=src/profile.c,src/entrypoints/monitor.c
monitor: bin
gcc -lncurses $(FLAGS) src/*.c src/entrypoints/monitor.c -o bin/monitor
test: bin
gcc $(FLAGS) src/*.c src/entrypoints/test.c -o bin/test
bin/test
nestest: bin
gcc $(FLAGS) src/*.c src/entrypoints/nestest.c -o bin/nestest
bin/nestest
dis: bin
gcc $(FLAGS) src/*.c src/entrypoints/disassembler.c -o bin/dis
bin/dis
test1000: bin
gcc $(FLAGS) src/*.c src/entrypoints/test.c -o bin/test
bin/test -n 1000
testerrors: bin
gcc $(FLAGS) src/*.c src/entrypoints/test.c -o bin/test
bin/test --errors-only
run: monitor
bin/monitor
clean:
rm -rf bin/
bin:
mkdir bin
bin2rom: bin
gcc src/entrypoints/bin2rom.c -o bin/bin2rom
ines2rom: bin
gcc src/entrypoints/ines2rom.c -o bin/ines2rom