Add rules

This commit is contained in:
Cory Balaton 2023-09-08 12:45:55 +02:00
parent 3d87b400d8
commit c256d9b1da
No known key found for this signature in database
GPG Key ID: 3E5FCEBFD80F432B

View File

@ -1,10 +1,15 @@
CC=g++ CC=g++
all: simpleFile .PHONY: clean
all: simpleFile analyticPlot
simpleFile: simpleFile.o simpleFile: simpleFile.o
$(CC) -o $@ $^ $(CC) -o $@ $^
analyticPlot: analyticPlot.o
$(CC) -o $@ $^
%.o: %.cpp %.o: %.cpp
$(CC) -c $< -o $@ $(CC) -c $< -o $@