update makefile to be similar to the one in the template

This commit is contained in:
2025-01-26 12:32:09 +01:00
parent db4671e206
commit 0978b98f8d
3 changed files with 53 additions and 78 deletions

24
.vscode/launch.json vendored
View File

@@ -2,20 +2,30 @@
"version": "2.0.0",
"configurations": [
{
"name": "(lldb) C Launch",
"name": "(lldb) debug project",
"type": "lldb",
"request": "launch",
"program": "",
"linux": {
"program": "${workspaceFolder}/bin/linux-x86_64/tetris_clone",
"preLaunchTask": "build linux-x86_64"
"program": "make",
"args": [
"run"
],
"env": {
"ARCH": "linux-x86_64",
"DEBUG": "1",
},
},
"windows": {
"program": "${workspaceFolder}/bin/win-x86_64/sdl_template",
"preLaunchTask": "build win-x86_64"
"program": "make",
"args": [
"run"
],
"env": {
"ARCH": "win-x86_64",
"DEBUG": "1",
},
},
"args": [],
"cwd": "${workspaceFolder}",
}
]
}

58
.vscode/tasks.json vendored
View File

@@ -1,58 +0,0 @@
{
"version": "2.0.0",
"options": {
"env": {
"DEBUG": "1"
}
},
"tasks": [
{
"type": "shell",
"label": "build linux-x86_64",
"command": "make",
"args": [
"linux-x86_64"
],
"options": {
"cwd": "${workspaceFolder}"
},
"group": {
"kind": "build",
"isDefault": true
},
"detail": "builds the program for linux x86_64"
},
{
"type": "shell",
"label": "build win-x86_64",
"command": "make",
"args": [
"win-x86_64"
],
"options": {
"cwd": "${workspaceFolder}"
},
"group": {
"kind": "build",
"isDefault": false
},
"detail": "builds the program for windows x86_64"
},
{
"type": "shell",
"label": "build web",
"command": "make",
"args": [
"web"
],
"options": {
"cwd": "${workspaceFolder}"
},
"group": {
"kind": "build",
"isDefault": false
},
"detail": "builds the program for web using emscripten"
}
]
}