-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
46 lines (32 loc) · 1.08 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
38
39
40
41
42
43
44
45
46
include config.mk
all: nissy.o
nissy.s:
${CC} ${MACROS} ${CFLAGS} -c -S -o nissy.s src/nissy.c
nissy.o:
${CC} ${MACROS} ${CFLAGS} -c -o nissy.o src/nissy.c
nissy.so:
${CC} ${MACROS} ${CFLAGS} -c -shared -o nissy.so src/nissy.c
debugnissy.o:
${CC} ${MACROS} ${DBGFLAGS} -c -o debugnissy.o src/nissy.c
clean:
rm -rf *.o *.s *.so run debugrun
test: debugnissy.o
CC="${CC} ${MACROS} ${DBGFLAGS}" OBJ=debugnissy.o ./test/test.sh
tool: nissy.o
mkdir -p tables tools/results
CC="${CC} ${MACROS} ${CFLAGS}" OBJ=nissy.o ./tools/tool.sh
debugtool: debugnissy.o
mkdir -p tables tools/results
CC="${CC} ${MACROS} ${DBGFLAGS}" OBJ=debugnissy.o ./tools/tool.sh
shell: nissy.o
mkdir -p tables
${CC} ${MACROS} ${CFLAGS} -o run nissy.o shell/shell.c
debugshell: debugnissy.o
mkdir -p tables
${CC} ${MACROS} ${DBGFLAGS} -o debugrun debugnissy.o shell/shell.c
shelltest: debugshell
./shell/test.sh
python: nissy.o
${CC} ${CFLAGS} -shared ${PYTHON3_INCLUDES} -o nissy_python_module.so \
nissy.o python/nissy_module.c
.PHONY: all clean test tool debugtool shell debugshell shelltest python