diff --git a/MakeFiles/MakeFile1.txt b/MakeFiles/MakeFile1.txt index 81dd310..d72bbc5 100644 --- a/MakeFiles/MakeFile1.txt +++ b/MakeFiles/MakeFile1.txt @@ -1 +1,5 @@ - \ No newline at end of file +tree: leaves.c leaves.h branches.c branches.h roots.c roots.h main.c + gcc -o tree main.c leaves.c branches.c roots.c + +clean: + rm -f tree \ No newline at end of file diff --git a/MakeFiles/MakeFile2.txt b/MakeFiles/MakeFile2.txt index 01ad2f9..33e68e2 100644 --- a/MakeFiles/MakeFile2.txt +++ b/MakeFiles/MakeFile2.txt @@ -1 +1,14 @@ - \ No newline at end of file +CC = gcc +CFILES = $(wildcard * .c) +HFILES = $(wildcard * .h) +OFILES = $(CFILES:.c=.o) +TARGET = tree + +$(TARGET): $(OFILES) + $(CC) $(OFILES) -o $(TARGET) + +%.o: %.c $(HFILES) + $(CC) -c $< + +clean: + rm -f $(TARGET) $(OFILES) \ No newline at end of file diff --git a/email.txt b/email.txt index e69de29..e006c68 100644 --- a/email.txt +++ b/email.txt @@ -0,0 +1 @@ +blainefreestone01@gmail.com \ No newline at end of file