From efee348df6785ddf02aea8ece88746d5c4cd34f4 Mon Sep 17 00:00:00 2001 From: Carson Bush Date: Tue, 14 May 2024 11:20:55 -0600 Subject: [PATCH 1/2] add solution makefiles --- MakeFiles/MakeFile1.txt | 6 +++++- MakeFiles/MakeFile2.txt | 13 ++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/MakeFiles/MakeFile1.txt b/MakeFiles/MakeFile1.txt index 81dd310..d845e0a 100644 --- a/MakeFiles/MakeFile1.txt +++ b/MakeFiles/MakeFile1.txt @@ -1 +1,5 @@ - \ No newline at end of file +tree: leaves.cpp Leaves.h branches.cpp Branches.h roots.cpp Roots.h main.cpp + g++ leaves.cpp Leaves.h branches.cpp Branches.h roots.cpp Roots.h main.cpp -o tree + +clean: + rm tree \ No newline at end of file diff --git a/MakeFiles/MakeFile2.txt b/MakeFiles/MakeFile2.txt index 01ad2f9..8891745 100644 --- a/MakeFiles/MakeFile2.txt +++ b/MakeFiles/MakeFile2.txt @@ -1 +1,12 @@ - \ No newline at end of file +TARGET:=tree +SRCS=$(wildcard *.cpp) +OBJS=$(SRCS:.cpp=.o) + +$(TARGET): $(OBJS) + g++ $^ -o $@ + +%.o: %.h %.cpp + g++ -c $^ + +clean: + rm $(TARGET) *.o \ No newline at end of file From b3f05634cb0a4c4fbf6be1800cc8b7bdd23d53bf Mon Sep 17 00:00:00 2001 From: Carson Bush Date: Tue, 14 May 2024 11:21:32 -0600 Subject: [PATCH 2/2] add email --- email.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/email.txt b/email.txt index e69de29..42bedcc 100644 --- a/email.txt +++ b/email.txt @@ -0,0 +1 @@ +hyperdriveguy@gmail.com \ No newline at end of file