Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Compiled binaries
*.exe
*.out
C++/emg_robotic_arm

# Python cache
__pycache__/
*.pyc
*.pyo
*.pyd

# Build artifacts
*.o
*.obj
*.so
*.dll

# IDE files
.vscode/
.idea/
*.swp
*.swo

# OS files
.DS_Store
Thumbs.db
43 changes: 43 additions & 0 deletions C++/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Makefile for EMG Robotic Arm System

CXX = g++
CXXFLAGS = -std=c++11 -Wall -Wextra -O2
LDFLAGS = -pthread

# Target executable
TARGET = emg_robotic_arm
SOURCE = emg_robotic_arm.cpp

# Default target
all: $(TARGET)

# Build the main executable
$(TARGET): $(SOURCE)
$(CXX) $(CXXFLAGS) $(SOURCE) -o $(TARGET) $(LDFLAGS)

# Clean build artifacts
clean:
rm -f $(TARGET) *.o

# Run the program
run: $(TARGET)
./$(TARGET)

# Debug build
debug: CXXFLAGS += -g -DDEBUG
debug: $(TARGET)

# Install dependencies (if needed)
install-deps:
@echo "No additional dependencies required for this project"

# Help target
help:
@echo "Available targets:"
@echo " all - Build the EMG robotic arm executable (default)"
@echo " clean - Remove build artifacts"
@echo " run - Build and run the program"
@echo " debug - Build with debug information"
@echo " help - Show this help message"

.PHONY: all clean run debug install-deps help
Binary file added C++/emg_robotic_arm
Binary file not shown.
Loading