Skip to content

Commit

Permalink
progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Hummel009 committed Jan 12, 2024
1 parent 7e34898 commit d0cbd4a
Show file tree
Hide file tree
Showing 9 changed files with 635 additions and 0 deletions.
2 changes: 2 additions & 0 deletions appC/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/bin/*.exe
/build/*.o
25 changes: 25 additions & 0 deletions appC/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Hummel009's Run",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/bin/main",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "build"
}
]
}
52 changes: 52 additions & 0 deletions appC/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"files.associations": {
"*.rh": "cpp",
"array": "cpp",
"atomic": "cpp",
"bit": "cpp",
"*.tcc": "cpp",
"cctype": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"compare": "cpp",
"concepts": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"deque": "cpp",
"unordered_map": "cpp",
"vector": "cpp",
"exception": "cpp",
"algorithm": "cpp",
"functional": "cpp",
"iterator": "cpp",
"memory": "cpp",
"memory_resource": "cpp",
"numeric": "cpp",
"optional": "cpp",
"random": "cpp",
"string": "cpp",
"string_view": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"utility": "cpp",
"initializer_list": "cpp",
"iosfwd": "cpp",
"iostream": "cpp",
"istream": "cpp",
"limits": "cpp",
"new": "cpp",
"ostream": "cpp",
"ranges": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"typeinfo": "cpp",
"set": "cpp",
"math.h": "c"
}
}
14 changes: 14 additions & 0 deletions appC/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "make",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
31 changes: 31 additions & 0 deletions appC/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
CXX := gcc
CXX_FLAGS := -std=c11 -ggdb

LD_FLAGS := -luser32 -lgdi32

BIN := bin
SRC := src
BUILD := build
INCLUDE := -Iinclude

LIBRARIES :=
EXECUTABLE := main

SRCS := $(wildcard $(SRC)/*.cpp)
OBJS := $(SRCS:$(SRC)/%.cpp=$(BUILD)/%.o)

all: $(BIN)/$(EXECUTABLE)

run: clean all
clear
./$(BIN)/$(EXECUTABLE)

$(BIN)/$(EXECUTABLE): $(OBJS)
$(CXX) $(CXX_FLAGS) $(INCLUDE) $^ -o $@ $(LIBRARIES) $(LD_FLAGS)

$(BUILD)/%.o: $(SRC)/%.cpp
$(CXX) $(CXX_FLAGS) $(INCLUDE) -c $< -o $@ $(LIBRARIES) $(LD_FLAGS)

clean:
-rm -rf $(BUILD)/*
-rm $(BIN)/$(EXECUTABLE)
Empty file added appC/bin/placeholder.txt
Empty file.
Empty file added appC/build/placeholder.txt
Empty file.
Empty file added appC/include/placeholder.txt
Empty file.
Loading

0 comments on commit d0cbd4a

Please sign in to comment.