summaryrefslogtreecommitdiff
path: root/examples/Makefile
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-01-22 23:53:24 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-01-22 23:53:24 +0100
commit3c62d3d54244731b641952bd7e93edbab16d5d79 (patch)
tree60f1682e916b93b856a6b24b78e28064832156cf /examples/Makefile
parentef522ea5cd0c1f25fe8f3c66e23ef7f61a3017fd (diff)
downloadnonstd-3c62d3d54244731b641952bd7e93edbab16d5d79.tar.gz
Add PPM simple image implementation
Diffstat (limited to 'examples/Makefile')
-rw-r--r--examples/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/Makefile b/examples/Makefile
index cd83e92..50d531b 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -5,7 +5,7 @@ CFLAGS = -Wall -Wextra -std=c99 -fsanitize=address -g -O0
LDFLAGS =
# Example targets
-EXAMPLES = foreach stringv stringb array slice arena files logging
+EXAMPLES = foreach stringv stringb array slice arena files logging ppm
# Default target
all: $(EXAMPLES)
@@ -35,6 +35,9 @@ files: files.c
logging: logging.c
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
+ppm: ppm.c
+ $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
+
# Run all examples
run: all
@echo "\n=== Running stringv ===\n"
@@ -53,6 +56,8 @@ run: all
@./files
@echo "\n=== Running logging ===\n"
@./logging
+ @echo "\n=== Running ppm ===\n"
+ @./ppm
# Clean build artifacts
clean: