Add configuration for debugging the AES project

This commit is contained in:
Manuel Thalmann 2023-11-07 14:41:40 +01:00
parent faffa17efe
commit c0a2733cb3
2 changed files with 41 additions and 0 deletions

View file

@ -77,7 +77,34 @@
"type": "shell",
"command": "${workspaceFolder:Solution Items}/scripts/delete.cmd",
"problemMatcher": []
},
{
"label": "Build AES Project",
"type": "shell",
"command": "make",
"options": {
"cwd": "${workspaceFolder:AES}"
},
"problemMatcher": []
}
]
},
"launch": {
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Launch AES Project",
"program": "${workspaceFolder:AES}/bin/aes",
"args": [],
"cwd": "${workspaceFolder:AES}",
"preLaunchTask": "Build AES Project"
}
],
"compounds": []
}
}

14
aes/Makefile Normal file
View file

@ -0,0 +1,14 @@
CPPFLAGS = -g
BUILD_DIR = bin
$(BUILD_DIR)/aes: $(BUILD_DIR)/aes.o
mkdir -p $(dir $@)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $< -o $@
$(BUILD_DIR)/%.o: %.cpp
mkdir -p $(dir $@)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@
clean:
rm -rf $(BUILD_DIR)