aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-05-16 15:43:09 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-05-16 15:43:09 +0200
commit30b43f08955158d4f2066f4b50fe8d1241b3177b (patch)
treef2280c40a9ee721ac3223ec27e9ddbec6db224df /Makefile
parentc2f3b1c9c534cadc81ebab3e718832d121cdf9cf (diff)
downloadnissy-core-30b43f08955158d4f2066f4b50fe8d1241b3177b.tar.gz
nissy-core-30b43f08955158d4f2066f4b50fe8d1241b3177b.zip
Remove configure + make build system.
This commit also updates the README, cleans up some stuff and fixes some oopsies.
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