From 883361111c99c0951861d388bbd0fdf76344fcec Mon Sep 17 00:00:00 2001 From: Emile Clark-Boman Date: Tue, 9 Sep 2025 11:27:01 +1000 Subject: [PATCH] Make now builds graph and sine examples --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 1ec2c86..955aeab 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,14 @@ $(BIN)/pw-test: $(call mklib, main.c) $(CCOMPILER) $(CFLAGS) -o $(BUILD)/pw-test.o -c $^ $(CLINKER) $(LDFLAGS) -o $@ $(BUILD)/pw-test.o +$(BIN)/graph: $(call mklib, graph.c) + $(CCOMPILER) $(CFLAGS) -o $(BUILD)/graph.o -c $^ + $(CLINKER) $(LDFLAGS) -lncurses -o $@ $(BUILD)/graph.o + +$(BIN)/sine: $(call mklib, sine.c) + $(CCOMPILER) $(CFLAGS) -o $(BUILD)/sine.o -c $^ + $(CLINKER) $(LDFLAGS) -lncurses -o $@ $(BUILD)/sine.o + $(BUILD) $(BIN): mkdir -p $@