summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile20
-rw-r--r--README.md14
2 files changed, 18 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index b00dd0b..a6d430c 100644
--- a/Makefile
+++ b/Makefile
@@ -68,27 +68,27 @@ help:
@echo ========================================
@echo libgraffik Build System
@echo ========================================
- @echo:
+ @echo
@echo Platform: $(PLATFORM)
- @echo:
+ @echo
@echo Usage:
@echo make build BACKEND=^<backend^> EXAMPLE=^<example^>
- @echo:
+ @echo
@echo Available Backends:
@echo sdl - SDL2 (cross-platform)
@echo win32 - Win32 API (Windows only)
@echo x11 - X11 (Linux only)
- @echo:
+ @echo
@echo Available Examples:
@for %%f in ($(EXAMPLES_DIR)\*.cpp) do @echo %%~nf
- @echo:
+ @echo
@echo Example Commands:
@echo make build BACKEND=sdl EXAMPLE=sample1
@echo make build BACKEND=win32 EXAMPLE=sample2
@echo make run BACKEND=sdl EXAMPLE=sample1
@echo make build-all BACKEND=sdl
@echo make clean
- @echo:
+ @echo
# Build target
.PHONY: build
@@ -107,7 +107,7 @@ ifeq ($(PLATFORM),Windows)
@if exist $(SDL2_PATH)\bin\SDL2.dll if not exist $(BUILD_DIR)\SDL2.dll copy $(SDL2_PATH)\bin\SDL2.dll $(BUILD_DIR)\ >nul 2>&1
endif
endif
- @echo:
+ @echo
@echo Run with: $(BUILD_DIR)\$(EXAMPLE)$(EXE_EXT)
# Validate inputs
@@ -137,7 +137,7 @@ ifndef BACKEND
endif
@echo Building all examples with $(BACKEND) backend...
@for %%f in ($(EXAMPLES_DIR)\*.cpp) do @$(MAKE) --no-print-directory build BACKEND=$(BACKEND) EXAMPLE=%%~nf
- @echo:
+ @echo
@echo All examples built successfully!
# Run an example
@@ -166,10 +166,10 @@ config:
@echo Lib Dir: $(LIB_DIR)
@echo Examples: $(EXAMPLES_DIR)
@echo Build Dir: $(BUILD_DIR)
- @echo:
+ @echo
@echo Available Examples:
@for %%f in ($(EXAMPLES_DIR)\*.cpp) do @echo - %%~nf
- @echo:
+ @echo
@echo Available Backends:
@echo - sdl (SDL2)
ifeq ($(PLATFORM),Windows)
diff --git a/README.md b/README.md
index f5187f6..5e942a5 100644
--- a/README.md
+++ b/README.md
@@ -1,12 +1,12 @@
-# libgraffik - Cross-Platform Graphics Library
+# libgraffik
A simple cross-platform graphics abstraction layer with support for multiple backends (SDL2, Win32, X11).
## Implemented Backends
-- ✅ **SDL2** (Windows, Linux, macOS) - Fully implemented
-- ✅ **Win32** (Windows native) - Fully implemented
-- ✅ **X11** (Linux native) - Fully implemented
+- **SDL2** (Windows, Linux, macOS) - Fully implemented
+- **Win32** (Windows native) - Fully implemented
+- **X11** (Linux native) - Fully implemented
## Features
@@ -23,7 +23,7 @@ A simple cross-platform graphics abstraction layer with support for multiple bac
## Building on Windows
-### Option 1: Batch File (Easiest for Windows)
+### Option 1: Batch File
```cmd
REM Build with SDL2
@@ -39,7 +39,7 @@ REM Show help
build.bat help
```
-### Option 2: PowerShell Script (Recommended for Windows)
+### Option 2: PowerShell Script
```powershell
# Build with SDL2
@@ -125,6 +125,8 @@ sudo dnf install libX11-devel # Fedora
## Manual Compilation
+Recommended for production use. The Makefile and other build files in this repository are designed for demonstration purposes.
+
### Windows with SDL2
```cmd
g++ -std=c++11 -DUSE_SDL -o build\sample1.exe ^