Added all remaining gists.

This commit is contained in:
Miguel Astor
2023-06-21 21:40:51 -04:00
parent 22ff5bfa25
commit b0ca706a25
26 changed files with 892 additions and 0 deletions

24
Makefile/Makefile Normal file
View File

@@ -0,0 +1,24 @@
CXX = g++
TARGET =
OBJECTS =
DEPENDS = $(OBJECTS:.o=.d)
CXXFLAGS = -ansi -pedantic -Wall
LDLIBS =
all: CXXFLAGS += -O2 -D_NDEBUG
all: $(TARGET)
debug: CXXFLAGS += -g
debug: $(TARGET)
$(TARGET): $(OBJECTS)
$(CXX) -o $(TARGET) $(OBJECTS) $(CXXFLAGS) $(LDLIBS)
-include $(DEPENDS)
%.o: %.cpp
$(CXX) -c $(CXXFLAGS) $*.cpp -o $*.o
$(CXX) -MM $(CXXFLAGS) $*.cpp > $*.d
clean:
$(RM) $(TARGET) $(OBJECTS) $(DEPENDS)

1
Makefile/README.md Normal file
View File

@@ -0,0 +1 @@
A simple and common GNU Makefile template for C/C++