Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
Hummel009 committed Jan 11, 2024
1 parent 6afd206 commit 31018d6
Show file tree
Hide file tree
Showing 12 changed files with 528 additions and 40 deletions.
41 changes: 1 addition & 40 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,41 +1,2 @@
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/
!**/cpp/**/build/

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/
!**/cpp/**/bin/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### Mac OS ###
.DS_Store

*.wav
*.reg
.idea
25 changes: 25 additions & 0 deletions appCpp/.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"
}
]
}
5 changes: 5 additions & 0 deletions appCpp/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"files.associations": {
"*.rh": "cpp"
}
}
14 changes: 14 additions & 0 deletions appCpp/.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 appCpp/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
CXX := g++
CXX_FLAGS := -std=c++11 -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 appCpp/bin/placeholder.txt
Empty file.
Empty file added appCpp/build/placeholder.txt
Empty file.
Empty file added appCpp/include/placeholder.txt
Empty file.
Loading

0 comments on commit 31018d6

Please sign in to comment.