From c256d9b1da1f7b37fdf7fe4f2aa9d2c6ee7123a8 Mon Sep 17 00:00:00 2001 From: Cory Date: Fri, 8 Sep 2023 12:45:55 +0200 Subject: [PATCH] Add rules --- src/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 1121395..1e668e6 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,10 +1,15 @@ CC=g++ -all: simpleFile +.PHONY: clean + +all: simpleFile analyticPlot simpleFile: simpleFile.o $(CC) -o $@ $^ +analyticPlot: analyticPlot.o + $(CC) -o $@ $^ + %.o: %.cpp $(CC) -c $< -o $@