aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile51
1 files changed, 3 insertions, 48 deletions
diff --git a/Makefile b/Makefile
index 3a323b0..d50ffca 100644
--- a/Makefile
+++ b/Makefile
@@ -1,49 +1,4 @@
1include config.mk 1all:
2 @echo "The build system for nissy has changed, use ./build"
2 3
3all: nissy.o 4.PHONY: all
4
5nissy.s:
6 ${CC} ${MACROS} ${CFLAGS} -c -S -o nissy.s src/nissy.c
7
8nissy.o:
9 ${CC} ${MACROS} ${CFLAGS} -c -o nissy.o src/nissy.c
10
11libnissy.a: nissy.o
12 ar rcs libnissy.a nissy.o
13
14libnissy.so:
15 ${CC} ${MACROS} ${CFLAGS} -c -shared -o libnissy.so src/nissy.c
16
17debugnissy.o:
18 ${CC} ${MACROS} ${DBGFLAGS} -c -o debugnissy.o src/nissy.c
19
20wasmnissy.o:
21 ${EMCC} ${MACROS} ${WASMFLAGS} -c -o wasmnissy.o src/nissy.c
22
23clean:
24 rm -rf *.out *.o *.s *.so run debugrun
25
26test: debugnissy.o
27 CC="${CC} ${MACROS} ${DBGFLAGS}" OBJ=debugnissy.o ./test/test.sh
28
29tool: nissy.o
30 mkdir -p tables tools/results
31 CC="${CC} ${MACROS} ${CFLAGS}" OBJ=nissy.o ./tools/tool.sh
32
33debugtool: debugnissy.o
34 mkdir -p tables tools/results
35 CC="${CC} ${MACROS} ${DBGFLAGS}" OBJ=debugnissy.o ./tools/tool.sh
36
37shell: nissy.o
38 mkdir -p tables
39 ${CC} ${MACROS} ${CFLAGS} -o run nissy.o shell/shell.c
40
41debugshell: debugnissy.o
42 mkdir -p tables
43 ${CC} ${MACROS} ${DBGFLAGS} -o debugrun debugnissy.o shell/shell.c
44
45python: nissy.o
46 ${CC} ${CFLAGS} -shared ${PYTHON3_INCLUDES} -o nissy_python_module.so \
47 nissy.o python/nissy_module.c
48
49.PHONY: all clean test tool debugtool shell debugshell python

Generated with cgit - Back to sebastiano.tronto.net