Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Aliases/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CXX=g++
CXXFLAGS=-std=c++23
#set exec names to the base name of the directory, and
#replace all spaces with underscores
EXEC:=$(shell basename "`pwd`" | sed 's/ /_/g')
Expand All @@ -10,10 +11,10 @@ all: $(EXEC)
full: clean all

%.o : %.cpp
$(CXX) -c $<
$(CXX) $(CXXFLAGS) -c $<

$(EXEC): $(OBJS)
$(CXX) -o $@ $^
$(CXX) $(CXXFLAGS) -o $@ $^

clean:
rm *.o $(EXEC) -f
5 changes: 3 additions & 2 deletions Arrays/Array in Functions/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CXX=g++
CXXFLAGS=-std=c++23
#set exec names to the base name of the directory, and
#replace all spaces with underscores
EXEC:=$(shell basename "`pwd`" | sed 's/ /_/g')
Expand All @@ -10,10 +11,10 @@ all: $(EXEC)
full: clean all

%.o : %.cpp
$(CXX) -c $<
$(CXX) $(CXXFLAGS) -c $<

$(EXEC): $(OBJS)
$(CXX) -o $@ $^
$(CXX) $(CXXFLAGS) -o $@ $^

clean:
rm *.o $(EXEC) -f
5 changes: 3 additions & 2 deletions Arrays/Arrays and Pointers/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CXX=g++
CXXFLAGS=-std=c++23
#set exec names to the base name of the directory, and
#replace all spaces with underscores
EXEC:=$(shell basename "`pwd`" | sed 's/ /_/g')
Expand All @@ -10,10 +11,10 @@ all: $(EXEC)
full: clean all

%.o : %.cpp
$(CXX) -c $<
$(CXX) $(CXXFLAGS) -c $<

$(EXEC): $(OBJS)
$(CXX) -o $@ $^
$(CXX) $(CXXFLAGS) -o $@ $^

clean:
rm *.o $(EXEC) -f
5 changes: 3 additions & 2 deletions Arrays/Arrays of Pointers/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CXX=g++
CXXFLAGS=-std=c++23
#set exec names to the base name of the directory, and
#replace all spaces with underscores
EXEC:=$(shell basename "`pwd`" | sed 's/ /_/g')
Expand All @@ -10,10 +11,10 @@ all: $(EXEC)
full: clean all

%.o : %.cpp
$(CXX) -c $<
$(CXX) $(CXXFLAGS) -c $<

$(EXEC): $(OBJS)
$(CXX) -o $@ $^
$(CXX) $(CXXFLAGS) -o $@ $^

clean:
rm *.o $(EXEC) -f
5 changes: 3 additions & 2 deletions Arrays/Arrays/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CXX=g++
CXXFLAGS=-std=c++23
#set exec names to the base name of the directory, and
#replace all spaces with underscores
EXEC:=$(shell basename "`pwd`" | sed 's/ /_/g')
Expand All @@ -10,10 +11,10 @@ all: $(EXEC)
full: clean all

%.o : %.cpp
$(CXX) -c $<
$(CXX) $(CXXFLAGS) -c $<

$(EXEC): $(OBJS)
$(CXX) -o $@ $^
$(CXX) $(CXXFLAGS) -o $@ $^

clean:
rm *.o $(EXEC) -f
5 changes: 3 additions & 2 deletions Arrays/Character Arrays/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CXX=g++
CXXFLAGS=-std=c++23
#set exec names to the base name of the directory, and
#replace all spaces with underscores
EXEC:=$(shell basename "`pwd`" | sed 's/ /_/g')
Expand All @@ -10,10 +11,10 @@ all: $(EXEC)
full: clean all

%.o : %.cpp
$(CXX) -c $<
$(CXX) $(CXXFLAGS) -c $<

$(EXEC): $(OBJS)
$(CXX) -o $@ $^
$(CXX) $(CXXFLAGS) -o $@ $^

clean:
rm *.o $(EXEC) -f
5 changes: 3 additions & 2 deletions Arrays/Multidimentional Arrays/Initialization/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CXX=g++
CXXFLAGS=-std=c++23
#set exec names to the base name of the directory, and
#replace all spaces with underscores
EXEC:=$(shell basename "`pwd`" | sed 's/ /_/g')
Expand All @@ -10,10 +11,10 @@ all: $(EXEC)
full: clean all

%.o : %.cpp
$(CXX) -c $<
$(CXX) $(CXXFLAGS) -c $<

$(EXEC): $(OBJS)
$(CXX) -o $@ $^
$(CXX) $(CXXFLAGS) -o $@ $^

clean:
rm *.o $(EXEC) -f
5 changes: 3 additions & 2 deletions Arrays/Multidimentional Arrays/Passing to Function/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CXX=g++
CXXFLAGS=-std=c++23
#set exec names to the base name of the directory, and
#replace all spaces with underscores
EXEC:=$(shell basename "`pwd`" | sed 's/ /_/g')
Expand All @@ -10,10 +11,10 @@ all: $(EXEC)
full: clean all

%.o : %.cpp
$(CXX) -c $<
$(CXX) $(CXXFLAGS) -c $<

$(EXEC): $(OBJS)
$(CXX) -o $@ $^
$(CXX) $(CXXFLAGS) -o $@ $^

clean:
rm *.o $(EXEC) -f
5 changes: 3 additions & 2 deletions Arrays/Static Arrays/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CXX=g++
CXXFLAGS=-std=c++23
#set exec names to the base name of the directory, and
#replace all spaces with underscores
EXEC:=$(shell basename "`pwd`" | sed 's/ /_/g')
Expand All @@ -10,10 +11,10 @@ all: $(EXEC)
full: clean all

%.o : %.cpp
$(CXX) -c $<
$(CXX) $(CXXFLAGS) -c $<

$(EXEC): $(OBJS)
$(CXX) -o $@ $^
$(CXX) $(CXXFLAGS) -o $@ $^

clean:
rm *.o $(EXEC) -f
5 changes: 3 additions & 2 deletions Binary Search/Graphical/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CXX=g++
CXXFLAGS=-std=c++23
#set exec names to the base name of the directory, and
#replace all spaces with underscores
EXEC:=$(shell basename "`pwd`" | sed 's/ /_/g')
Expand All @@ -10,10 +11,10 @@ all: $(EXEC)
full: clean all

%.o : %.cpp
$(CXX) -c $<
$(CXX) $(CXXFLAGS) -c $<

$(EXEC): $(OBJS)
$(CXX) -o $@ $^
$(CXX) $(CXXFLAGS) -o $@ $^

clean:
rm *.o $(EXEC) -f
5 changes: 3 additions & 2 deletions Binary Search/Iterative/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CXX=g++
CXXFLAGS=-std=c++23
#set exec names to the base name of the directory, and
#replace all spaces with underscores
EXEC:=$(shell basename "`pwd`" | sed 's/ /_/g')
Expand All @@ -10,10 +11,10 @@ all: $(EXEC)
full: clean all

%.o : %.cpp
$(CXX) -c $<
$(CXX) $(CXXFLAGS) -c $<

$(EXEC): $(OBJS)
$(CXX) -o $@ $^
$(CXX) $(CXXFLAGS) -o $@ $^

clean:
rm *.o $(EXEC) -f
5 changes: 3 additions & 2 deletions Binary Search/Recursive/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CXX=g++
CXXFLAGS=-std=c++23
#set exec names to the base name of the directory, and
#replace all spaces with underscores
EXEC:=$(shell basename "`pwd`" | sed 's/ /_/g')
Expand All @@ -10,10 +11,10 @@ all: $(EXEC)
full: clean all

%.o : %.cpp
$(CXX) -c $<
$(CXX) $(CXXFLAGS) -c $<

$(EXEC): $(OBJS)
$(CXX) -o $@ $^
$(CXX) $(CXXFLAGS) -o $@ $^

clean:
rm *.o $(EXEC) -f
5 changes: 3 additions & 2 deletions Bubble Sort/Efficient/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CXX=g++
CXXFLAGS=-std=c++23
#set exec names to the base name of the directory, and
#replace all spaces with underscores
EXEC:=$(shell basename "`pwd`" | sed 's/ /_/g')
Expand All @@ -10,10 +11,10 @@ all: $(EXEC)
full: clean all

%.o : %.cpp
$(CXX) -c $<
$(CXX) $(CXXFLAGS) -c $<

$(EXEC): $(OBJS)
$(CXX) -o $@ $^
$(CXX) $(CXXFLAGS) -o $@ $^

clean:
rm *.o $(EXEC) -f
5 changes: 3 additions & 2 deletions Bubble Sort/Simple/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CXX=g++
CXXFLAGS=-std=c++23
#set exec names to the base name of the directory, and
#replace all spaces with underscores
EXEC:=$(shell basename "`pwd`" | sed 's/ /_/g')
Expand All @@ -10,10 +11,10 @@ all: $(EXEC)
full: clean all

%.o : %.cpp
$(CXX) -c $<
$(CXX) $(CXXFLAGS) -c $<

$(EXEC): $(OBJS)
$(CXX) -o $@ $^
$(CXX) $(CXXFLAGS) -o $@ $^

clean:
rm *.o $(EXEC) -f
5 changes: 3 additions & 2 deletions Conditional Operator/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CXX=g++
CXXFLAGS=-std=c++23
#set exec names to the base name of the directory, and
#replace all spaces with underscores
EXEC:=$(shell basename "`pwd`" | sed 's/ /_/g')
Expand All @@ -10,10 +11,10 @@ all: $(EXEC)
full: clean all

%.o : %.cpp
$(CXX) -c $<
$(CXX) $(CXXFLAGS) -c $<

$(EXEC): $(OBJS)
$(CXX) -o $@ $^
$(CXX) $(CXXFLAGS) -o $@ $^

clean:
rm *.o $(EXEC) -f
5 changes: 3 additions & 2 deletions ENUMeration/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CXX=g++
CXXFLAGS=-std=c++23
#set exec names to the base name of the directory, and
#replace all spaces with underscores
EXEC:=$(shell basename "`pwd`" | sed 's/ /_/g')
Expand All @@ -10,10 +11,10 @@ all: $(EXEC)
full: clean all

%.o : %.cpp
$(CXX) -c $<
$(CXX) $(CXXFLAGS) -c $<

$(EXEC): $(OBJS)
$(CXX) -o $@ $^
$(CXX) $(CXXFLAGS) -o $@ $^

clean:
rm *.o $(EXEC) -f
5 changes: 3 additions & 2 deletions Filing (C++)/Creating/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CXX=g++
CXXFLAGS=-std=c++23
#set exec names to the base name of the directory, and
#replace all spaces with underscores
EXEC:=$(shell basename "`pwd`" | sed 's/ /_/g')
Expand All @@ -10,10 +11,10 @@ all: $(EXEC)
full: clean all

%.o : %.cpp
$(CXX) -c $<
$(CXX) $(CXXFLAGS) -c $<

$(EXEC): $(OBJS)
$(CXX) -o $@ $^
$(CXX) $(CXXFLAGS) -o $@ $^

clean:
rm *.o $(EXEC) -f
5 changes: 3 additions & 2 deletions Function Pointers/Array of Pointers to Functions/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CXX=g++
CXXFLAGS=-std=c++23
#set exec names to the base name of the directory, and
#replace all spaces with underscores
EXEC:=$(shell basename "`pwd`" | sed 's/ /_/g')
Expand All @@ -10,10 +11,10 @@ all: $(EXEC)
full: clean all

%.o : %.cpp
$(CXX) -c $<
$(CXX) $(CXXFLAGS) -c $<

$(EXEC): $(OBJS)
$(CXX) -o $@ $^
$(CXX) $(CXXFLAGS) -o $@ $^

clean:
rm *.o $(EXEC) -f
5 changes: 3 additions & 2 deletions Function Pointers/Function Pointers/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CXX=g++
CXXFLAGS=-std=c++23
#set exec names to the base name of the directory, and
#replace all spaces with underscores
EXEC:=$(shell basename "`pwd`" | sed 's/ /_/g')
Expand All @@ -10,10 +11,10 @@ all: $(EXEC)
full: clean all

%.o : %.cpp
$(CXX) -c $<
$(CXX) $(CXXFLAGS) -c $<

$(EXEC): $(OBJS)
$(CXX) -o $@ $^
$(CXX) $(CXXFLAGS) -o $@ $^

clean:
rm *.o $(EXEC) -f
5 changes: 3 additions & 2 deletions Functions/Call By Reference/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CXX=g++
CXXFLAGS=-std=c++23
#set exec names to the base name of the directory, and
#replace all spaces with underscores
EXEC:=$(shell basename "`pwd`" | sed 's/ /_/g')
Expand All @@ -10,10 +11,10 @@ all: $(EXEC)
full: clean all

%.o : %.cpp
$(CXX) -c $<
$(CXX) $(CXXFLAGS) -c $<

$(EXEC): $(OBJS)
$(CXX) -o $@ $^
$(CXX) $(CXXFLAGS) -o $@ $^

clean:
rm *.o $(EXEC) -f
5 changes: 3 additions & 2 deletions Functions/Declaring a Function/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CXX=g++
CXXFLAGS=-std=c++23
#set exec names to the base name of the directory, and
#replace all spaces with underscores
EXEC:=$(shell basename "`pwd`" | sed 's/ /_/g')
Expand All @@ -10,10 +11,10 @@ all: $(EXEC)
full: clean all

%.o : %.cpp
$(CXX) -c $<
$(CXX) $(CXXFLAGS) -c $<

$(EXEC): $(OBJS)
$(CXX) -o $@ $^
$(CXX) $(CXXFLAGS) -o $@ $^

clean:
rm *.o $(EXEC) -f
Loading