Skip to content

Commit 6bbda24

Browse files
committed
build: link new asm file and add debug command
1 parent 0a47a36 commit 6bbda24

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
build:
2+
mkdir -p dist
23
nasm -f win64 src/main.asm -o dist/main.o
4+
nasm -f win64 src/utils/send_response.asm -o dist/send_response.o
35
nasm -f win64 src/errors.asm -o dist/errors.o
46
nasm -f win64 src/handlers/get_routes.asm -o dist/get_routes.o
57
gcc -c src/helpers/hashtable.c -o dist/hashtable.o
68
gcc -c src/helpers/todo.c -o dist/todo.o
7-
gcc -o dist/backend.exe dist/get_routes.o dist/errors.o dist/hashtable.o dist/todo.o dist/main.o -lws2_32 -lmsvcrt
9+
gcc -o dist/backend.exe dist/*.o -lws2_32 -lmsvcrt
810

911
clean:
1012
rm -rf dist
1113

1214
run:
13-
./dist/backend.exe
15+
./dist/backend.exe
16+
17+
debug:
18+
gdb ./dist/backend.exe

0 commit comments

Comments
 (0)