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 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